You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hypernode-platform/nginx/how-to-configure-your-shop-to-only-use-https.md
+4-16Lines changed: 4 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,13 @@ You can find more in-depth information in [this article about SSL on Hypernode](
24
24
25
25
Please check out [this article](../ssl/how-to-use-ssl-certificates-on-your-hypernode-when-ordered-via-hypernode-com.md) for the different SSL options when you use the Hypernode Control Panel.
26
26
27
-
## Order Let’s Encrypt Certificates
28
-
29
-
### Ordering Let’s Encrypt Certificates on Hypernodes
30
-
31
-
**Please note: If you want to use Let’s Encrypt and have the Hypernode Managed Vhosts (HMV) system enabled, you need to configure LE during the creation of the vhost. Using the old method with dehydrated won't work!**
27
+
## How to Use Let’s Encrypt (LE) Certificates
32
28
33
29
If you want to request a LE certificate you need to add the `--https` flag with the HMV-command.
This command will not only request a LE Certificate but because of the --force-https flag it will also redirects all traffic for that specific vhost to HTTPS.
33
+
This command will not only request a LE Certificate but, because of the --force-https flag, it will also redirect all traffic for that specific vhost to HTTPS.
38
34
39
35
## Changing Your Base URLs
40
36
@@ -55,17 +51,9 @@ If this is done by Magento, the database and PHP are used for making this redire
55
51
56
52
This is why we must configure this in Nginx, so the redirect does not use unnecessary resources.
57
53
58
-
Run the following command to add the configuration to Nginx that routes all traffic over HTTPS:
59
-
60
-
Create the following file at `/data/web/nginx/public.ssl_redirect.conf`:
54
+
Run the following command to configure a vhost to automatically redirect all traffic to HTTPS:
61
55
62
-
```nginx
63
-
if ($scheme = http) {
64
-
return 301 https://$host$request_uri;
65
-
}
66
-
```
67
-
68
-
**Please note that with [Hypernode Managed Vhosts](hypernode-managed-vhosts.md), you typically do not need this snippet.**
0 commit comments