First page Back Continue Last page Overview Graphics
The basics...
<VirtualHost 127.0.0.1:80>
Listen on localhost port 80.
ServerName www.yoursite.net
ServerAlias yoursite.net
Only use this directive if the DNS name asked for is www.yoursite.net or yoursite.net.
DocumentRoot /var/www/yoursite.net/www/public_html
ScriptAlias /cgi-bin/ "/var/www/yoursite.net/www/cgi-bin/"
The website's documents folder, and – though you won't use this too often anymore – a cgi-bin folder, where you can put CGI scripts. (Does not apply to PHP when using the typical mod_php setup.)