daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 8th, 2012 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ########################################################################
  2.     /etc/hosts:
  3.     --------------------
  4.     127.0.0.1       main.lan.local
  5.     127.0.0.1       dings.main.lan.local
  6.     127.0.1.1       vbox-localhost
  7.      
  8.     # The following lines are desirable for IPv6 capable hosts
  9.     ::1     ip6-localhost ip6-loopback
  10.     fe00::0 ip6-localnet
  11.     ff00::0 ip6-mcastprefix
  12.     ff02::1 ip6-allnodes
  13.     ff02::2 ip6-allrouters
  14.      
  15.     ########################################################################
  16.     /etc/host:
  17.     --------------------
  18.     127.0.0.1 dings.main.lan.local
  19.      
  20.      
  21.     ########################################################################
  22.     /etc/apache2/sites-available/default
  23.     --------------------
  24.     <VirtualHost *:80>
  25.             ServerAdmin webmaster@localhost
  26.             ServerName main.lan.local
  27.             DocumentRoot /var/www
  28.             <Directory />
  29.                     Options FollowSymLinks
  30.                     AllowOverride none
  31.             </Directory>
  32.             <Directory /var/www/>
  33.                     Options Indexes FollowSymLinks MultiViews
  34.                     AllowOverride all
  35.                     Order allow,deny
  36.                     allow from all
  37.             </Directory>
  38.      
  39.             ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  40.             <Directory "/usr/lib/cgi-bin">
  41.                     AllowOverride None
  42.                     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  43.                     Order allow,deny
  44.                     Allow from all
  45.             </Directory>
  46.      
  47.             ErrorLog ${APACHE_LOG_DIR}/error.log
  48.      
  49.             # Possible values include: debug, info, notice, warn, error, crit,
  50.             # alert, emerg.
  51.             LogLevel warn
  52.      
  53.             CustomLog ${APACHE_LOG_DIR}/access.log combined
  54.      
  55.         Alias /doc/ "/usr/share/doc/"
  56.         <Directory "/usr/share/doc/">
  57.             Options Indexes MultiViews FollowSymLinks
  58.             AllowOverride None
  59.             Order deny,allow
  60.             Deny from all
  61.             Allow from 127.0.0.0/255.0.0.0 ::1/128
  62.         </Directory>
  63.         #Settings for CGI
  64.         ScriptAlias /local-bin /usr/bin
  65.         AddHandler application/x-httpd-php5 php
  66.         Action application/x-httpd-php5 /local-bin/php-cgi
  67.      
  68.     </VirtualHost>
  69.      
  70.     ########################################################################
  71.     /etc/apache2/sites-available/dings
  72.     --------------------
  73.     <VirtualHost *:80>
  74.       DocumentRoot /var/www/dings/
  75.       ServerName dings.main.lan.local
  76.      
  77.       <Directory /var/www/dings/>
  78.         Options Indexes FollowSymLinks MultiViews +Includes
  79.         AllowOverride All
  80.         Order allow,deny
  81.         allow from all
  82.       </Directory>
  83.     </VirtualHost>
RAW Paste Data
Top