Apache Server configuration support - Virtual hosts, a problem with resolving names

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Virtual hosts, a problem with resolving names





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Virtual hosts, a problem with resolving names
NoCTRL

2007-01-25, 7:27 pm

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
NoCTRL

2007-01-26, 1:41 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com