Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-24-2005, 11:02 PM   #1
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
Anyone have an httpd.conf example of 2 ips setup

I am having trouble setting up 2 ips to 2 seperate sites on the same server. Anyone have an example of setting up 2 ips to two different sites in the httpd.conf file? I followed the apache config but I must have screwed up somewhere.
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2005, 11:09 PM   #2
zagi
Confirmed User
 
Join Date: Jan 2004
Posts: 1,238
NameVirtualHost ip1.ip1.ip1.ip1
NameVirtualHost ip2.ip2.ip2.ip2

<Virtualhost ip1.ip1.ip1.ip1>
ServerName site.com
ServerAlias www.site.com
DocumentRoot /home/user/domain.com
</VirtualHost>

<Virtualhost ip2.ip2.ip2.ip2>
ServerName site2.com
ServerAlias www.site2.com
DocumentRoot /home/user/domain2.com
</VirtualHost>

Technically the namevirtualhost stuff on top is only if you're going to host more than 1 virtual host / IP and in this case you're not but its there just to be safe.
__________________
Managed US/NL Hosting [ [Reality Check Network ]
Dell XEON Servers + 1/2/3 TB Packages ICQ: 4-930-562
zagi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2005, 11:13 PM   #3
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
If you do 2 ips, do you have to remove all
<VirtualHost *:80> and change them to <VirtualHost Ipaddyhere:80>
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2005, 11:14 PM   #4
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
Sorry, actually I do host more than 1 site on an ip on the first IP, then just 1 on the second. My fault, i didnt make that clear
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2005, 11:28 PM   #5
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
hey whered u go.
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2005, 11:42 PM   #6
adultguus
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Location: The Netherlands
Posts: 815
Quote:
Originally Posted by BoNgHiTtA
If you do 2 ips, do you have to remove all
<VirtualHost *:80> and change them to <VirtualHost Ipaddyhere:80>
Yes you do. What Zagi said is correct.

NameVirtualHost ip1.ip1.ip1.ip1
NameVirtualHost ip2.ip2.ip2.ip2

And then with virtualhost you specify the ip that is used for the specific domain.
adultguus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2005, 12:21 AM   #7
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
alright thanks
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.