Re: Dyndns and apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Paul" <paul@xxxxxxxxxxxxxxxxxxxxxx>

..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@xxxxxxxxxxxxxxxxxxxxxx
   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@xxxxxxxxxxxxxxxxxxxxxx
   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@xxxxxxxxxxxxxxxxxxxxxx
   DocumentRoot /var/www/html/mono/
   ServerName mono.shacknet.nu
   ErrorLog logs/mono-error_log
   CustomLog logs/mono-access_log common
</VirtualHost>

 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux