Forum Moderators: phranque

Message Too Old, No Replies

Setting up my server for a new domain

I'm not sure what I'm doing

         

Numberman

8:47 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



I've got a Red Hat 7 Apache server and root priveleges. I got a domain pre-installed with the package I bought from my hosting company, so I had no trouble.

Now I've bought a new domain for my package, but I don't know how to get it to work with my webserver. Can someone run me through the steps?

pmkpmk

8:56 pm on Apr 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I do not mind running you trough the steps, but wouldn't that be the duty of your hosting company?

1) Have your DNS for the new domain pointing to the IP address of your server

2) Edit your Apache configuration for the new virtual host. The file usually is httpd.conf and if you're lucky it (or a symbolic link to it) resides either in /etc or /etc/httpd. If not, you need to search for it for example with

find / -n httpd.conf -p

Once you have the file, find the section on virtual hosts (hopefully your first domain is listed as a virtual) and simply copy the section and insert the new domain name.

3) Restart Apache

Numberman

8:59 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



Thanks alot.

My hosting company is very cheap but their level of support is minimal at best. I figured I'd probably do better asking people here than their gorillas at technical support :/

pmkpmk

8:23 am on Apr 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Has it worked?

Numberman

2:59 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



It works. Thanks very much because I was completely lost as to how to get each domain to point to different document roots.