vasilev
February 11th, 2010, 01:17 PM
hello ,
i see one tread here , but i dont see an answer :)
so .. this is my problem :
I have real Ip and paid domain name .
I have router , i have set port forwarding (port 53) to the internal ip of my server .
I have read this :
http://www.mutinydesign.co.uk/scripts/configure-automatic-subdomains-with-apache/
and from the server when i type in firefox for example test.domain.com - it opens domain.com . But from external (from other pc , other network) it doesn't .
Can you help me .. Where I am wrong ? and where to put the rewrite rule :
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.domain.com
RewriteCond /var/www/localhost/%1 -d
in /var/www/.htaccess or in other place .
thank you .
RewriteRule ^(.*) /%1/$1 [L]
i see one tread here , but i dont see an answer :)
so .. this is my problem :
I have real Ip and paid domain name .
I have router , i have set port forwarding (port 53) to the internal ip of my server .
I have read this :
http://www.mutinydesign.co.uk/scripts/configure-automatic-subdomains-with-apache/
and from the server when i type in firefox for example test.domain.com - it opens domain.com . But from external (from other pc , other network) it doesn't .
Can you help me .. Where I am wrong ? and where to put the rewrite rule :
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.domain.com
RewriteCond /var/www/localhost/%1 -d
in /var/www/.htaccess or in other place .
thank you .
RewriteRule ^(.*) /%1/$1 [L]