I have one web server need access internet web service such as https://example.com/cgi-bin/* and this server deployed in intranet and also have one DMZ server can access internet directly.

So, how to setup in DMZ server accept https://example.com/cgi-bin/* request and forward to internet? Suppose my web server can access DMZ server and port 443.

Both Nginx and Apache are ok.


  • The restriction is my web server is using a prod and can't change the api url to http. – Ricky Wu Mar 30 '17 at 6:57
  • I do not understand the question? – Orphans Mar 30 '17 at 8:01
  • server { listen :443; ssl on; server_name example.com; rewrite ^(.) example.com$1 permanent; ssl_certificate /data/certs/domain.crt; ssl_certificate_key /data/certs/domain.key; } I found can be solved by config ssl proxy in Nginx – Ricky Wu Mar 31 '17 at 2:12
  • Welcome to Server Fault! Please don't post log entries or configuration as a comment. Instead, us the "edit" link below your question to edit it into the question. – Jenny D Apr 3 '17 at 8:41

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.