Server IP to point for specifik domain

jimbaud

New member
Joined
Oct 22, 2005
Messages
2
Hi,

I have a server that's administrated with directadmin.

My main domain(the only one i use) lies on the server ip, but I can only access it by typing the domain name, when typing the ip-adress I get the default apache page. How can I fix so that the ip gives the same pages as the domain?

Also, I was thinking of installing a SSL-certificate on secure.domain.com and I want it to point to the same files as www.domain.com , how do I do this? I guess secure.domain.com has to have a dedicated IP?

Regards,
Jimbaud
 
Edit the httpd.conf and look for the virtual host for your IP address. Change the path for ducument-root to the path to your website.... Or you could simply put a redirect script in /var/www/html.
 
Yeah I've actually already fixed prob. 1, now my problem is that I want to have the document root for another ip to /home/admin/ ... /public_html also but if I change in ips.conf the changes will be deleted if i change anything in directadmin. It points it to the shared_ip folder, where do I change that so that default is to point to a specifik folder.

Regards,

Jimmie
 
Edit the default document root in httpd.conf and it will solve all your troubles :)
 
Back
Top