In your httpd.conf file you can specify the options that suit you. One of the main ones your looking for is RootDirectory ..
Change that to the directory of your html files =)
Now I will post my problem so I dont have to make another topic...
My situation:
1 Server running HTTPD, BIND, ProFTPD, etc...
The server is under a router, all ports needed are forwarded.
Static Public IP Address, with internal IP of 192.168.0.2
I am being told to use NameVirtualHost *
... but when I do so I get the following error..
Code:
[Sun Oct 12 20:44:05 2003] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Oct 12 20:44:05 2003] [warn] NameVirtualHost *:0 has no VirtualHosts
So what I went ahead and did was make it NameVirtualHost *:80
This is how I have my VirtualHosts setup...
<VirtualHost *>
ServerName pctechcentral.com
DocumentRoot /home/pctechcentral
</VirtualHost>
<VirtualHost *>
ServerName anti-noob.net
DocumentRoot /home/shadow
</VirtualHost>
Now what happens is it loads the httpd.conf with no errors, but pctechcentra.com goes to the anti-noob.net, and same for anti-noob.net
What am I doing wrong, or please let me know if you need more info...