Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Kevin Le

By: a guest on Mar 24th, 2009  |  syntax: Apache Log  |  size: 1.41 KB  |  hits: 178  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. <VirtualHost *>
  2.         ServerName abc.com
  3.         ServerAdmin kevin.le@abc.com
  4.  
  5.         <Location "/">
  6.                 SetHandler python-program
  7.                 PythonHandler django.core.handlers.modpython
  8.                 SetEnv DJANGO_SETTINGS_MODULE abc.settings
  9.                 PythonPath "['/home/kevin/python'] + sys.path"
  10.                 PythonDebug On
  11.         </Location>
  12.  
  13.         SetHandler None
  14.        
  15.         DocumentRoot /var/www/abc
  16.         <Directory />
  17.                 Options FollowSymLinks
  18.                 AllowOverride None
  19.         </Directory>
  20.         <Directory /var/www/abc>
  21.                 Options Indexes FollowSymLinks MultiViews
  22.                 AllowOverride None
  23.                 Order allow,deny
  24.                 allow from all
  25.                 # This directive allows us to have apache2's default start page
  26.                 # in /apache2-default/, but still have / go to the right place
  27.                 #RedirectMatch ^/$ /apache2-default/
  28.         </Directory>
  29.  
  30.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  31.         <Directory "/usr/lib/cgi-bin">
  32.                 AllowOverride None
  33.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  34.                 Order allow,deny
  35.                 Allow from all
  36.         </Directory>
  37.  
  38.         ErrorLog /var/log/apache2/error.log
  39.  
  40.         # Possible values include: debug, info, notice, warn, error, crit,
  41.         # alert, emerg.
  42.         LogLevel warn
  43.  
  44.         CustomLog /var/log/apache2/access.log combined
  45.         ServerSignature On
  46.  
  47.         Alias /doc/ "/usr/share/doc/"
  48.         <Directory "/usr/share/doc/">
  49.                 Options Indexes MultiViews FollowSymLinks
  50.                 AllowOverride None
  51.                 Order deny,allow
  52.                 Deny from all
  53.                 Allow from 127.0.0.0/255.0.0.0 ::1/128
  54.         </Directory>
  55.  
  56. </VirtualHost>