Вот для примера мой конфиг проксирования на апач,
server {
server_name localhost;
include ports.conf;
location / {
error_log off;
access_log off;
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $host; # Forward IP headers to Apache
proxy_set_header X-Real-IP $remote_addr; # Forward IP headers to Apache
proxy_set_header HTTP_REMOTE_ADDR $remote_addr; # Forward IP headers to Apache
proxy_set_header X-Forwarded-For $remote_addr; # Forward IP headers to Apache
proxy_pass_header Cookie;
proxy_buffers 4 256k;
proxy_ignore_client_abort off;
proxy_intercept_errors off;
proxy_connect_timeout 60;
proxy_send_timeout 180;
proxy_read_timeout 180;
proxy_buffer_size 128k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_ignore_headers Cache-Control Expires;
}
location ~ /\.ht {
deny all;
}
}
Lin.in.ua - Портал Linux и OpenSource