[ create a new paste ] login | about

Link: http://codepad.org/tMrScBGa    [ raw code | fork ]

Plain Text, pasted on Dec 19:
<VirtualHost *:80>
	ServerAdmin metulbot@gmail.com

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
		Options FollowSymLinks +ExecCGI 
	</Directory>
	<Directory /var/www/>
		Options +ExecCGI Indexes FollowSymLinks MultiViews +Includes
		AllowOverride None
		Order allow,deny
		allow from all
		AddHandler cgi-script .py 
		AddHandler cgi-script .cgi
        	AddHandler default-handler .html .htm  
		AddType text/html .shtml
		AddHandler server-parsed .html
		AddHandler server-parsed .shtml
		DirectoryIndex index.shtml index.html
		AddOutputFilter INCLUDES .shtml
		AddHandler php5-script php
	</Directory>


	<Directory /var/www/forums>
		Options +ExecCGI Indexes FollowSymLinks MultiViews 
		AllowOverride None
		Order allow,deny
		allow from all
		AddHandler cgi-script .py 
        	AddHandler default-handler .html .htm  
		AddType text/html .shtml
		AddHandler server-parsed .html
		AddHandler server-parsed .shtml
		DirectoryIndex index.shtml index.html
		AddOutputFilter INCLUDES .shtml
		AddHandler php5-script php
	</Directory>

	<Directory /var/www/subdir>
		Options +ExecCGI Indexes FollowSymLinks MultiViews +Includes
		AllowOverride None
		Order allow,deny
		allow from all
		AddHandler cgi-script .py 
        	AddHandler default-handler .html .htm  
		AddType text/html .shtml
		AddHandler server-parsed .html
		AddHandler server-parsed .shtml
		DirectoryIndex index.shtml index.html
		AddOutputFilter INCLUDES .shtml
		AddHandler php5-script php
	</Directory>


	<Directory /var/www/download>
		Options +ExecCGI Indexes FollowSymLinks MultiViews +Includes
		#AllowOverride None
		Order allow,deny
		allow from all
		AddHandler cgi-script .py 
        	AddHandler default-handler .html .htm  
		AddType text/html .shtml
		AddHandler server-parsed .html
		AddHandler server-parsed .shtml
		DirectoryIndex index.shtml index.html
		AddOutputFilter INCLUDES .shtml
	</Directory>



	#ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	#<Directory "/usr/lib/cgi-bin">
		#AllowOverride None
		#Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		#Order allow,deny
		#Allow from all
	#</Directory>


        ScriptAlias /cgi-bin/ /var/www/cgi/
        <Directory "/var/www/cgi/">	
#	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
#	<Directory "/usr/lib/cgi-bin">
#		#AllowOverride None
#		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Includes
#		Order allow,deny
#		Allow from all
#		AddHandler cgi-script .py 
 #       	AddHandler default-handler .html .htm  
#		AddType text/html .shtml
#		AddHandler server-parsed .html
#		AddHandler server-parsed .shtml
#		DirectoryIndex index.shtml index.html
#		AddOutputFilter INCLUDES .shtml

                Options +ExecCGI Indexes FollowSymLinks MultiViews +Includes
                AllowOverride None
                Order allow,deny
                allow from all
                AddHandler cgi-script .py
                AddHandler cgi-script .cgi
                AddHandler default-handler .html .htm
                AddType text/html .shtml
                AddHandler server-parsed .html
                AddHandler server-parsed .shtml
                DirectoryIndex index.shtml index.html
                AddOutputFilter INCLUDES .shtml
                AddHandler php5-script php

	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


Create a new paste based on this one


Comments: