Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lelux.fi
Wiki
Commits
8d199bed
Verified
Commit
8d199bed
authored
Mar 10, 2019
by
Elias Ojala
Browse files
http-redirect vhost to separate file
parent
c6291431
Changes
2
Hide whitespace changes
Inline
Side-by-side
_includes/nginx/http-redirect
0 → 100644
View file @
8d199bed
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
certbot.md
View file @
8d199bed
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment