Skip to content

Instantly share code, notes, and snippets.

@yakutozcan
Created December 25, 2016 20:10
Show Gist options
  • Save yakutozcan/8cd26c6ddaeb7d46f77a5537b16806b6 to your computer and use it in GitHub Desktop.
Save yakutozcan/8cd26c6ddaeb7d46f77a5537b16806b6 to your computer and use it in GitHub Desktop.
#Ornek nginx alt domain ayarı
server {
listen 80;
server_name temp.haydut.xyz;
location / {
proxy_pass http://127.0.0.1:1907;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
#Ip adresimizi gönderen header bilgisi
proxy_set_header X-Real-IP $remote_addr;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment