Browse Source

Change try files

Bob Mottram 7 years ago
parent
commit
ea38e19368
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-app-edith

+ 2
- 2
src/freedombone-app-edith View File

335
         echo '  location / {' >> $edith_nginx_site
335
         echo '  location / {' >> $edith_nginx_site
336
         function_check nginx_limits
336
         function_check nginx_limits
337
         nginx_limits $EDITH_DOMAIN_NAME '15m'
337
         nginx_limits $EDITH_DOMAIN_NAME '15m'
338
-        echo '    try_files $uri $uri/ @edith;' >> $edith_nginx_site
338
+        echo '    try_files $uri $uri/ /index.php?$args;' >> $edith_nginx_site
339
         echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
339
         echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
340
         echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
340
         echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
341
         echo '  }' >> $edith_nginx_site
341
         echo '  }' >> $edith_nginx_site
376
     echo '  location / {' >> $edith_nginx_site
376
     echo '  location / {' >> $edith_nginx_site
377
     function_check nginx_limits
377
     function_check nginx_limits
378
     nginx_limits $EDITH_DOMAIN_NAME '15m'
378
     nginx_limits $EDITH_DOMAIN_NAME '15m'
379
-    echo '    try_files $uri $uri/ @edith;' >> $edith_nginx_site
379
+    echo '    try_files $uri $uri/ /index.php?$args;' >> $edith_nginx_site
380
     echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
380
     echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
381
     echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
381
     echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
382
     echo '  }' >> $edith_nginx_site
382
     echo '  }' >> $edith_nginx_site