What is a "Foreword" to a blog?
VirtualHost qeustion
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > VirtualHost qeustion 3 July 2003 22:03:23

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

VirtualHost qeustion

Craig Steffler 3 July 2003 22:03:23
 I have 3 domains going to the same system and am using the VirtualHost
directives for 2 of the 3 domains.

The problem I'm having is that all 3 sites all point to the main site
instead of their specific sites.

The excerpt from my httpd.conf has:
<VirtualHost 10.0.0.50>
ServerAdmin serveradmin@domain2­.com
DocumentRoot /usr/local/httpd/ht­docs/domain2
ServerName www.domain2.com
ErrorLog /var/log/httpd/erro­r_log
</VirtualHost>

<VirtualHost 10.0.0.51>
ServerAdmin serveradmin@domain3­.com
DocumentRoot /usr/local/httpd/ht­docs/domain3
ServerName www.domain3.xom
ErrorLog /var/log/httpd/erro­r_log
</VirtualHost>

I've done the DNS to point to the proper address. I've included the
references in the /etc/hosts file.
I've also done the following:
ifconfig eth0:0 10.0.0.50
ifconfig eth0:1 10.0.0.51
route add -host 10.0.0.50 dev eth0:0
route add -host 10.0.0.51 dev eth0:1

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Joshua Slive 3 July 2003 17:42:15 permanent link ]
 
On Thu, 3 Jul 2003, Craig Steffler wrote:
I have 3 domains going to the same system and am using the VirtualHost> directives for 2 of the 3 domains.>
The problem I'm having is that all 3 sites all point to the main site> instead of their specific sites.

You configuration looks basically correct, but there is no way to help you
if you obscure the true IP addresses and hostnames. The most likely
problem is incorrect DNS or IP configuration, but with everything
obscured, it is impossible to tell. You should also assure you have the
appropriate Listen directives.

Joshua.

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Richard Gration 3 July 2003 18:18:31 permanent link ]
 Do you have the lines

NameVirtualHost 10.0.0.50:80
NameVirtualHost 10.0.0.51:80

anywhere in your httpd.conf ??

R

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jeff Cohen 3 July 2003 22:03:23 permanent link ]
 Why won't you just point all addreses to the same external IP address and
map that external address into one internal address and use:

NameVirtualHost 10.0.0.50:80

<VirtualHost 10.0.0.50:80>
ServerAdmin serveradmin@domain1­.com
DocumentRoot /usr/local/httpd/ht­docs/domain1
ServerName www.domain1.xom
ErrorLog /var/log/httpd/erro­r_log
</VirtualHost>

<VirtualHost 10.0.0.50:80>
ServerAdmin serveradmin@domain2­.com
DocumentRoot /usr/local/httpd/ht­docs/domain2
ServerName www.domain2.com
ErrorLog /var/log/httpd/erro­r_log
</VirtualHost>

<VirtualHost 10.0.0.50:80>
ServerAdmin serveradmin@domain3­.com
DocumentRoot /usr/local/httpd/ht­docs/domain3
ServerName www.domain3.xom
ErrorLog /var/log/httpd/erro­r_log
</VirtualHost>


Check to fit this config to your and it should work properly.

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!


-----Original Message-----> From: craig [mailto:craig] On Behalf Of Craig Steffler> Sent: Thursday, July 03, 2003 9:55 AM> To: users@httpd.apache.­org> Subject: [users@httpd] VirtualHost qeustion>
I have 3 domains going to the same system and am using the VirtualHost> directives for 2 of the 3 domains.>
The problem I'm having is that all 3 sites all point to the main site> instead of their specific sites.>
The excerpt from my httpd.conf has:> <VirtualHost 10.0.0.50>> ServerAdmin serveradmin@domain2­.com> DocumentRoot /usr/local/httpd/ht­docs/domain2> ServerName www.domain2.com> ErrorLog /var/log/httpd/erro­r_log> </VirtualHost>>
<VirtualHost 10.0.0.51>> ServerAdmin serveradmin@domain3­.com> DocumentRoot /usr/local/httpd/ht­docs/domain3> ServerName www.domain3.xom> ErrorLog /var/log/httpd/erro­r_log> </VirtualHost>>
I've done the DNS to point to the proper address. I've included the> references in the /etc/hosts file.> I've also done the following:> ifconfig eth0:0 10.0.0.50> ifconfig eth0:1 10.0.0.51> route add -host 10.0.0.50 dev eth0:0> route add -host 10.0.0.51 dev eth0:1>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > VirtualHost qeustion 3 July 2003 22:03:23

see also:
MySQL connect problems
I am trying to write & read to a file
COM - setting an indexed property
пройди тесты:
Do you really know yourself?
see also:
So....I am good girl
Hello!!!!!!

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .