Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 2:12 PM, Matt Price wrote: On 10-10-25 12:23 PM, Rich Bowen wrote: On Oct 25, 2010, at 12:07 PM, Matt Price wrote: The solution is to put a ServerName (and possibly one or more ServerAlias directives) in the second VirtualHost. thank you. Things seem to work now -- th

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Matt Price
On 10-10-25 12:23 PM, Rich Bowen wrote: On Oct 25, 2010, at 12:07 PM, Matt Price wrote: The solution is to put a ServerName (and possibly one or more ServerAlias directives) in the second VirtualHost. thank you. Things seem to work now -- though I confess to being a bit surprised that Serv

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 12:07 PM, Matt Price wrote: ok, I'm trying to understand but I guess I don't quite get it. If I have a file like this: DocumentRoot /home/drupal-commons/drupal_commons ServerName tdhc.digitalcommons.ca UseCanonicalNameOff VirtualDocumentRoot /var/

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Matt Price
On 10-10-25 11:21 AM, Eric Covener wrote: then it pre-empts everything (not what I expected, since I'm using ServerName, which I thought limited the application of this stanza to instances in which HTTP_HOST matches. ServerName. Whichever one you put first is the default, which is used when the

Re: [us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 11:02 AM, e-letter wrote: I had changed the alias to add a trailing stroke (/). I also tried both and After each change I stopped and re-started httpd using drakxservices. Directory refers to an on-disk directory. In this case. /target/ is NOT, I understand, a d

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Eric Covener
> then it pre-empts everything (not what I expected, since I'm using > ServerName, which I thought limited the application of this stanza to > instances in which HTTP_HOST matches. ServerName. Whichever one you put first is the default, which is used when there's no matching ServerName/ServerAlias

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Matt Price
On 10-10-23 09:33 AM, Eric Covener wrote: 1) if the new stanza is placed above the old one, then ALL traffic arriving at this server is directed to /home/drupal-commons/drupal_commons. 2) if the new stanza goes below the old, it is ignored entirely (this is what I expected). You need 1 "NameV

[us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread e-letter
I had changed the alias to add a trailing stroke (/). I also tried both and After each change I stopped and re-started httpd using drakxservices. The permissions error continues. - The official User-To-User support forum of

Re: [us...@httpd] missing $DESTDIR in HTTPD 2.2.17

2010-10-25 Thread Rainer Jung
On 25.10.2010 13:52, Eric Covener wrote: On Mon, Oct 25, 2010 at 7:33 AM, Eugene wrote: Hello, I usual make packages of HTTPD by myself for my Solaris 10 systems. After successful compilation I do "DESTDIR=$TMPDIR gmake install" and then make a package from the temporary dir. This is missing

Re: [us...@httpd] Basic authentication for a virtual/rewritten URL?

2010-10-25 Thread Brian Hirt
Use instead of Brian Hirt bh...@me.com On Oct 25, 2010, at 7:14 AM, Sacha Varma wrote: > Sorry to interrupt you fine folks, I wasn't able to google up the answer to > this. > > Is it possible to configure Apache to do basic authentication for a URL that > doesn't correspond to a physical

Re: [us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 9:28 AM, e-letter wrote: I deliberately changed permission just to get the service working. Of course, security will need to be improved in future. :) Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Lin

[us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread e-letter
I deliberately changed permission just to get the service working. Of course, security will need to be improved in future. :) Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) PHP/5.2.4 with Suhosin-P

[us...@httpd] Basic authentication for a virtual/rewritten URL?

2010-10-25 Thread Sacha Varma
Sorry to interrupt you fine folks, I wasn't able to google up the answer to this. Is it possible to configure Apache to do basic authentication for a URL that doesn't correspond to a physical location in the filesystem (e.g. because it is rewritten to be served by CGI)? It appears that the a

Re: [us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread Matus UHLAR - fantomas
> > On 21/10/2010, e-letter wrote: > >> Alias /localhost/target /usr/local/phppgadmin/phppgadmin On 25.10.10 14:57, Joost de Heer wrote: > Alias /target /usr/local/phppgadmin/phppgadmin Ehm... Alias /target/ /usr/local/phppgadmin/phppgadmin/ trailing slashes DO have a meaning. without them, the

Re: [us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 8:39 AM, e-letter wrote: I received an error that permission is denied: Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. This error message will be accompanied by an additional error m

Re: [us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread Joost de Heer
On Mon, October 25, 2010 14:39, e-letter wrote: > On 21/10/2010, e-letter wrote: >> I tried to use the command 'Alias', to try and use the program >> phppgadmin which was extracted to /path/to/phppgadmin: There are some errors: >> Alias /localhost/target /usr/local/phppgadmin/phppgadmin Alias /

[us...@httpd] Re: possible to add multiple locations for the document root

2010-10-25 Thread e-letter
On 21/10/2010, e-letter wrote: > I tried to use the command 'Alias', to try and use the program > phppgadmin which was extracted to /path/to/phppgadmin: > > DocumentRoot "/var/www/html" > Alias /localhost/target /usr/local/phppgadmin/phppgadmin > > Order allow,deny > Allow from all > > > After s

Re: [us...@httpd] missing $DESTDIR in HTTPD 2.2.17

2010-10-25 Thread Eric Covener
On Mon, Oct 25, 2010 at 7:33 AM, Eugene wrote: > Hello, > > I usual make packages of HTTPD by myself for my Solaris 10 systems. > After successful compilation I do "DESTDIR=$TMPDIR gmake install" and > then make a package from the temporary dir. This is missing from the apr-util bundled with http

Re: [us...@httpd] Clean shutdown on Windows

2010-10-25 Thread William A. Rowe Jr.
On 10/25/2010 4:21 AM, Gabriel Petrovay wrote: > Hi, > > I am using: > Server version: Apache/2.2.16 (Win32) > Server built: Jul 30 2010 16:15:37 > and also: > mod_fcgid (2.4.6) > > I start Apache form console: > httpd.exe -f my_httpd_conf_file.conf > > fcgid starts as expectedly my_fcgi.exe (

[us...@httpd] Clean shutdown on Windows

2010-10-25 Thread Gabriel Petrovay
Hi, I am using: Server version: Apache/2.2.16 (Win32) Server built: Jul 30 2010 16:15:37 and also: mod_fcgid (2.4.6) I start Apache form console: httpd.exe -f my_httpd_conf_file.conf fcgid starts as expectedly my_fcgi.exe (written in C++) which performs the logic of my requests. The problem is

Re: [us...@httpd] Hardening Apache against attacks

2010-10-25 Thread Joost de Heer
On Sun, October 24, 2010 22:47, Jason Nunnelley wrote: > I've done a few things already: blocked certain IP blocks, block know > problematic user agents. I'm trying to collect a list of Apache and > site hardening (.htaccess) methods. Please share your favorite. Why .htaccess? Security tip #1 shou

Re: [us...@httpd] Hardening Apache against attacks

2010-10-25 Thread William A. Rowe Jr.
On 10/24/2010 3:47 PM, Jason Nunnelley wrote: > I've done a few things already: blocked certain IP blocks, block know > problematic user agents. I'm trying to collect a list of Apache and > site hardening (.htaccess) methods. Please share your favorite. Allowing .htaccess is orthogonal to hardenin

RE: [us...@httpd] Hardening Apache against attacks

2010-10-25 Thread Assarsson, Emil
Got an slowloris attack a while ago on my own server. I added a rule in iptables to limit numbers a single source IP could use. -- Emil -Original Message- From: Jason Nunnelley [mailto:ja...@jasonn.com] Sent: söndag den 24 oktober 2010 22:47 To: users@httpd.apache.org Subject: [us...@ht