Skip to content

Commit 978502b

Browse files
author
Jonathan Visser
committed
Remove references to Managed Vhosts' legacy nginx configuration
1 parent d0f43c4 commit 978502b

12 files changed

+20
-282
lines changed

docs/best-practices/testing/how-to-go-live-with-your-hypernode.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ Flush the cache of Magento on the Hypernode. (`magerun cache:flush`)
7373

7474
## Step 7: Set up Hypernode Managed Vhosts
7575

76-
The Hypernode Managed Vhosts (HMV) system is currently enabled by default on all new booted Hypernodes (all Hypernodes created after 01-05-2020).
77-
78-
Check if you have HMV enabled by running this command:
79-
80-
```console
81-
app@abcdef-example-magweb-cmbl:~$ hypernode-systemctl settings managed_vhosts_enabled
82-
managed_vhosts_enabled is set to value True
83-
```
84-
85-
If this is not enabled, skip the part below.
86-
8776
Due to this configuration it is required to add a new vhost for every domain you want to link to your Hypernode. So you need to configure your DNS correctly and add a new vhost for the domain.
8877

8978
To add a new vhost, for example the domainname [www.example.com](http://www.example.com), to your configuration, you can simply run the command `hypernode-manage-vhosts www.example.com`. This will create a new vhost configuration in `/data/web/nginx/www.example.com/`, using the Magento 2 template.

docs/ecommerce-applications/akeneo/how-to-install-akeneo-3-on-hypernode.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ redirect_from:
1414

1515
Akeneo 3 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 5.7, PHP 7.2 and Elasticsearch 6.x**, so it won’t affect your shop negatively. Installing Akeneo version 3.x may take up to 15 minutes.
1616

17-
## Enable managed_vhosts
17+
## Managed Vhosts
1818

19-
All new Hypernodes (from April 2020) will automatically be booted with [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). If you already have an older Hypernode, then you need to enable Hypernode Managed Vhosts by running the following command:
20-
21-
```bash
22-
hypernode-systemctl settings managed_vhosts_enabled True
23-
```
19+
Hypernode uses [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). Ensure you have a vhost for your Akeneo domain.
2420

2521
## Create a Managed_vhost for a (Sub)Domain
2622

docs/ecommerce-applications/akeneo/how-to-install-akeneo-4-on-hypernode.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ redirect_from:
1515

1616
Akeneo 4 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 8.0, PHP 7.3 and Elasticsearch 7.x**, so it won’t affect your shop negatively. Installing Akeneo version 4.x may take up to 15 minutes.
1717

18-
## Enable managed_vhosts
18+
## Managed Vhosts
1919

20-
All new Hypernodes (from April 2020) will automatically be booted with [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). If you already have an older Hypernode, then you need to enable Hypernode Managed Vhosts by running the following command:
21-
22-
```bash
23-
hypernode-systemctl settings managed_vhosts_enabled True
24-
```
20+
Hypernode uses [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). Ensure you have a vhost for your Akeneo domain.
2521

2622
## Create a Managed_vhost for a (Sub)Domain
2723

docs/ecommerce-applications/akeneo/how-to-install-akeneo-5-on-hypernode.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ redirect_from:
1414

1515
Akeneo 5 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 8.0, PHP 7.4 and Elasticsearch 7.x**, so it won’t affect your shop negatively. Installing Akeneo version 5.x may take up to 15 minutes.
1616

17-
## Enable managed_vhosts
17+
## Managed Vhosts
1818

19-
All new Hypernodes (from April 2020) will automatically be booted with [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). If you already have an older Hypernode, then you need to enable Hypernode Managed Vhosts by running the following command:
20-
21-
```bash
22-
hypernode-systemctl settings managed_vhosts_enabled True
23-
```
19+
Hypernode uses [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). Ensure you have a vhost for your Akeneo domain.
2420

2521
## Create a Managed_vhost for a (Sub)Domain
2622

docs/ecommerce-applications/akeneo/how-to-install-akeneo-6-on-hypernode.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ redirect_from:
1414

1515
Akeneo 6 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 8.0, PHP 8.0 and Elasticsearch 7.x**, so it won’t affect your shop negatively. Installing Akeneo version 6.x may take up to 15 minutes.
1616

17-
## Enable managed_vhosts
17+
## Managed Vhosts
1818

19-
All new Hypernodes (from April 2020) will automatically be booted with [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). If you already have an older Hypernode, then you need to enable Hypernode Managed Vhosts by running the following command:
20-
21-
```bash
22-
hypernode-systemctl settings managed_vhosts_enabled True
23-
```
19+
Hypernode uses [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). Ensure you have a vhost for your Akeneo domain.
2420

2521
## Create a Managed_vhost for a (Sub)Domain
2622

docs/ecommerce-applications/akeneo/how-to-install-akeneo-7-on-hypernode.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ redirect_from:
1515
Akeneo 7 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 8.0, PHP 8.1 and OpenSearch 2.x**, so it won’t affect your shop negatively. Installing Akeneo version 7.x may take up to 15 minutes.\
1616
**Important note: Akeneo 7.x requires MySQL 8.0.30, which is only available on Debian Bookworm.**
1717

18-
## Enable managed_vhosts
18+
## Managed Vhosts
1919

20-
All new Hypernodes (from April 2020) will automatically be booted with [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). If you already have an older Hypernode, then you need to enable Hypernode Managed Vhosts by running the following command:
21-
22-
```bash
23-
hypernode-systemctl settings managed_vhosts_enabled True
24-
```
20+
Hypernode uses [Hypernode Managed Vhosts](../../hypernode-platform/nginx/hypernode-managed-vhosts.md). Ensure you have a vhost for your Akeneo domain.
2521

2622
## Create a Managed_vhost for a (Sub)Domain
2723

docs/getting-started/how-to-order/how-to-get-started-with-your-hypernode-trial.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,6 @@ In our support documentation you will find detailed information about installing
7171

7272
### Step 4 – Set up Hypernode Managed Vhosts
7373

74-
The Hypernode Managed Vhosts (HMV) system is currently enabled by default on all new booted Hypernodes (all Hypernodes created after 01-05-2020).
75-
76-
Check if you have HMV enabled by running this command:
77-
78-
`hypernode-systemctl settings managed_vhosts_enabled`
79-
80-
If so, it will give the following output:
81-
82-
`managed_vhosts_enabled is set to value True`
83-
84-
If this is not enabled, skip the part below.
85-
8674
Due to this configuration it is required to add a new vhost for every domain you want to link to your Hypernode. So you need to configure your DNS correctly and add a new vhost for the domain.
8775

8876
To add a new vhost, for example the domainname [www.example.com](http://www.example.com), to your configuration, you can simply run the command `hypernode-manage-vhosts www.example.com`. This will create a new vhost configuration in `/data/web/nginx/www.example.com/`, using the Magento 2 template.

docs/hypernode-platform/dns/how-to-manage-your-dns-settings-for-hypernode.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,7 @@ Don’t fancy these solutions? Migrate your domain to Hypernode and let us manag
129129

130130
## DNS and Hypernode Managed Vhosts
131131

132-
The Hypernode Managed Vhosts (HMV) system is currently enabled by default on all newly booted Hypernodes (all Hypernodes created after 01-05-2020).
133-
134-
Check if you have HMV enabled by running this command:
135-
136-
`hypernode-systemctl settings managed_vhosts_enabled`
137-
138-
If so, it will give the following output:
139-
140-
`managed_vhosts_enabled is set to value True`
141-
142-
If this isn't enabled, you can just skip the part below.
143-
144-
Due to this configuration, it is required to add a new vhost for every domain you want to link to your Hypernode. So you need to configure your DNS correctly and add a new vhost for the domain.
132+
With Hypernode Managed Vhosts (HMV), you must add a new vhost for every domain you want to link to your Hypernode. So you need to configure your DNS correctly and add a new vhost for the domain.
145133

146134
To add a new vhost, for example the domain name `www.example.com`, to your configuration, you can run the command `hypernode-manage-vhosts www.example.com`. This will create a new vhost configuration in `/data/web/nginx/www.example.com/`, using the Magento 2 template.
147135

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

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
myst:
33
html_meta:
4-
description: 'We recommend serving your site only over HTTPS traffic. This is
5-
safer and is better for search index optimization. Configure your shop with
6-
these steps. '
4+
description: 'We recommend serving your site only over HTTPS traffic. This is safer and is better for search index optimization. Configure your shop with these steps. '
75
title: How to configure your shop to only use https? | Hypernode
86
redirect_from:
97
- /en/hypernode/nginx/how-to-configure-your-shop-to-only-use-https/
@@ -26,40 +24,16 @@ Please check out [this article](../ssl/how-to-use-ssl-certificates-on-your-hyper
2624

2725
## Order Let’s Encrypt Certificates
2826

29-
### On Hypernodes With Hypernode Managed Vhosts Enabled
27+
### Ordering Let’s Encrypt Certificates on Hypernodes
3028

3129
**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!**
3230

33-
First, check if HMV is enabled on your Hypernode:
34-
35-
`hypernode-systemctl settings managed_vhosts_enabled`
36-
37-
If so, it will give the following output:
38-
39-
`managed_vhosts_enabled is set to value True`
40-
4131
If you want to request a LE certificate you need to add the `--https` flag with the HMV-command.
4232

4333
`hypernode-manage-vhosts www.example.com --https --force-https`
4434

4535
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.
4636

47-
### On Hypernodes Without Hypernode Managed Vhosts Enabled
48-
49-
To order [Let’s Encrypt](../ssl/how-to-use-lets-encrypt-on-hypernode.md) certificates for all storefronts, use the following command:
50-
51-
```bash
52-
## Create an entry for each storefront
53-
for DOMAIN in $( n98-magerun sys:store:config:base-url:list --format=csv | sed 1d | cut -d , -f 3 | perl -pe "s/https?://(www.)?//" | tr -d "/" | sort -u ); do
54-
echo -e "$DOMAIN www.${DOMAIN}" >> ~/.dehydrated/domains.txt
55-
done
56-
57-
## Order the certificates
58-
dehydrated -c --create-dirs
59-
```
60-
61-
Don’t forget to [add the cron to renew your certificates](../ssl/how-to-use-lets-encrypt-on-hypernode.md) to the crontab if you are using Let’s Encrypt!
62-
6337
## Changing Your Base URLs
6438

6539
If your SSL certificates are linked to your Hypernode, or you ordered Let’s Encrypt certificates, we can change the base URLs to use only HTTPS. To make this easier, we created a little Python script that changes all your base URLs to HTTPS:
@@ -89,7 +63,7 @@ if ($scheme = http) {
8963
}
9064
```
9165

92-
**Please note that if you have [Hypernode Managed Vhosts](hypernode-managed-vhosts.md) enabled, you can skip this.**
66+
**Please note that with [Hypernode Managed Vhosts](hypernode-managed-vhosts.md), you typically do not need this snippet.**
9367

9468
## Check Settings of Third Party Solutions
9569

docs/hypernode-platform/nginx/how-to-redirect-from-or-to-www.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ More info can be found [on our page about setting your DNS](../dns/how-to-manage
2424

2525
## Redirect From Apex to WWW
2626

27-
**When hypernode-managed-vhosts enabled**
27+
**When Hypernode Managed Vhosts is enabled**
2828

2929
To redirect all traffic to www you have to create both a vhost for the Apex and for the `www`. For the non-www vhost you can create the vhost as type wwwizer. This will redirect all traffic to the `www`. version of that vhost. This can be achieved by running: `hypernode-manage-vhosts example.com --type wwwizer`.
3030

@@ -34,17 +34,7 @@ To redirect all traffic to www you have to create both a vhost for the Apex and
3434
| www.example.com | magento2 | False | False | False | False | intermediate |
3535
```
3636

37-
**Without hypernode-manage-vhosts enabled (old legacy nginx-config)**
38-
39-
You can redirect all traffic to www with the following Nginx snippet:
40-
41-
```nginx
42-
if ($http_host ~* "^example.com$") {
43-
rewrite ^ https://www.$http_host$request_uri;
44-
}
45-
```
46-
47-
Save this snippet in `/data/web/nginx/server.rewrites`.
37+
<!-- Legacy nginx instructions removed: Hypernode platform uses Managed Vhosts across the board. -->
4838

4939
## Redirect From WWW to Apex
5040

0 commit comments

Comments
 (0)