Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
proxy pass для Tomcat
- To: nginx-ru@xxxxxxxxx
- Subject: proxy pass для Tomcat
- From: "solid-7" <nginx-forum@xxxxxxxx>
- Date: Wed, 23 Oct 2013 02:50:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=UoUUWwPUuT0Z79bAeOGnDoPBCHoJwnJseQqSZzRs9Io=; b=Mbfd0OFMHJWdfJ9dCORP6TCuMNBJJ8xtU6pDBS7e0NBP4wp3Brg81F2fSR33xRZt/xj9iqKCnj1uI4nGUpJiec1LK6gK+c+DZTBP3F8+NSVUS3XjaEohrAjEc3lW5QGcT9SgFqg1vYdZ8y5K0ufJ82sP9EDvmPmHFPeEfAZVjqA=;
Доброго дня
нужна помощь - есть статическая старница html, отрабатывает нормально, нужно
чтобы при добавлении в адресной строке /portal шел проброс на 8080, проброс
происходит но страница выдает 404 ошибку
конфиг
server {
listen 80;
server_name ;
location / {
#proxy_pass http://localhost:8080/;
root /var/www/def;
index index.php index.html index.htm;
}
location /portal {
proxy_pass http://192.168.122.6:8080/;
proxy_redirect http://192.168.122.6:8080/ /;
#proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,244023,244023#msg-244023
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|