<div dir="ltr"><div><div><div><div>Hello.<br><br></div>In our lan I can reach my webapplication with an url like <span style="font-family:times new roman,serif">http://<servername>:8081/AppName</span>. 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.<br>

<br></div>I tried the following configuration in <font face="times new roman,serif">/etc/nginx/nginx.conf</font>:<br><br><font face="times new roman,serif">server {<br>                listen 80;<br>                server_name <a href="http://host.domainname.de">host.domainname.de</a>;<br>

                rewrite ^ https://$server_name$request_uri? permanent;<br>        }<br>        server {<br>                listen 443;<br>                server_name </font><font face="times new roman,serif"><font face="times new roman,serif"><a href="http://host.domainname.de">host.domainname.de</a></font>;<br>

<br>                ssl on;<br>                ssl_certificate </font><font face="times new roman,serif"><font face="times new roman,serif"><font face="times new roman,serif">domainname</font></font>.de.pem;<br>                ssl_certificate_key </font><font face="times new roman,serif"><font face="times new roman,serif"><font face="times new roman,serif">domainname</font></font>.de.key;<br>

<br>                ssl_session_timeout 5m;<br><br>                ssl_protocols SSLv3 TLSv1;<br>                ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;<br>                ssl_prefer_server_ciphers on;<br>

                location / {<br>                        proxy_pass http://<ip-address>:8081/AppName;<br>                }<br>        }</font><br><br></div>With this configuration the webapplication ist available when I use the url <font face="times new roman,serif"><a href="http://host.domainname.de/AppName">http://host.domainname.de/AppName</a><font face="arial,helvetica,sans-serif">. But I want to access the webapp with the url </font></font><font face="times new roman,serif"><a href="http://host.domainname.de">http://host.domainname.de</a>.<br>

</font></div><div><span style="font-family:arial,helvetica,sans-serif">Is this possible?</span><br><br></div><div>Regards,<br></div><div>Joerg<br></div></div>