All pastes #717297 Raw Edit

Miscellany

public text v1 · immutable
#717297 ·published 2007-09-27 15:03 UTC
rendered paste body
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options FollowSymLinks +ExecCGI
    Order allow,deny
    Allow from all
</Directory>

AddHandler cgi-script .cgi .pl

<VirtualHost 88.208.229.2:80>
        ServerName devel.canvas-photos.co.uk
        ServerAlias www.devel.canvas-photos.co.uk
        ServerAdmin webmaster@devel.canvas-photos.co.uk
        DocumentRoot /home/peaksurveys/devel.canvas-photos.co.uk/user/htdocs
        ErrorLog /home/peaksurveys/devel.canvas-photos.co.uk/user/logfiles/error_log
        TransferLog /home/peaksurveys/devel.canvas-photos.co.uk/user/logfiles/access_log
        php_admin_value open_basedir /tmp:/home/peaksurveys/devel.canvas-photos.co.uk
        SuexecUserGroup canvas_photos matrixdomain
        ScriptAlias /cgi-bin/ /home/peaksurveys/devel.canvas-photos.co.uk/user/htdocs/cgi-bin/
        Options FollowSymLinks +ExecCGI
        AddHandler cgi-script .cgi .pl
        AddHandler server-parsed .shtml
        AddType text/html .shtml
        <Location />
                Options +Includes
        </Location>
# Begin user directives <--
# --> End user directives
</VirtualHost>