Browse Source

Force https

Every time this app is installed, the nginx file needs to edited to force the https. This should be there by default in the nginx config file.
pull/18/head
anmol26s 9 years ago
committed by GitHub
parent
commit
3eaaaf665f
  1. 4
      conf/nginx.conf

4
conf/nginx.conf

@ -1,6 +1,10 @@
location __PATH__ { location __PATH__ {
alias __FINALPATH__/www/; alias __FINALPATH__/www/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
# Default indexes and catch-all # Default indexes and catch-all
index index.html index.php; index index.html index.php;
try_files $uri $uri/ __PATH__/index.php?$args; try_files $uri $uri/ __PATH__/index.php?$args;

Loading…
Cancel
Save