forked from ben/diyhosting
Fix nextcloud https redirect
In the provided nginx server configuration for nextcloud, http connections don't always redirect to https, so this was fixed.
This commit is contained in:
parent
d451f9d197
commit
abc6b82e4a
|
@ -52,9 +52,7 @@ server {
|
|||
listen [::]:80;
|
||||
server_name <strong>yourwebsite.com</strong>;
|
||||
|
||||
location /nextcloud {
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
|
|
Loading…
Reference in New Issue