Hi, so I want to get my webserver working so that I can access by for instance
http://www.TestServer.com
instead of
192.168.1.255 (e.g.)
However after editing the httpd.conf file to include
and restarting Apache it stops working (the Apache service doesn't start (I only know this from running restart after start and it then saying it isn't running (error - httpd not running, trying to start).
As far as I know the hosts file is ok, here it is just in case -
Note that before including the vhosts file that I can access the web page on the servers webpage using Tserver, or TestServer.com etc. Here is the file with the virtual hosts setup stuff -
I'm sure that I need to do something with DNS but have no idea what, and because once I enable vhosts apache won't restart I don't know what to do! Any help would be much appreciated.
http://www.TestServer.com
instead of
192.168.1.255 (e.g.)
However after editing the httpd.conf file to include
Code:
etc/apache22/extra/httpd-vhosts.conf
As far as I know the hosts file is ok, here it is just in case -
Code:
::1 localhost localhost.com
127.0.0.1 test.TestServer.com TServer
127.0.0.1 localhost.TestServer.com
192.168.1.233 TestServer.com TServer
192.168.1.233 TestServer.com
Note that before including the vhosts file that I can access the web page on the servers webpage using Tserver, or TestServer.com etc. Here is the file with the virtual hosts setup stuff -
Code:
NameVirtualHost 192.168.1.233:8080
<VirtualHost 192.168.1.233:8080>
ServerAdmin root@TestServer.com
DocumentRoot "/usr/local/www/TestServer"
ServerName TestServer.com
ServerAlias TestServer.com TServer
ErrorLog /usr/local/www/logs/TestServer-error_log
CustomLog /usr/local/www/logs/TestServer-access_log combined
</VirtualHost>
#Note this virtual host is not used and is here as a template
#<VirtualHost 192.168.1.233:8080>
#ServerAdmin root@d.example.com
#DocumentRoot "/usr/local/www/example.com
#ServerName example.com
#ServerAlias www.example.com
#ErrorLog /usr/local/www/logs/example-error_log
#CustomLog /usr/local/www/logs/example-access_log combined
#</VirtualHost>
I'm sure that I need to do something with DNS but have no idea what, and because once I enable vhosts apache won't restart I don't know what to do! Any help would be much appreciated.