Computing.Net > Forums > Linux > point domain to folder?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

point domain to folder?

Reply to Message Icon

Name: LuXien
Date: December 6, 2004 at 08:08:28 Pacific
OS: Slackware 10
CPU/Ram: AMD Duron 1.6GHz/128mb DD
Comment:

Hey,

Once I setup my DNS server and other services, and I point my domain to my machine, how do I point it the specific www folder? if I want host.domain.com to the default /var/www and the www.domain.com to the /home/site/ folder?

thanks,



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: December 10, 2004 at 08:29:12 Pacific
Reply:

Edit your httpd.conf file and add a VirtualHost, eg:

<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot /var/www
ServerName host.domain.com
ErrorLog logs/host.domain.com-error_log
CustomLog logs/host.domain.com-access_log common
</VirtualHost>

If you want your main www.domain.com to point to /home/site then I would suggest changing your DocumentRoot to that.


0

Response Number 2
Name: LuXien
Date: December 10, 2004 at 14:27:38 Pacific
Reply:

i prefer not. Could this cause a problem?

thanks,


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: point domain to folder?

joining samba server to Win domain www.computing.net/answers/linux/joining-samba-server-to-win-domain/20004.html

Sendmail DNS woes! www.computing.net/answers/linux/sendmail-dns-woes/8745.html

Apache/PHP Config Problem www.computing.net/answers/linux/apachephp-config-problem/23024.html