server { listen 80; #server_name gh.2i.gs; # return 301 https://gh.2i.gs$request_uri; #} #server { listen 443 ssl http2; server_name gh.2i.gs; charset utf-8; access_log /var/log/nginx/ghproxy.access.log main; error_log /var/log/nginx/ghproxy.error.log; # ssl_trusted_certificate /etc/nginx/conf.d/2i.gs.pem; # ssl_certificate /etc/nginx/conf.d/2i.gs.pem; # ssl_certificate_key /etc/nginx/conf.d/2i.gs.key; root /var/www/ghproxy; location / { index index.html; try_files $uri $uri/ =404; } location ^~ /http { proxy_pass http://localhost:8080; } }