mirror of https://git.envs.net/envs/ops.git
nginx: try to rewrite site without slash
This commit is contained in:
parent
f772c7fbac
commit
b327689045
|
@ -35,7 +35,7 @@ server {
|
|||
root /var/www/envs.net/;
|
||||
index index.php index.html;
|
||||
|
||||
#rewrite ^([^.\?]*[^/])$ $1/ permanent;
|
||||
#rewrite ^([^.]*[^/])$ $1/ permanent;
|
||||
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
@ -43,6 +43,7 @@ server {
|
|||
}
|
||||
location @extensionless-php {
|
||||
rewrite ^(.*)/$ $1.php last;
|
||||
rewrite ^(.*)$ $1.php last;
|
||||
}
|
||||
|
||||
location /cgi-bin {
|
||||
|
|
Loading…
Reference in New Issue