Thanks for that Joshua.

On 8/25/06, Joshua Slive <[EMAIL PROTECTED]> wrote:
On 8/25/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
> Hello World,
>
> Is it possible to environment variables such as the domain name being
> access to adaptable Apache configuration.
>
> Such as
>
> Alias /documents /home/www/domain.com.au/documents
>
> Where domain.com.au could be replaced depending on what domain name
> was accessed.

Not in general, since most apache directives are resolved at
start-time, not at request time.  But in that particular case, you can
use mod_rewrite:
RewriteEngine On
RewriteRule ^/documents /home/www/%{SERVER_NAME}/documents
(You probably want to assure that UseCanonicalName is set On in this
case to avoid bad things happening when people supply arbitrary Host
headers.)

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to