mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 04:21:17 -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;
|
||||
# error_log /var/log/nginx/localhost.error_log info;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
|
||||
{
|
||||
rewrite ^/(.*)$ /index.php?/$1 last;
|
||||
break;
|
||||
}
|
||||
|
||||
location ~* \.php$ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user