Can anyone spot what I am doing wrong?
I am trying to setup a test Apache server to allow staff to look at Moodle and have a play. I have a station running everything fine but I want a simple name for them to enter in the address bar. I have setup the DNS fine but the VirtualHosts seems to be causing me trouble.
So I want EduGeek.net to go to the moodle installation. moodle is redirected by DNS to that station.
In the http.conf I have:
But nothing happens. That document path is correct for the folder moodle is installed on & all I get is a network timeout error.
DocumentRoot "C:/Program files/xampp/htdocs/moodle"
If you're getting a network timeout error; it's nothing to do with your vhost mate assuming apache is actually running at http://22.214.171.124
More likely the DNS (or even further more likely is that it's trying to through your proxy).
Well "moodle" is in my proxy bypass settings and before setting the virtualHost I could use "moodle" to go to the document root fine. It just gives this error when teh VH is being used.
So ignoring the vhost for a second, can you still access the "real" document root via the boxes IP. (In effect checking whether Apache is actually running properly)
Failing that; check the logs as apache is pretty verbose when vhosts are annoying it, but I've not used it on Windows so can't do too much :(
Im not sure if this will help but my vhost files look like this:
allow from all
When you restart apache it normally tells you of any problems, I see you are using XAMPP, try checking the httpd.log for clues.
DOH!!! GRRRRRRRR. Just found that somewhere along the way the config file had saved to a completely different server!!! WHY!! SO I'll start this again. :doh:
& I have just got it working first time. Although this time I switched to using the httpd-vhosts.conf file. why couldn't this have happened 3 hours ago!! Ta for the help though all