\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /etc/nginx/sites-enabled/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //etc/nginx/sites-enabled/resul.conf |
############################################
# 1) Redirect ALL HTTP to https://mikrocozum.com
############################################
server {
listen 80;
server_name mikrocozum.com www.mikrocozum.com;
# Redirect all requests to https://mikrocozum.com
return 301 https://mikrocozum.com$request_uri;
}
############################################
# 2) Redirect https://www.mikrocozum.com to https://mikrocozum.com
############################################
server {
listen 443 ssl http2;
server_name www.mikrocozum.com;
# Use an SSL certificate that is valid for both mikrocozum.com & www.mikrocozum.com
ssl_certificate /etc/letsencrypt/live/mikrocozum.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mikrocozum.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# 301 redirect to the canonical apex domain
return 301 https://mikrocozum.com$request_uri;
}
############################################
# 3) Primary HTTPS Server Block for mikrocozum.com
############################################
server {
listen 443 ssl http2;
server_name mikrocozum.com;
# SSL certificates (apex domain)
ssl_certificate /etc/letsencrypt/live/mikrocozum.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mikrocozum.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# Security headers (optional but recommended)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "geolocation=(), microphone=(), camera=()" always;
# Optional: Document root & index if you serve static files
root /var/www/html/resul/OmriBilisimWeb;
index index.html;
# Proxy requests to Node.js (or any backend) on port 7222
location / {
proxy_pass http://127.0.0.1:7222;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}