[ale] Mapping VirtualHosts to public_html

Christopher Fowler cfowler at outpostsentinel.com
Mon Jan 7 15:42:25 EST 2008


I've configured public_html support in Apache and I want to move our
website down to a server at Qualty.  I would like to place everything
in /home/outpostsentinel/public_html  and create a VirtualHost for that.

Is this the correct way?

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
    DocumentRoot /home/outpostsentinel/public_html
    ServerName www.outpostsentinel.com
</VirtualHost>

I've given the public_html directories proper permissions.  will apache
see this and do the right thing?  I think he runs and external program
and changes permissions to the user for the sake of running CGIs as the
user.







More information about the Ale mailing list