Virtual hosts, a problem with resolving names

This is a discussion on Virtual hosts, a problem with resolving names within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi folks I have running apache2 with 3 name-based vitual hosts. The SLES 10 server is behind a adsl ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-26-2007
NoCTRL
 
Posts: n/a
Default Virtual hosts, a problem with resolving names

Hi folks

I have running apache2 with 3 name-based vitual hosts.
The SLES 10 server is behind a adsl NAT with dynamic IP.
I've got 3 dyndns domains with wildcards enabled.

Config:

<VirtualHost *:80>
ServerAdmin info@name.selfip.com
ServerName name.selfip.com
DocumentRoot /srv/www/vhosts/name
ScriptAlias /cgi-bin/ /srv/www/vhosts/name/cgi-bin
<Directory /srv/www/vhosts/name/cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/vhosts/name">
Options FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

and in the /etc/hosts

192.168.1.10x name.selfip.com name

So everything works fine as long I put the 'name.selfip.com' in the broser,
but when I use www.name,selfip.com then i get only the default virtual
hosts resolved.

Thus how and where can I use wildcards to get resolved both the
name.selfip.com and the www.name.selfip.com?

Thx


--
/NoCTRL
(GNU/)Linux registered user # 437835 (goto: http://counter.li.org/)
Top Posting / missing 'Content-Type' & '-Transfer-Encoding' > /dev/null
For those banned by Google: http://en.wikipedia.org/wiki/Netiquette
  #2 (permalink)  
Old 01-26-2007
NoCTRL
 
Posts: n/a
Default Re: Virtual hosts, a problem with resolving names

Our unacquainted friend 'NoCTRL' enlightened us thusly:

> Thus how and where can I use wildcards to get resolved both the
> name.selfip.com and the www.name.selfip.com?


Ok I've found it:

ServerAlias *.name.selfip.com

Thx anyway


--
/NoCTRL
(GNU/)Linux registered user # 437835 (goto: http://counter.li.org/)
Top Posting / missing 'Content-Type' & '-Transfer-Encoding' > /dev/null
For those banned by Google: http://en.wikipedia.org/wiki/Netiquette
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0