ScriptAliasMatch ^/~(.*)/cgi-bin/ /home/$1/public_html/cgi-bin/ AllowOverride None Options None Order allow,deny Allow from all ### 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 # 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 ServerName stuff.jmoncayo.ath.cx DocumentRoot /home/jmoncayo/public_html/ ScriptAlias /cgi-bin/ /home/jmoncayo/public_html/cgi-bin/ ServerName nonsense DocumentRoot /var/www/error # All requests show /var/www/error/error.html ErrorDocument 404 /error.html ServerName jmoncayo.ath.cx Redirect / http://www.jmoncayo.ath.cx/ ServerAlias www.jmoncayo.ath.cx DocumentRoot /var/www/htdocs/