What is a "Foreword" to a blog?
Help with VirtualHost config
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 > Help with VirtualHost config 10 September 2002 08:09:59

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

Help with VirtualHost config

Tony Lavoie 10 September 2002 08:09:59
 Hello all,

A seemingly simple configuration is eluding me.. maybe because I'm not
understanding everything, maybe because something outside of apache isn't
working and I'm not seeing any error about it.

Anyway, first off, my configuration:
apache 1.3.26 on Linux (2.4 kernel),
static IP goes to my firewall/nat, which forwards :80 to the box (which is
a 192.168. IP on the LAN).
The static IP has a DNS name, and I also have a dyndns.org name which
resolves to the static IP.
The main configuration (before mucking with vhosts) correctly served pages
out of aliased directories, some of which were restricted for access to
other LAN 192.168 IP's.

What I'd *like* to work (but have not had complete success with thus far):
Have requests looking for the dyndns.org name use one of the aliased
directories as document root...
...but requests using the static IP, LAN IP, or ISP's DNS name to use the
main configuration.

So far, I can get it to do either of those, but only in mutual exclusion.

The only real changes I had done to my httpd.conf from when it was working
before was to add:

NameVirtualHosts *

<VirtualHost _default_:*­>
</VirtualHost>

<VirtualHost *>
...
ServerName <something.dyndns.o­rg>
</VirtualHost>

What I think I understood from the docs, FAQ, etc was that requests
matching something.dyndns.or­g would use that configuration, and everything
else would fall under the _default_, which with no enclosed info was just
the main server config.

Could someone please point out where I went wrong?

Much Appreciated,
-Tony


-------------------­--------------------­--------------------­----------
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 > Help with VirtualHost config 10 September 2002 08:09:59

see also:
[JBoss Seam] - Re: Seam remoting -- any…
[JBoss Portal] - Re: CMS errors on…
need help gor image upload
пройди тесты:
see also:
Transfer iTunes Library to Zune
Error while using Itext.jar
Privet.Ja novjenkaja.

  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 .