httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klavs Klavsen>
Subject Re: [users@httpd] apache2 handles weirdly
Date Thu, 21 Aug 2003 08:41:14 GMT
On tor, 2003-08-21 at 07:30, Zac Stevens wrote:
> I was under the impression that you can only have one ServerAlias directive
> per VirtualHost.  ie, the first ServerAlias is working and the rest are
> being ignored.  You can test this by rearranging the order of the
> ServerAlias lines in your existing config.
Actually the other works just as well.

> Try listing the three aliases separated by spaces on a single ServerAlias
> line and see how it goes.
I tried this:


I also tried to change it to:


and it doesn't make any difference ( still works) :(

yet ServerAlias works fine for other shops - see f.ex. (which I changed
just now - to try the other setup)

    DocumentRoot /www/webhotel/html

    DirectoryIndex index.php

    RewriteEngine On
    # rewrite all to
    RewriteCond %{HTTP_HOST} !^$ [NC]
    RewriteRule ^/(.*)$$1 [R,L]

As you'll see - visiting sends you to
- which it wouldn't if it hadn't went into this VirtualHost - so
ServerAlias seems to work just fine.
Klavs Klavsen, GSEC - -
PGP: 7E063C62/2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
See my new CMS Hosting Service at

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
who is carrying a .38.				

View raw message