Advertisement
mogaj

Vhost

Feb 21st, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. Listen 8080
  2. <VirtualHost *:8080>
  3.   ServerAdmin webmaster@localhost
  4.   ServerName test.maoin.rcs
  5.  
  6.   DocumentRoot /home/auto-w24/public_html/test.maoin/public
  7.   SetEnv APPLICATION_ENV "development"
  8.   <Directory />
  9.     Options FollowSymLinks
  10.     AllowOverride None
  11.   </Directory>
  12.   <Directory /home/auto-w24/public_html/test.maoin/public>
  13.     Options Indexes FollowSymLinks MultiViews
  14.     DirectoryIndex index.php
  15.     AllowOverride All
  16.     Order allow,deny
  17.     allow from all
  18.   </Directory>
  19.  
  20.   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  21.   <Directory "/usr/lib/cgi-bin">
  22.     AllowOverride None
  23.     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  24.     Order allow,deny
  25.     Allow from all
  26.   </Directory>
  27.  
  28.   ErrorLog ${APACHE_LOG_DIR}/error.log
  29.  
  30.   # Possible values include: debug, info, notice, warn, error, crit,
  31.   # alert, emerg.
  32.   LogLevel warn
  33.  
  34.   CustomLog ${APACHE_LOG_DIR}/access.log combined
  35.  
  36.     Alias /doc/ "/usr/share/doc/"
  37.     <Directory "/usr/share/doc/">
  38.         Options Indexes MultiViews FollowSymLinks
  39.         AllowOverride None
  40.         Order deny,allow
  41.         Deny from all
  42.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  43.     </Directory>
  44.  
  45.     #<Directory "/usr/share/phpPgAdmin">
  46.      #   AuthUserFile /etc/phpPgAdmin/.htpasswd
  47.       #  AuthName "Restricted Area"
  48.        # AuthType Basic
  49.         #require valid-user
  50.     #</Directory>
  51.  
  52. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement