daily pastebin goal
2%
SHARE
TWEET

localhost configuration

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