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