Results 1 to 7 of 7
-
05-20-2011, 01:00 PM #1Junior Guru Wannabe
- Join Date
- Apr 2011
- Posts
- 56
Virtual host HTTPD with 2 domains
Hello I have a vps and I'm currently using Apache as a web server , I have 2 domains and I want to host them both on the same VPS. I dont have nameservers so I'm using A records pointing to the IP of the vps. I added a virtual host at the end of the apache config file like this:
<VirtualHost 10.1.1.1>
ServerAdmin ****@gmail.com
DocumentRoot /home/wwwroot/****
ServerName abc.com
ServerAlias abc.com
ErrorLog logs/abc.com-error_log
CustomLog logs/abc.com-access_log common
</VirtualHost>
-
05-20-2011, 02:44 PM #2Web Hosting Evangelist
- Join Date
- Dec 2007
- Posts
- 471
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Posting your actual VirtualHost entries will help more then a generic example.
What do your logs say?
-
05-20-2011, 03:15 PM #3Junior Guru Wannabe
- Join Date
- Apr 2011
- Posts
- 56
There is nothing regarding the virtual hosts in the logs.
This is the actual entry:
NameVirtualHost 10.1.1.1
<VirtualHost 10.1.1.1>
ServerAdmin ****@gmail.com
DocumentRoot /home/wwwroot/
ServerName 9lol.com
ServerAlias 9lol.com
ErrorLog logs/9lol.com-error_log
CustomLog logs/9lol.com-access_log common
</VirtualHost>
<VirtualHost 10.1.1.1>
ServerAdmin ****@gmail.com
DocumentRoot /home/wwwroot/politika2
ServerName embroiderydisplay.com
ServerAlias embroiderydisplay.com
ErrorLog logs/embroiderydisplay.com-error_log
CustomLog logs/embroiderydisplay.com-access_log common
</VirtualHost>
-
05-20-2011, 03:39 PM #4Aspiring Evangelist
- Join Date
- Apr 2010
- Location
- North Carolina
- Posts
- 442
Is 10.1.1.1 the IP your server is on?
-
05-20-2011, 03:46 PM #5Junior Guru Wannabe
- Join Date
- Apr 2011
- Posts
- 56
No..........
-
05-20-2011, 04:39 PM #6Aspiring Evangelist
- Join Date
- Apr 2010
- Location
- North Carolina
- Posts
- 442
Then change it to the server's IP.
-
05-20-2011, 04:43 PM #7Junior Guru Wannabe
- Join Date
- Apr 2011
- Posts
- 56
Yes that solved it Thanks a lot guys.
Similar Threads
-
httpd down after updating all plesk domains
By anjanesh in forum Hosting Software and Control PanelsReplies: 13Last Post: 03-01-2008, 03:23 AM -
i need httpd and htaccess for my web host.
By j_miguel_y in forum Web HostingReplies: 3Last Post: 11-16-2005, 05:49 PM -
Virtual host setup for multiple domains
By Sillysoft in forum Hosting Security and TechnologyReplies: 4Last Post: 03-04-2005, 01:56 AM -
Multiple domains on one virtual host
By jbe in forum Dedicated ServerReplies: 1Last Post: 09-01-2003, 09:36 AM -
httpd.conf - Virtual Hosting/Parking/Pointing
By domingo in forum Hosting Security and TechnologyReplies: 2Last Post: 05-31-2003, 11:20 PM