mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
increased security for nginx
This commit is contained in:
parent
86ec3943f2
commit
99e209010f
@ -7,8 +7,10 @@ server {
|
|||||||
# access_log /var/log/nginx/localhost.access_log combined;
|
# access_log /var/log/nginx/localhost.access_log combined;
|
||||||
# error_log /var/log/nginx/localhost.error_log info;
|
# error_log /var/log/nginx/localhost.error_log info;
|
||||||
|
|
||||||
location / {
|
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
|
||||||
try_files $uri $uri/ /index.php;
|
{
|
||||||
|
rewrite ^/(.*)$ /index.php?/$1 last;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user