This is a discussion on Apache (2) & XP Pro vs. NameVirtualHost within the Apache Web Server forums, part of the Web Server and Related Forums category; I have read many threads here, the official docs, and _still_ can't get my apache install to host my ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have read many threads here, the official docs, and _still_ can't
get my apache install to host my 2 domains' web sites from the same server. They always serve the same domains web page. Does anyone know if there is any XP / Apache related issues? Do I have to use one namevirtual host *, and one namevirtualhost _default_ or something weird? Any help is appreciated. I can post _relevant_ section of conf file if helpful. |
|
|||
|
#---> Main server parameters <---#
ServerName www.123.net ServerAdmin paul@123.net DocumentRoot "C:/www/swd" DirectoryIndex default.html default.htm index.html index.html.var DefaultType text/plain <Directory "C:/www"> AllowOverride None Options Indexes MultiViews Order allow,deny Allow from all </Directory> NameVirtualHost * <VirtualHost *> ServerName www.123.net DocumentRoot "C:/www/swd" </VirtualHost> <VirtualHost *> ServerName www.abc.com DocumentRoot "C:/www/sfl" </VirtualHost> |