Update u_e-80_to_443.md
Dieser Commit ist enthalten in:
Ursprung
3c2eef1147
Commit
b02bf5ca8d
1 geänderte Dateien mit 0 neuen und 15 gelöschten Zeilen
|
@ -4,24 +4,9 @@ Since February the 28th 2017 mailcow does come with port 80 and 443 enabled.
|
||||||
|
|
||||||
Open `mailcow.conf` and set `HTTP_BIND=0.0.0.0` - if not already set.
|
Open `mailcow.conf` and set `HTTP_BIND=0.0.0.0` - if not already set.
|
||||||
|
|
||||||
Now we need to redirect all requests other than autoconfig.* to HTTPS. You do not need to change anything in the template below.
|
|
||||||
|
|
||||||
Open `data/conf/nginx/site.conf` and add two new server configs at the top of that file:
|
Open `data/conf/nginx/site.conf` and add two new server configs at the top of that file:
|
||||||
|
|
||||||
```
|
```
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name autoconfig.*;
|
|
||||||
root /web;
|
|
||||||
location / {
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
fastcgi_pass phpfpm:9002;
|
|
||||||
include /etc/nginx/fastcgi_params;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root/autoconfig.php;
|
|
||||||
try_files /autoconfig.php =404;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
Laden …
In neuem Issue referenzieren