apache配置
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/mayibang.co/public"
ServerName 180e6dfd.mayibang.co
ServerAlias mayibang.co www.mayibang.co admin.mayibang.co
errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/mayibang.co-error_log"
CustomLog "/www/wwwlogs/mayibang.co-access_log" combined
#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-72.sock|fcgi://localhost"
</FilesMatch>
#PATH
<Directory "/www/wwwroot/mayibang.co/public">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
.haccess配置
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>