Welcome! Log In Create A New Profile

Advanced

Re: Redirection

Aziz Rozyev
February 22, 2018 09:42AM
Hi,

show your full config, usually there is no need to set variable like $tomcatdomain,

proxy_pass http://tomcatdomain;

is enough.

br,
Aziz.





> On 22 Feb 2018, at 16:17, imrickysingh <nginx-forum@forum.nginx.org> wrote:
>
> Hi guys,
>
> I am new to nginx and facing some problem with my setup.
>
> In my setup i have nginx and tomcat with the application running on tomcat
> as http://tomcatdomain/application_name. I want to redirect to application
> if someone hit http://nginxdomain/app. I am able to do the redirection using
> location block as:
>
> location /app {
> proxy_pass $tomcatdomain;
> proxy_set_header Host $host;
> proxy_pass_request_headers on;
> }
>
> http://nginxdomain/app gives default tomcat page but i am not being able to
> reach the application.
> If i do like: http://nginxdomain/app/application_name, then it doesn't go
> anywhere but gives me the default tomcat page
>
>
>
> Regards,
> Ricky Singh
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278722,278722#msg-278722
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirection

imrickysingh February 22, 2018 08:17AM

Re: Redirection

Aziz Rozyev February 22, 2018 09:42AM

RE: Redirection

jasonw February 22, 2018 10:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready