\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/ob.conf |
# Tüm HTTP isteklerini HTTPS ve canonical domain’e yönlendir
server {
listen 80;
server_name www.ofisbulutta.com ofisbulutta.com;
return 301 https://ofisbulutta.com$request_uri;
}
# www ile gelen HTTPS isteklerini canonical domain’e yönlendir
server {
listen 443 ssl;
server_name www.ofisbulutta.com;
ssl_certificate /etc/letsencrypt/live/ofisbulutta.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ofisbulutta.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
return 301 https://ofisbulutta.com$request_uri;
}
# Asıl HTTPS sunucu bloğu: canonical domain üzerinden gelen istekler burada işleniyor
server {
listen 443 ssl;
server_name ofisbulutta.com;
root /var/www/html/ofisbulutta.com;
index index.php index.html index.htm;
client_max_body_size 256M;
# Güvenlik başlıkları
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;
# Eski URL'leri yeni URL'lere yönlendirme (301 - kalıcı)
rewrite ^/ofisbulutta-z-mail/?$ /ob-zmail permanent;
# Sadece sonunda slash olan durum için yönlendirme yap
rewrite ^/ofisbulutta-santral/$ /ofisbulutta-santral permanent;
rewrite ^/obspotter/$ /obspotter permanent;
rewrite ^/ofisbulutta-5651/$ /obspotter permanent;
#rewrite ^/ofisbulutta-santral/?$ /ofisbulutta-santral permanent;
rewrite ^/cozumlerimiz/?$ / permanent;
rewrite ^/anasayfa/?$ / permanent;
rewrite ^/referanslar/?$ / permanent;
rewrite ^/pardus/$ /pardus permanent;
rewrite ^/ofisbulutta-backup/?$ / permanent;
rewrite ^/bize-ulasin/?$ /contact permanent;
rewrite ^/horizzon/?$ / permanent;
rewrite ^/zimbra-destek/$ /zimbra-destek permanent;
rewrite ^/jitsi-ve-dagitik-mimari/$ /jitsi-ve-dagitik-mimari permanent;
rewrite ^/postgresql-egtim-ve-danismanlik/$ /postgresql-egitim-ve-danismanlik permanent;
location / {
proxy_pass http://127.0.0.1:5111;
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;
}
ssl_certificate /etc/letsencrypt/live/ofisbulutta.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ofisbulutta.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}