I own two domain names which I wish to indicate my local server at home:
- world wide web.first.com
- world wide web.second.com
Both of them indicate my very own server at home (Yes I have already handled the A-record config inside my webhotel where I registered the domain names).
I have done the next:
- In httpd.conf, I have uncommented the road
In httpd-vhosts.conf I've the next code:
NameVirtualHost *:80 <VirtualHost *:80> ServerName first.com ServerAlias www.first.com DocumentRoot "C:/wamp/www/public/first" </VirtualHost> <VirtualHost *:80> ServerName second.com ServerAlias www.second.com DocumentRoot "C:/wamp/www/public/second" </VirtualHost>
- Within the httpd.conf file, I have set document-root to
C:\wamp\www\public, which is the step I am most uncertain of. What if the document root maintain the httpd.conf file once the httpd-vhosts.conf file declares multiple document roots? I have attempted to create the document cause of httpd.conf to both
What shall we be held missing here? The web pages will not load whatsoever.
DocumentRoot for "primary" server haven't sense the moment you define Virthosts - known virthosts is going to be offered using their definition, unknown - beginning with virthost in list
Create separate log-files per virthost company, check logs after access attept
The web pages will not load whatsoever
It's bad error-description. Which error-code you receive? Have you got DirectoryIndex and index-file in virthost root? How about Allow/Disallow directives for Directory locations?