新增
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name www.likeadmin.host;
|
||||
access_log /logs/www.likeadmin.host_access_nginx.log;
|
||||
error_log /logs/www.likeadmin.host_error_nginx.log;
|
||||
client_max_body_size 5M;
|
||||
location / {
|
||||
root /likeadmin_php/server/public;
|
||||
index index.html index.htm index.php;
|
||||
if (!-e $request_filename)
|
||||
{
|
||||
rewrite ^/(.*)$ /index.php?s=$1 last;
|
||||
break;
|
||||
}
|
||||
}
|
||||
location ~ /.*\.php/ {
|
||||
rewrite ^(.*?/?)(.*\.php)(.*)$ /$2?s=$3 last;
|
||||
break;
|
||||
}
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /var/www/html;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass likeadmin-php:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /likeadmin_php/server/public$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user