Guest
Public paste!

Dd

By: a guest | Jan 17th, 2010 | Syntax: XML | Size: 1.41 KB | Hits: 188 | Expires: Never
Copy text to clipboard
  1. <VirtualHost *:80>
  2.         ServerAdmin webmaster@localhost
  3.   ServerName localhost
  4.         DocumentRoot /var/www
  5.         <Directory />
  6.                 Options FollowSymLinks
  7.                 AllowOverride None
  8.         </Directory>
  9.         <Directory /var/www/>
  10.                 Options Indexes FollowSymLinks MultiViews
  11.                 AllowOverride All
  12.                 Order allow,deny
  13.                 allow from all
  14.         </Directory>
  15.  
  16.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  17.         <Directory "/usr/lib/cgi-bin">
  18.                 AllowOverride None
  19.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  20.                 Order allow,deny
  21.                 Allow from all
  22.         </Directory>
  23.  
  24.         ErrorLog /var/log/apache2/error.log
  25.  
  26.         # Possible values include: debug, info, notice, warn, error, crit,
  27.         # alert, emerg.
  28.         LogLevel warn
  29.  
  30.         CustomLog /var/log/apache2/access.log combined
  31.  
  32.     Alias /doc/ "/usr/share/doc/"
  33.     <Directory "/usr/share/doc/">
  34.         Options Indexes MultiViews FollowSymLinks
  35.         AllowOverride None
  36.         Order deny,allow
  37.         Deny from all
  38.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  39.     </Directory>
  40. </VirtualHost>
  41.  
  42. <VirtualHost *:80>
  43.   DocumentRoot /var/www/Tests/LearnTogether/web
  44.   DirectoryIndex index.php
  45.   ServerName learn.localhost
  46.  
  47.   <Directory "/var/www/Tests/LearnTogether/web">
  48.     AllowOverride All
  49.     Allow from All
  50.   </Directory>
  51.  
  52.   Alias /sf /var/www/Tests/LearnTogether/data/web/sf
  53.   <Directory "/var/www/Tests/LearnTogether/data/web/sf">
  54.     AllowOverride All
  55.     Allow from All
  56.   </Directory>
  57. </VirtualHost>