Skip to content

Commit d7bc1e5

Browse files
authored
Update how-to-configure-your-shop-to-only-use-https.md
1 parent d236006 commit d7bc1e5

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

docs/hypernode-platform/nginx/how-to-configure-your-shop-to-only-use-https.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,13 @@ You can find more in-depth information in [this article about SSL on Hypernode](
2424

2525
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.
2626

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
3228

3329
If you want to request a LE certificate you need to add the `--https` flag with the HMV-command.
3430

3531
`hypernode-manage-vhosts www.example.com --https --force-https`
3632

37-
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.
3834

3935
## Changing Your Base URLs
4036

@@ -55,17 +51,9 @@ If this is done by Magento, the database and PHP are used for making this redire
5551

5652
This is why we must configure this in Nginx, so the redirect does not use unnecessary resources.
5753

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:
6155

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.**
56+
`hypernode-manage-vhosts www.example.com --https --force-https`
6957

7058
## Check Settings of Third Party Solutions
7159

0 commit comments

Comments
 (0)