1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <VirtualHost *:80>
- ServerAdmin webmaster@example.com
- DocumentRoot "/www/wwwroot/naitokoa.com"
- ServerName 3c6e4c79.naitokoa.com
- ServerAlias naitokoa.com www.naitokoa.com
- #errorDocument 404 /404.html
- ErrorLog "/www/wwwlogs/naitokoa.com-error_log"
- CustomLog "/www/wwwlogs/naitokoa.com-access_log" combined
-
- Alias / "/var/wwwroot/naitokoa.com/public/"
-
- RewriteEngine On
-
- # rewrite rule to prevent proxy exploit
- RewriteCond %{REQUEST_URI} !^$
- RewriteCond %{REQUEST_URI} !^/
- RewriteRule .* - [R=400,L]
- RewriteCond %{REQUEST_URI} !^/(public)(.*)$
- RewriteRule ^(/.*)$ http://localhost:3010$1 [P]
- ProxyPassReverse / http://localhost:3010
-
- #DENY FILES
- <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
- Order allow,deny
- Deny from all
- </Files>
-
- #PHP
- <FilesMatch \.php$>
- SetHandler "proxy:unix:/tmp/php-cgi-80.sock|fcgi://localhost"
- </FilesMatch>
-
- #PATH
- <Directory "/www/wwwroot/naitokoa.com">
- SetOutputFilter DEFLATE
- Options FollowSymLinks
- AllowOverride All
- Require all granted
- DirectoryIndex index.php index.html index.htm default.php default.html default.htm
- </Directory>
-
- <Directory "/var/wwwroot/naitokoa.com/public">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
- </VirtualHost>
|