All pastes #825100 Raw Edit

Untitled

public text v1 · immutable
#825100 ·published 2007-12-20 10:30 UTC
rendered paste body
#######################################################################
#  Submitting from add_files.php too uu_upload.pl on Windows Machine  #
#  The scripts are working on a Unix machine with very similar setup  #
#######################################################################

###############################
#  The http:// configuration  #
###############################
<VirtualHost cgsurveying.localhost:80>
	ServerName  cgsurveying.localhost
	ServerAlias www.cgsurveying.localhost
	DocumentRoot /www/vhosts/cgsurveying.localhost
	ErrorLog /www/Apache22/logs/error.log
        ##################################################################################
        #  If I remove /cgi-bin/ it tells me "client denied by server configuration:"    #
        #  If I include /cgi-bin/ it tells me:                                           #
        #  "The system cannot find the path specified : couldn't create child process"   #
        #  And then:                                                                     #
        #  "The system cannot find the path specified.  : couldn't spawn child process"  #
        #  "process: D:/www/vhosts/cgsurveying.localhost/cgi-bin/uu_upload.pl, "         #
        #  However I can access the specified path in my browser?                        #
        ##################################################################################
	ScriptAlias /cgi-bin/ /www/vhosts/cgsurveying.localhost/cgi-bin/
	Options +FollowSymLinks +ExecCGI
        AddHandler cgi-script .cgi .pl
        AddHandler server-parsed .shtml
        AddType text/html .shtml
        <Location />
                Options +Includes +ExecCGI
        </Location>
	<Directory "/www/vhosts/cgsurveying.localhost">
		Options All
		AllowOverride All
		order allow,deny
		allow from all
	</Directory>
</VirtualHost>

#########################
#  The https:// config  #
#########################
<VirtualHost cgsurveying.localhost:443>
	ServerName  cgsurveying.localhost
	ServerAlias www.cgsurveying.localhost
	DocumentRoot /www/vhosts/cgsurveying.localhost
	ErrorLog /www/Apache22/logs/ssl-error.log

	<Directory "/www/vhosts/cgsurveying.localhost">
		Options All
		AllowOverride All
		order allow,deny
		allow from all
	</Directory>
	SSLEngine on
	SSLCertificateFile conf/ssl.crt/server.crt
	SSLCertificateKeyFile conf/ssl.key/server.key
</VirtualHost>