Welcome! Log In Create A New Profile

Advanced

Re: Issue with my proxy configuration

April 22, 2013 10:50AM
Hi.
Try something like:
location / {
proxy_pass http://<ip-address>:8081/AppName/;
}

Or

location / {
proxy_pass http://<ip-address>:8081/AppName/$uri;
}


On Mon, Apr 22, 2013 at 5:17 PM, Jörg Kastning <joerg.kastning@synaxon..de>wrote:

> Hello.
>
> In our lan I can reach my webapplication with an url like http://
> <servername>:8081/AppName. I try to configure nginx to forward requests
> from wan site to this server. All firewall policies needed are configured
> and the dns entry for access from wan are set and reachable.
>
> I tried the following configuration in /etc/nginx/nginx.conf:
>
> server {
> listen 80;
> server_name host.domainname.de;
> rewrite ^ https://$server_name$request_uri? permanent;
> }
> server {
> listen 443;
> server_name host.domainname.de;
>
> ssl on;
> ssl_certificate domainname.de.pem;
> ssl_certificate_key domainname.de.key;
>
> ssl_session_timeout 5m;
>
> ssl_protocols SSLv3 TLSv1;
> ssl_ciphers
> ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
> ssl_prefer_server_ciphers on;
> location / {
> proxy_pass http://<ip-address>:8081/AppName;
> }
> }
>
> With this configuration the webapplication ist available when I use the
> url http://host.domainname.de/AppName. But I want to access the webapp
> with the url http://host.domainname.de.
> Is this possible?
>
> Regards,
> Joerg
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



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

Issue with my proxy configuration

Jörg Kastning April 22, 2013 09:20AM

Re: Issue with my proxy configuration

Priority1 April 22, 2013 10:50AM

Re: Issue with my proxy configuration

Jörg Kastning April 23, 2013 02:32AM

Re: Issue with my proxy configuration

mex April 23, 2013 02:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
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