Advertisement
ganryu

Untitled

Jul 8th, 2017
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@yii2.dom
  3. DocumentRoot /srv/http/yii2/web
  4. ServerName yii2.dom
  5. ServerAlias yii2.dom
  6. ErrorLog "/var/log/httpd/yii2-error_log"
  7. CustomLog "/var/log/httpd/yii2-access_log" common
  8.  
  9. <Directory "/srv/http/yii2/web">
  10. # use mod_rewrite for pretty URL support
  11. RewriteEngine on
  12. # If a directory or a file exists, use the request directly
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. # Otherwise forward the request to index.php
  16. RewriteRule . index.php
  17. </Directory>
  18. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement