XBackBone/nginx.conf

52 lines
737 B
Nginx Configuration File
Raw Normal View History

2019-02-06 21:34:56 +00:00
autoindex off;
location /app {
return 403;
}
location /bin {
return 403;
}
location /bootstrap {
return 403;
}
location /resources {
return 403;
}
location /storage {
return 403;
}
location /vendor {
return 403;
}
location /logs {
return 403;
}
2020-04-13 15:10:17 +00:00
location CHANGELOG.md {
2020-04-13 14:46:53 +00:00
return 403;
}
2019-02-10 12:48:20 +00:00
index index.html index.htm index.php;
charset utf-8;
2019-02-06 21:34:56 +00:00
location / {
2019-02-10 12:48:20 +00:00
try_files $uri $uri/ /index.php?$query_string;
2019-02-06 21:34:56 +00:00
}
2019-02-10 12:48:20 +00:00
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
2019-02-06 21:34:56 +00:00
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
2019-02-10 12:48:20 +00:00
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
include fastcgi_params;
2019-02-06 21:34:56 +00:00
}