server {
listen 80;
server_name www.sitename.ru sitename.ru;
access_log /home/user/logs/sitename/nginx_access.log;
error_log /home/user/logs/sitename/nginx_error.log;
location / {
proxy_pass sitename_backend;
include /etc/nginx/proxy.conf;
error_page 404 403 500 = @fallback;
}
server {
listen 80;
server_name www.sitename.ru sitename.ru;
location / {
access_log /home/user/logs/sitename/nginx_access.log;
error_log /home/user/logs/sitename/nginx_error.log;
proxy_pass sitename_backend;
include /etc/nginx/proxy.conf;
error_page 404 403 500 = @fallback;
}
proxy_pass IP_ADRESS:8080;
proxy_redirect example.com:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;