VirtualHost not work
Posted: 08. October 2006 13:53
my computer has 1 external ip such as 203.200.200.200
i register 1 no-ip , test.no-ip.org
now, i want do that
other people can not see any think when they type 203.200.200.200
they can see my website when they are ONLY use test.no-ip.org
they can not use test2.no-ip.org... or other domain to view my web site, how can i do that?
so i add the following in httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot D:/
ServerName test.no-ip.org
<Directory "D:/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
in httpd.conf
DocumentRoot "D:/xampp/htdocs/"
i register 1 no-ip , test.no-ip.org
now, i want do that
other people can not see any think when they type 203.200.200.200
they can see my website when they are ONLY use test.no-ip.org
they can not use test2.no-ip.org... or other domain to view my web site, how can i do that?
so i add the following in httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot D:/
ServerName test.no-ip.org
<Directory "D:/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
in httpd.conf
DocumentRoot "D:/xampp/htdocs/"