Re: [us...@httpd] Default server is overridden by first VirtualHost

2009-05-04 Thread Basil Mohamed Gohar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/04/2009 06:48 PM, Eric Covener wrote: > On Mon, May 4, 2009 at 12:19 AM, Basil Mohamed Gohar > wrote: > >>> The manual explicitly talks about this. If it matches, it will hide >>> the base/default server. >>&

Re: [us...@httpd] Default server is overridden by first VirtualHost

2009-05-03 Thread Basil Mohamed Gohar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/01/2009 11:16 PM, Eric Covener wrote: > On Fri, May 1, 2009 at 10:44 AM, Basil Mohamed Gohar > wrote: >> # >> # Use name-based virtual hosting. >> # >> NameVirtualHost *:80 >> >> >>Serve

[us...@httpd] Default server is overridden by first VirtualHost

2009-05-01 Thread Basil Mohamed Gohar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have my local machine configured as the following: beta <- default server x <- vhost1 (with aliases y & z) When I access the webserver using the name "beta", it loads x, which is the first VirtualHost. The output of apachectl -S is as follows:

Re: [us...@httpd] Server-Variables in CondPattern of RewriteCond directive

2009-04-23 Thread Basil Mohamed Gohar
On 04/23/2009 03:22 AM, Tom Evans wrote: On Wed, 2009-04-22 at 23:22 +0800, Basil Mohamed Gohar wrote: On 04/22/2009 11:11 PM, Tom Evans wrote: On Wed, 2009-04-22 at 22:30 +0800, Basil Mohamed Gohar wrote: On 04/22/2009 10:17 PM, Eric Covener wrote: On Wed, Apr

Re: [us...@httpd] Server-Variables in CondPattern of RewriteCond directive

2009-04-22 Thread Basil Mohamed Gohar
On 04/22/2009 11:47 PM, André Warnier wrote: Basil Mohamed Gohar wrote: Writing it by hand for all the different VirtualHosts is what I was trying to avoid. Doing it with variables was the goal, and it seems that is not possible. I've been writing it by hand for years now. ;) I thin

Re: [us...@httpd] Server-Variables in CondPattern of RewriteCond directive

2009-04-22 Thread Basil Mohamed Gohar
On 04/22/2009 11:11 PM, Tom Evans wrote: On Wed, 2009-04-22 at 22:30 +0800, Basil Mohamed Gohar wrote: On 04/22/2009 10:17 PM, Eric Covener wrote: On Wed, Apr 22, 2009 at 10:14 AM, Basil Mohamed Gohar wrote: Outside of htaccess, the pattern is compiled at startup, so you

Re: [us...@httpd] Server-Variables in CondPattern of RewriteCond directive

2009-04-22 Thread Basil Mohamed Gohar
On 04/22/2009 10:17 PM, Eric Covener wrote: On Wed, Apr 22, 2009 at 10:14 AM, Basil Mohamed Gohar wrote: Outside of htaccess, the pattern is compiled at startup, so you can't use variables (because they depend on parts of the request, even ServerName). IIUC It's feasible in per

Re: [us...@httpd] Server-Variables in CondPattern of RewriteCond directive

2009-04-22 Thread Basil Mohamed Gohar
On 04/22/2009 09:20 PM, Eric Covener wrote: On Wed, Apr 22, 2009 at 8:21 AM, Basil Mohamed Gohar wrote: Hello everyone! What I am trying to do is use the server variable %{SERVER_NAME} as the CondPattern argument to the RewriteCond directive. However, all of my attempts appear to

[us...@httpd] Server-Variables in CondPattern of RewriteCond directive

2009-04-22 Thread Basil Mohamed Gohar
Hello everyone! What I am trying to do is use the server variable %{SERVER_NAME} as the CondPattern argument to the RewriteCond directive. However, all of my attempts appear to render the string '%{SERVER_NAME}' as a string literal, rather than replacing it with the variable name I expect (i.