Just use plain HTTP in development environment
This commit is contained in:
@@ -13,6 +13,7 @@ server {
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
|
||||
set $redirect_to_ssl "no";
|
||||
if ($ssl_protocol = "") {
|
||||
set $redirect_to_ssl "yes";
|
||||
@@ -20,6 +21,7 @@ server {
|
||||
if ($redirect_to_ssl = yes) {
|
||||
rewrite ^(.*) https://$host$1 permanent;
|
||||
}
|
||||
<% end -%>
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
|
||||
Reference in New Issue
Block a user