I'm trying to set up apache 1.3.6 to handle name-based virtual servers. My
servers are running locally for testing, I'm not trying to set up a
public-access web server.

My hosts file contains:

"127.0.0.1      britlinks.co.uk mworks.britlinks.co.uk www.britlinks.co.uk
britlinks localhost" 

(a bit crowded, but all on one line in the actual file)

and my httpd.conf file contains (among other things):

"NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName mworks.britlinks.co.uk
DocumentRoot /home/httpd/marketingworks.co.uk
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName britlinks.co.uk
DocumentRoot /home/httpd/html
ServerAlias www.britlinks.co.uk
</VirtualHost>"

but whether I type in mworks.britlinks.co.uk or www.britlinks.co.uk or
britlinks.co.uk, I always get the same page... /home/httpd/html/index.html

Where have I gone wrong?

cheers. James.

-- 
    James Stewart     |          Britlinks         |  The Phantom Tollbooth
[EMAIL PROTECTED] | http://www.britlinks.co.uk | http://www.tollbooth.org

     Sixpence None The Richer UK -- http://www.britlinks.co.uk/sixpence/

Reply via email to