mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fix rewrite instruction
This commit is contained in:
parent
b956e9b389
commit
40df12542b
1 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,6 @@ alias __FINALPATH__/;
|
|||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
|
||||
#allow uploads up to 20MB in size
|
||||
client_max_body_size 20m;
|
||||
|
@ -93,8 +91,10 @@ rewrite ^ https://$server_name$request_uri? permanent;
|
|||
#.htaccess file from Friendica converted using http://winginx.com/en/htaccess
|
||||
location ~ "(^|/)\.git" { return 403;}
|
||||
autoindex off;
|
||||
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?pagename=$1;}
|
||||
}
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^(.*)$ /index.php?pagename=$1;
|
||||
}
|
||||
|
||||
|
||||
#deny access to all dot files
|
||||
location ~ /\. {
|
||||
|
|
Loading…
Add table
Reference in a new issue