httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albrecht Marcus <>
Subject AW: redirect directory
Date Fri, 19 Jul 2002 06:55:39 GMT
Hi Jack,

thanks a lot.
That was exactly what i was looking for.
Works now.



-----Ursprüngliche Nachricht-----
Von: Jack Nerad []
Gesendet: Donnerstag, 18. Juli 2002 17:25
Betreff: Re: redirect directory

Albrecht Marcus wrote:
> Hi everybody,
> i have a problem with the "internal" redirection of apache.
> My configuration is a virtual host with name www1.* as ServerName and
> as ServerAlias.
> <VirtualHost>
>     ServerName
>     ServerAlias
>  [...snip...]
>     Options None
>     DirectoryIndex index.html index.php
> </VirtualHost>
> Now i have a sub directory named "test" with a normal index.html file.
> If i request "" i get redirected to
> .
> A request to "" gets me the right page without
> redirecting.
> So the server cant't find a file called test and internal redirects to the
> server name with "test/" to enter this directory?
> It's no availability problem because i get to this page but i don't want
> reveal that www1 name to the public.
> I know that i could just switch name and alias and the problem would
> dissapear but maybee i want the config as it is because we use
> for loadbalancing and don't want that to get screwed up.
> Is there someone out there who has deeper knowledge at this issue or how
> apache works in such cases?
> Thanks and cu

Check out the UseCanonicalName directive

It may do what you are looking for.

Jack Nerad


Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Inhalte
haben. Bitte löschen Sie die E-Mail und benachrichtigen Sie uns sofort, wenn
Sie nicht der bestimmungsgemäße Empfänger sind. Die SYCOR AG willigt in
keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt
rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern
dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien
vereinbart wurde. 
This e-mail is confidential and may contain personal and/or priviledged
material. Please delete this e-mail and inform us immediately in case you
are not the directed recipient. SYCOR AG does not agree with contracts or
contract obligations. Neither do we transmit legally binding offers by
e-mail unless this has been expressly agreed upon between the parties and
documented in written form.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message