Dyndns and apache

Danny Terweij danny at terweij.nl
Sun Aug 21 15:40:08 UTC 2005


From: "Paul" <paul at all-the-johnsons.co.uk>

..I've registered three domains with dyndns (totally free, get your own
..domain and run the site from home sort of thing).

..I've set up Apache and it works fine. Problem is this though. If I point
..the browser to http://ctadirect.homedns.org I get the Fedora testpage
..and the logs say that I don't have access to /var/www/html. If I
..add /cta onto the end, I get the site I should get without that
..addition.

Paul, 

The first virtual host is the default (catch all) host.

This below should work fine.


#
# Use name-based virtual hosting.
#
NameVirtualHost 82.42.51.231:80

<VirtualHost *:80>
   ServerAdmin paul at all-the-johnsons.co.uk
   DocumentRoot /var/www/html/
   ServerName 82.42.51.231
   ErrorLog logs/cta-error_log
   CustomLog logs/cta-access_log common
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin paul at all-the-johnsons.co.uk
   DocumentRoot /var/www/html/cta/
   ServerName ctadirect.homedns.org   
   ErrorLog logs/cta-error_log
   CustomLog logs/cta-access_log common
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin paul at all-the-johnsons.co.uk
   DocumentRoot /var/www/html/mono/
   ServerName mono.shacknet.nu
   ErrorLog logs/mono-error_log
   CustomLog logs/mono-access_log common
</VirtualHost>

 




More information about the fedora-list mailing list