Advertisement
mogaj

Named host

Jun 6th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.60 KB | None | 0 0
  1. /etc/apache2/sites-available/ourserver.local
  2. --------------------------------------------
  3. <VirtualHost *:80>
  4.   ServerAdmin webmaster@localhost
  5.   ServerName ourserver.local
  6.   ServerAlias www.ourserver.local
  7.  
  8.   DocumentRoot /home/auto-w24/public_html/our_project
  9.   SetEnv APPLICATION_ENV "development"
  10.   <Directory />
  11.     Options FollowSymLinks
  12.     AllowOverride None
  13.   </Directory>
  14.   <Directory /home/auto-w24/public_html/our_project>
  15.     Options Indexes FollowSymLinks MultiViews
  16.     DirectoryIndex index.php
  17.     AllowOverride All
  18.     Order allow,deny
  19.     allow from all
  20.   </Directory>
  21.  
  22.   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  23.   <Directory "/usr/lib/cgi-bin">
  24.     AllowOverride None
  25.     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  26.     Order allow,deny
  27.     Allow from all
  28.   </Directory>
  29.  
  30.   ErrorLog ${APACHE_LOG_DIR}/error.log
  31.  
  32.   # Possible values include: debug, info, notice, warn, error, crit,
  33.   # alert, emerg.
  34.   LogLevel warn
  35.  
  36.   CustomLog ${APACHE_LOG_DIR}/access.log combined
  37.  
  38.     Alias /doc/ "/usr/share/doc/"
  39.     <Directory "/usr/share/doc/">
  40.         Options Indexes MultiViews FollowSymLinks
  41.         AllowOverride None
  42.         Order deny,allow
  43.         Deny from all
  44.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  45.     </Directory>
  46.  
  47. </VirtualHost>
  48.  
  49.  
  50. /etc/hosts file
  51. --------------
  52. 127.0.0.1   localhost
  53.  
  54. # User added virtaul hosts
  55. 127.0.0.1   ourserver.local www.ourserver.local
  56.  
  57. # The following lines are desirable for IPv6 capable hosts
  58. ::1     ip6-localhost ip6-loopback
  59. fe00::0 ip6-localnet
  60. ff00::0 ip6-mcastprefix
  61. ff02::1 ip6-allnodes
  62. ff02::2 ip6-allrouters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement