1
0
Fork 0
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:
Josue-T 2018-01-18 23:27:09 +01:00 committed by GitHub
parent b956e9b389
commit 40df12542b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ~ /\. {