2023-02-07 19:52:54 +01:00
|
|
|
# This server block should listen on port 80 to warn users they tried to make an unsecure connection
|
|
|
|
|
2022-04-20 00:29:47 +02:00
|
|
|
server {
|
|
|
|
listen [::1]:42080 default_server;
|
|
|
|
listen 127.0.0.1:42080 default_server;
|
|
|
|
|
2022-05-03 15:41:14 +02:00
|
|
|
location / {
|
|
|
|
return 403; # Don't allow unsecure HTTP requests
|
|
|
|
}
|
2022-04-20 00:29:47 +02:00
|
|
|
|
2023-04-11 16:14:20 +02:00
|
|
|
error_page 403 /http-messages/unsecure;
|
2022-05-03 15:41:14 +02:00
|
|
|
|
2023-04-25 19:30:53 +02:00
|
|
|
location /http-messages {
|
|
|
|
include inc/apache-proxy.conf;
|
|
|
|
}
|
|
|
|
|
|
|
|
# To get TLS certificates
|
2022-05-03 15:41:14 +02:00
|
|
|
location /.well-known/acme-challenge {
|
2023-01-29 21:14:36 +01:00
|
|
|
root /srv/servnest/acme/;
|
2022-05-03 15:41:14 +02:00
|
|
|
}
|
2022-04-20 00:29:47 +02:00
|
|
|
}
|