Verified Commit 8d199bed authored by Elias Ojala's avatar Elias Ojala
Browse files

http-redirect vhost to separate file

parent c6291431
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
access_log /dev/null;
error_log /dev/null;
location / {
return 301 https://$host$request_uri;
}
}
\ No newline at end of file
......@@ -103,19 +103,7 @@ sudo ln -s /etc/nginx/sites-available/_utilities/http-redirect /etc/nginx/sites-
filename: `/etc/nginx/sites-available/_utilities/http-redirect`
```nginx
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
access_log /dev/null;
error_log /dev/null;
location / {
return 301 https://$host$request_uri;
}
}
{% include nginx/http-redirect %}
```
## nginx per-cert config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment