|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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.
|
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
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> |
|
|
|
|
|
#4 |
|
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
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: May 2003
Location: Seattle
Posts: 2,176
|
hey whered u go.
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: The Netherlands
Posts: 815
|
Quote:
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.
__________________
Want to have your own review site in 2 minutes? Visit us now! For the surfers: Porn Reviews |
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: May 2003
Location: Seattle
Posts: 2,176
|
alright thanks
|
|
|
|