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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |