default apache start page

rmday

Verified User
Joined
Dec 29, 2004
Messages
53
We just had direct admin installed and I can access web sites but if I just use the serverip I get the default apache strart page.
How do I tell direct admin what site to serve if the ip is just entered??

Thanks Direct Admin is Sweet!!!!
 
Hi rmday,

You can do this by editing the httpd.conf file in the /etc/httpd/conf directory and set up / change the virtual host entry for the IP address.

Don't forget to restart Apache /sbin/service httpd restart

regards,
Onno
 
Do I change the AliasMatch or DocumentRoot to the actual path?
And will this not mess up anything with directadmin doing name based sites? Or change $1 >User and $2??



<VirtualHost IPADDRESS:80>
ServerName localhost
ServerAdmin [email protected]
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/html
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
Thanks
 
Back
Top