-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1f5363
commit a6eb568
Showing
3 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name .example3.com; | ||
|
||
# SSL | ||
# Some comment | ||
ssl_certificate /opt/webmng/test/certificate/example.com.crt; # inline comment | ||
ssl_certificate_key /opt/webmng/test/certificate/example.com.key; | ||
ssl_trusted_certificate /opt/webmng/test/certificate/example.com.issuer.crt; | ||
return 301 https://www.example3.com$request_uri; | ||
} | ||
|
||
# HTTP redirect | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name .example3.com; | ||
include nginxconfig.io/letsencrypt.conf; | ||
|
||
# first comment | ||
# second comment | ||
location / { # inline comment | ||
return 301 https://www.example3.com$request_uri; | ||
} | ||
} |