Forum Moderators: phranque
I'm trying to set up virtual host on Apache in order to have a development environment where I can use absolute paths for links.
I've followed the instructions on [httpd.apache.org ]
and when I restart Apache, no errors appear.
I have added the new host names in the hosts file in Windows.
The site files are located under C:/SITES/www/MyWebSite
with an index.html as a test page.
THE PROBLEM:
When i try to browse the site (By typing [MyWebSite),...] it doesn't load. The message in the status bar is "waiting for MyWebSite..."
Could anyone please tell me what I might be doing wrong?
Is it my directory structure, or something more technical in the configuration?
Any help on this would be much appreciated!
extra information:
It was running fine with the 'Virtual hosts' turned off in httpd.conf - At the time, my folder structure was /My Documents/apachepub/localhost/www/index.html,
so I would type [localhost...] and my index page would load.
I have since changed the location but have updated the config file accordingly.
Listen 80
NameVirtualhost *:80
#
<Virtualhost *:80>
ServerName localhost
DocumentRoot "C:/My Documents/apachepub/localhost/www"
</Virtualhost>
#
<Virtualhost *:80>
ServerName MyWebSite
DocumentRoot "C:/SITES/www/MyWebSite"
</Virtualhost>
The Apache2.2 service is restarting.
The Apache2.2 service has restarted.
arent: Received restart signal -- Restarting the server.
[Mon Jan 26 12:39:21 2009] [notice] Child 588: Exit event signaled. Child process is ending.
[Mon Jan 26 12:39:22 2009] [notice] Child 588: Released the start mutex
[Mon Jan 26 12:39:23 2009] [notice] Child 588: All worker threads have exited.
[Mon Jan 26 12:39:23 2009] [notice] Child 588: Child process is exiting
[Mon Jan 26 12:39:25 2009] [notice] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Mon Jan 26 12:39:25 2009] [notice] Server built: Jun 13 2008 04:04:59
[Mon Jan 26 12:39:25 2009] [notice] Parent: Created child process 988
[Mon Jan 26 12:39:29 2009] [notice] Child 988: Child process is running
[Mon Jan 26 12:39:29 2009] [notice] Child 988: Acquired the start mutex.
[Mon Jan 26 12:39:29 2009] [notice] Child 988: Starting 64 worker threads.
[Mon Jan 26 12:39:29 2009] [notice] Child 988: Starting thread to listen on port 80.
- end log text
Thanks so much for your time!