Skip to content

Commit

Permalink
Add server block for port 80
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongT16 committed Jan 21, 2025
1 parent 73ef514 commit 05f7651
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ http {

access_log /usr/local/openresty/nginx/conf/access.log;

# Redirect http to https
server {
listen 80;
server_name mgdocs.ncsa.illinois.edu;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name ${PROXY_FQDN};
Expand Down

0 comments on commit 05f7651

Please sign in to comment.