File: //storage02/RYPY-Recovery/nginx/conf.d/neweraeducationhub.com.conf
server {
client_max_body_size 102400M;
root /data/neweraeducationhub.com;
index index.html index.htm index.nginx-debian.html;
server_name www.neweraeducationhub.com neweraeducationhub.com;
location / {
#proxy_pass http://localhost:3010;
#proxy_http_version 1.1;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection 'upgrade';
#proxy_set_header Host $host;
#proxy_cache_bypass $http_upgrade;
root /data/neehu_coming;
index index.html index.htm;
try_files $uri $uri/ =404;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/neweraeducationhub.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/neweraeducationhub.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}server {
if ($host = www.neweraeducationhub.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = neweraeducationhub.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name www.neweraeducationhub.com neweraeducationhub.com;
listen 80;
return 404; # managed by Certbot
}