Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2.   ServerName example
  3.   ServerAdmin webmaster@example.com
  4.   DocumentRoot "/var/www/app/webroot"
  5.  
  6.   ErrorDocument 403 /index.php
  7.   ErrorDocument 404 /index.php
  8.  
  9.   <Directory />
  10.     Options FollowSymLinks
  11.     AllowOverride None
  12.     Order deny,allow
  13.     Allow from all
  14.   </Directory>
  15.  
  16.   <Directory "/var/www/app/webroot/">
  17.     Options -Indexes FollowSymLinks
  18.  
  19.     RewriteEngine On
  20.     RewriteBase /
  21.  
  22.     RewriteCond %{REQUEST_FILENAME} !-d
  23.     RewriteCond %{REQUEST_FILENAME} !-f
  24.     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  25.   </Directory>
  26. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement