All pastes #266978 Raw Edit

jmoncayo

public text v1 · immutable
·published 2006-12-04 15:36 UTC
rendered paste body
ScriptAliasMatch ^/~(.*)/cgi-bin/ /home/$1/public_html/cgi-bin/
<DirectoryMatch "^/home/.*/public_html/cgi-bin">
       AllowOverride None
       Options None
       Order allow,deny
       Allow from all
</DirectoryMatch>
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# This is the default vhost and handles requests for hostnames not listed below
<VirtualHost *:80>
ServerName stuff.jmoncayo.ath.cx
DocumentRoot /home/jmoncayo/public_html/
ScriptAlias /cgi-bin/ /home/jmoncayo/public_html/cgi-bin/
</VirtualHost>
<VirtualHost *:80>
ServerName nonsense
DocumentRoot /var/www/error
# All requests show /var/www/error/error.html
ErrorDocument 404 /error.html
</VirtualHost>
<VirtualHost *:80>
ServerName jmoncayo.ath.cx
Redirect / http://www.jmoncayo.ath.cx/
ServerAlias www.jmoncayo.ath.cx
DocumentRoot /var/www/htdocs/
</VirtualHost>