Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin webmaster@yii2.dom
- DocumentRoot /srv/http/yii2/web
- ServerName yii2.dom
- ServerAlias yii2.dom
- ErrorLog "/var/log/httpd/yii2-error_log"
- CustomLog "/var/log/httpd/yii2-access_log" common
- <Directory "/srv/http/yii2/web">
- # use mod_rewrite for pretty URL support
- RewriteEngine on
- # If a directory or a file exists, use the request directly
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- # Otherwise forward the request to index.php
- RewriteRule . index.php
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement