Access IntraWeb application from nginx reverse proxy - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Access IntraWeb application from nginx reverse proxy (/thread-520.html) |
Access IntraWeb application from nginx reverse proxy - ccy - 07-23-2018 Usually, configure nginx reverse proxy is easy and straight forward, but I couldn't get it work with IntraWeb application. For example, I wish to access IntraWeb applicaton from URL http://www.example.com/intraweb The Intraweb application is accessible from http://10.1.1.1:8888/ Here is my nginx configuration: location /intraweb { proxy_pass http://10.1.1.1:8888$request_uri; proxy_set_header Host 10.1.1.1:8888; } But it doesn't work. Is there any setting I need to configure in IntraWeb? RE: Access IntraWeb application from nginx reverse proxy - Jose Nilton Pace - 07-23-2018 Hy, in your ServerController -> OnConfig: Code: Self.RewriteURL := '/intraweb'; RE: Access IntraWeb application from nginx reverse proxy - Alexandre Machado - 07-31-2018 (07-23-2018, 07:36 AM)ccy Wrote: Usually, configure nginx reverse proxy is easy and straight forward, but I couldn't get it work with IntraWeb application. Hello, are JNP mentioned, you need to set RewriteUrl property. Please have a look at item 4 of this document: http://docs.atozed.com/docs.dll/deployment/reverse%20proxies/Apache%20as%20Reverse%20Proxy.html You can also find some example code to retrieve this from an .INI file. Most reverse proxy servers work the same way. A side note: If you are using reverse proxy in HTTPS and your IW application is plain HTTP you can (or should) also set "X-Forwarded-Ssl: on" header field in your nginx server, so IW will work as HTTPS RE: Access IntraWeb application from nginx reverse proxy - jbromber - 11-11-2018 (07-31-2018, 04:59 PM)Alexandre Machado Wrote:(07-23-2018, 07:36 AM)ccy Wrote: Usually, configure nginx reverse proxy is easy and straight forward, but I couldn't get it work with IntraWeb application. is that working now? What about $request_uri, if i use this i got an 502 error? i mad a simple test, but startpage of iw starts loading but leave blank. simple nginx.conf server { listen 8080; server_name localhost; location / { proxy_pass http://localhost:80/; } } |