Apache2 Subdomains (DynDNS)
Please support our *nix Software advertiser: Programming Forums
Thread Solved
![]() |
•
•
Posts: 8
Reputation:
Solved Threads: 0
Ok, so I have got the free service of DynDNS from DynDNS.com. Now at example.sample.com I have a website working just fine. Now how do I, in the "sites-enabled" area, that is include in the apache config, set up more subdomains? Right now in the sites-enabled file I have
NameVirtualHost example.sample.com
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/"
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/music/"
ServerName music.localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/"
ServerName example.sample.com
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/music"
ServerName music.example.sample.com
</VirtualHost>
What needs to change? And do I need to set anything up in the DynDNS website besides enabling wildcards?
NameVirtualHost example.sample.com
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/"
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/music/"
ServerName music.localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/"
ServerName example.sample.com
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "/var/www/music"
ServerName music.example.sample.com
</VirtualHost>
What needs to change? And do I need to set anything up in the DynDNS website besides enabling wildcards?
![]() |
Other Threads in the *nix Software Forum
- Previous Thread: Openvpn howto question
- Next Thread: Server anti-virus software needed any suggestions?
•
•
•
•
Views: 1066 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode