Accessing apache shared hosts?
Hi folks,
I have a rack box, that's currently serving about 8 domains. I know how to set DNS and whatnot for new domains, and it all works perfectly once the DNS is up. My question is, how do I access the files before DNS goes through? I've got one IP address shared, and to my knowledge all of the forwarding to the proper URL is done by Apache. If I hit my IP address, I get an apache default page. My web root for the sites are: /home/httpd/vhosts/domain.xxx/httpdocs Thanks! |
If I understand your question right, you want to have 8 domain names that go to 8 different pages on apache. If that's right, then what you need to do is set up Virtual Hosting in apache.
Here's a quick rundown. I'll assume you're using apache2: In your httpd.conf file, uncomment or add the line: Code:
NameVirtualHost *:80 Code:
<VirtualHost *:80> Hope that helps |
All times are GMT -5. The time now is 09:07 AM. |