Hello everyone I have a weird problem that i cannot find answer for anywhere. I have a DYNDNS domain (somedomain.selfip.org) with wildcards enabled that points to a router/firewall/NAT running Tomato (a.somedomain.selfip.org). On the router i have a forwarding of port 80 enabled pointing to a host on a local network (b.somedomain.selfip.org), that is running a Apache 2.2 server. On that server i would like to host following domains: 1. somedomain.selfip.org, www.somedomain.selfip.org, b.somedomain.selfip.org, b pointing to /var/www/apache2-default 2. user1.somedomain.selfip.org, user2.somedomain.selfip.org pointing to /var/www/user12 My current config is: In /etc/apache2/httpd.conf Code: NameVirtualHost *:80 <IfModule mod_ssl.c> NameVirtualHost *:443 </IfModule> In /etc/apache2/sites-available/default Code: <VirtualHost *:80> ServerName somedomain.selfip.org ServerAlias somedomain.selfip.org b.somedomain.selfip.org b ServerAdmin root@xxxxxxxxxxxxxxxxxxxxx DocumentRoot /var/www/apache2-default/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/default/error.log LogLevel debug CustomLog /var/log/apache2/default/access.log combined ServerSignature On </VirtualHost> In /etc/apache2/sites-available/user12 Code: <VirtualHost *:80> ServerName user1.somedomain.selfip.org ServerAlias user2.somedomain.selfip.org ServerAdmin user12@xxxxxxxxxxxxx DocumentRoot /var/www/user12/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/user12/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/user12/error.log LogLevel debug CustomLog /var/log/apache2/user12/access.log combined ServerSignature On </VirtualHost> The problem is that whatever subdomain i enter: user1.somedomain.selfip.org user1.somedomain.selfip.org (even a non-existent ones line - idontexist.somedomain.selfip.org) i get the site form first virtual host. What could be the problem. On further investigation I found out that a server responds to requests with a 301 (Moved Permanently) response, then the browser tries to connect to the url pointing a page from the first domain. Last thing (a printout from apache2 -S): VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server somedomain.selfip.org (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost somedomain.selfip.org (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost user1.somedomain.selfip.org (/etc/apache2/sites-enabled/001-user12:1) Syntax OK Any ideas? Sify ---------------------------------------------------------------------- Notowania GPW w telefonie! Sprawdz >> http://link.interia.pl/f1f37 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx