Guest User

Untitled

a guest
Jun 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. UseCanonicalName Off
  2.  
  3. LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon
  4. CustomLog logs/access_log vcommon
  5.  
  6. <Directory /home>
  7. Options FollowSymLinks ExecCGI
  8. AllowOverride All
  9. </Directory>
  10.  
  11. RewriteEngine On
  12.  
  13. #RewriteLog /home/kenneth/log_rewrite
  14. #RewriteLogLevel 4
  15.  
  16. RewriteCond %{REQUEST_URI} !/home/kenneth/www
  17. RewriteCond %{REQUEST_URI} !^/icons/
  18. RewriteCond %{REQUEST_URI} !^/cgi-bin/
  19. RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
  20. RewriteRule ^/(.*)$ /home/kenneth/www/%1/public/$1
  21.  
  22. RewriteCond %{REQUEST_URI} !/home/kenneth/www
  23. RewriteCond %{REQUEST_URI} ^/cgi-bin/
  24. RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
  25. RewriteRule ^/(.*)$ /home/kenneth/www/%1/cgi-bin/$1 [T=application/x-httpd-cgi]
Add Comment
Please, Sign In to add comment