Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redirect 8080 to 80


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Redirect 8080 to 80
  • From: Dmitriy Lyalyuev <dmitriy@xxxxxxxxxxxxx>
  • Date: Wed, 24 Jul 2013 16:22:04 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyalyuev.info; h=content-type:content-type:in-reply-to:references:subject :subject:mime-version:user-agent:from:from:date:date:message-id :received:received; s=lyalyuev.info; t=1374672126; x=1376486526; bh=ERmlkx4sE3LSay2dBsPdtcbmV34M15ssgnLBZ4WNFac=; b=NBJH0eDgPlRZ iO8Ho6nwbpOvVuCsTehJGQPXh0gMCwoEDYdA3/kA9HdKJcIyu4rdWiqeFFYFUi9m /thBg5FBkSMWSL2javcWi5o+sUp/UWGj450zRNyzUdWRoaOE2nG7PbyflBSWjscQ IPxIcxWq+e0ldY9xKHQQrFLtuKOMJHs=
  • In-reply-to: <51EFCE29.3000800@lyalyuev.info>
  • References: <51EFCE29.3000800@lyalyuev.info>

:
proxy_set_header Host $host:$server_port;


24.07.2013 15:52, Dmitriy Lyalyuev :
, .

.
tomcat7, 8081 nginx, 8080.
http://domain.tld:8080/testapp http://domain.tld/testapp
.

?

:

upstream backend {
server localhost:8081;
}

server {
listen 8080;
server_name domain.tld;
root /var/lib/tomcat7/webapps/;
index index.html index.htm;

location / {
try_files $uri/maintenance.html $uri @app;
}

location @app {
include /etc/nginx/proxy_params;
proxy_pass http://backend;
}
}

listen 80 , , 80. 8080 80.
Tomcat 8080 . nginx Tomcat .



_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


-- 
Dmitriy Lyalyuev
http://lyalyuev.info

Attachment: smime.p7s
Description: ?????????????????????????????????? ?????????????? S/MIME

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.