Hi,
Im trying to configure the httpd.conf file so that my apache (1.3.19) resolves the following browser lookups.
intranet.server.myco.co.uk -> "D:\htdocs\intranet\html"
server.myco.co.uk -> "D:\Program Files\IBM HTTP Server\htdocs"
This is an internal (intranet) server, and the above two domains have been set up at DNS level to resolve to the server (which works), but I cannot get apache to differntiate between the two requests.
Both browser requests always seems to resolve to the "D:\htdocs\intranet\html" dir, regardless of the virtual host order !
If I take out all the virtual host stuff, then it just goes to "D:\Program Files\IBM HTTP Server\htdocs", as expected.
What the h3ll am I doing wrong in this file? ( I have a feeling this is an easy one!)
My httpd.conf file is as follows;
- - - - - - - - - - - -
ServerName server.myco.co.uk
ServerType standalone
ServerRoot "e:/Program Files/IBM HTTP Server"
Port 80
HostNameLookups On
BindAddress *
UseCanonicalName On
<VirtualHost * >
DocumentRoot "D:\htdocs\intranet\html"
ServerName intranet.server.myco.co.uk
</VirtualHost>
<VirtualHost * >
DocumentRoot "D:\Program Files\IBM HTTP Server\htdocs"
ServerName server.myco.co.uk
</VirtualHost>
DocumentRoot "d:/Program Files/IBM HTTP Server/htdocs"
DirectoryIndex index.html
- - - - - - - - - - - -
Thanks in advance for any suggestions, (perhaps I can stop banging my head against the wall soon! )
Cheers
John (Sudmill)
Im trying to configure the httpd.conf file so that my apache (1.3.19) resolves the following browser lookups.
intranet.server.myco.co.uk -> "D:\htdocs\intranet\html"
server.myco.co.uk -> "D:\Program Files\IBM HTTP Server\htdocs"
This is an internal (intranet) server, and the above two domains have been set up at DNS level to resolve to the server (which works), but I cannot get apache to differntiate between the two requests.
Both browser requests always seems to resolve to the "D:\htdocs\intranet\html" dir, regardless of the virtual host order !
If I take out all the virtual host stuff, then it just goes to "D:\Program Files\IBM HTTP Server\htdocs", as expected.
What the h3ll am I doing wrong in this file? ( I have a feeling this is an easy one!)
My httpd.conf file is as follows;
- - - - - - - - - - - -
ServerName server.myco.co.uk
ServerType standalone
ServerRoot "e:/Program Files/IBM HTTP Server"
Port 80
HostNameLookups On
BindAddress *
UseCanonicalName On
<VirtualHost * >
DocumentRoot "D:\htdocs\intranet\html"
ServerName intranet.server.myco.co.uk
</VirtualHost>
<VirtualHost * >
DocumentRoot "D:\Program Files\IBM HTTP Server\htdocs"
ServerName server.myco.co.uk
</VirtualHost>
DocumentRoot "d:/Program Files/IBM HTTP Server/htdocs"
DirectoryIndex index.html
- - - - - - - - - - - -
Thanks in advance for any suggestions, (perhaps I can stop banging my head against the wall soon! )
Cheers
John (Sudmill)