I am using XAMPP along with dyndns.com(I have pro so wilcards are enabled).
I want to set up subdomains with my dyndns account so I can go to multiple sites, for example going to
"mysite.dyndns.com would take you to my htdocs root folder.
"site1.mysite.dyndns.com would take you to htdocs/site1/ folder
"site2.mysite.dyndns.com would take you to htdocs/site2/ folder
etc, etc.
After following serveral tutorials Ive added these to VirtualHost to the /apache/conf/extra/http-vhost.conf file in XAMPP:
- Code: Select all
<VirtualHost *:80>
ServerName mysite.dyndns.com
ServerAlias www.mysite.dyndns.com
DocumentRoot "F:/xampp/htdocs"
ServerAdmin email@email.com
<Directory "F:/xampp/htdocs" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName site1.mysite.dyndns.com
ServerAlias www.site1.mysite.dyndns.com
DocumentRoot "F:/xampp/htdocs/site1"
ServerAdmin email@email.com
<Directory "F:/xampp/htdocs/site1" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Going to
mysite.dyndns.com
works fine and takes me to the htdocs root, however going to
site1.mysite.dyndns.com
takes me to my router login.
Any help please