Spec Me a Webserver App!

Freakish_05 said:
Hokai,

Getting on well with XAMPP. Now trying to configure virtual hosts... DUM DUM DUUMMMM :p

I've editied the vhosts config file as per the documentation on the apache website but it's not having any of it.

Here is my vhosts config file:
Code:
NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "C:/Program Files/XAMPP/htdocs"
    ServerName 192.168.2.4
    ServerAlias localhost
    ServerRoot "C:/Program Files/xampp/apache"
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/www/moshweb/"
    ServerName moshweb.co.uk
    ServerAlias www.moshweb.co.uk
    ErrorLog @rel_logfiledir@/moshweb.co.uk-error_log
    CustomLog @rel_logfiledir@/moshweb.co.uk-access_log common
</VirtualHost>
When I put the old ## in front of all the lines the apache server runs fine.
Any ideas as to what could be causing the problem?

Cheers.

In what manner does it not work? Errors ?
What happens if you type the address(es) into a browser?
 
Back
Top Bottom