Files
sbnews/docker/config/nginx/conf.d/sport-era.dev.conf
T

30 lines
700 B
Plaintext

server {
listen 8000;
server_name _;
root /likeadmin_php/server/public;
index index.html index.htm index.php;
client_max_body_size 20M;
access_log /logs/sport-era-dev_access.log;
error_log /logs/sport-era-dev_error.log;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /likeadmin_php/server/public$fastcgi_script_name;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
}