Welcome! Log In Create A New Profile

Advanced

NGINX as a reverse proxy in Windows server

Posted by skb_ebay 
NGINX as a reverse proxy in Windows server
March 17, 2011 10:14AM
Folks,

I am pretty new to the idea of using proxy servers.

I have a billing application installed in a Windows 2003 server. I am trying to integrate a third party API (Payway API) to process the credit card transactions initiated by the billing application. For the Payway API to work, the billing application is supposed to use a digital certificate provided by Payway while initiating the credit card transactions. Unfortunately, the billing application that I have doesn't support the usage of a digital certificate. To work around this problem, I was suggested to use a reverse proxy with SSL support between the billing application and Payway.

So, the configuration is to look like:
BILLING APPLICATION <=> REVERSE PROXY (with digital certificate) <=> PAYWAY

Please let me know if NGINX can work for me.

I tried installing NGINX in the windows server where the billing application is installed and I have configured NGINX to listen to 444 port (as 443 port is used by my billing application). The billing application has been configured to initiate the credit card transactions by connecting to https://ccapi.client.qvalent.com:444

Due to some reason, the setup doesn't seem to work. I am not sure if I have configured NGINX properly either. What I need is:

1. NGINX must be monitoring for the transactions initiated by the billing application to https://ccapi.client.qvalent.com:444....
2. If there is a transaction initiated, then it must use the specified digital certificate and proxy the transaction
3. Once the transaction is completed at Payway and when NGINX gets the resulting status, it must pass it on to the billing application.


I have used the following NGINX configuration:



#user nobody;
worker_processes 1;

error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}

http {

server {
listen 444;
server_name ccapi.client.qvalent.com;

ssl on;
ssl_certificate ccapi.pem;
ssl_certificate_key ccapi.pem;
ssl_session_timeout 5m;

ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;

#location / {
# root html;
# index index.html index.htm;
#}
}

}


Please help me to work out a solution.

Thanks,
KB.



Edited 3 time(s). Last edit at 03/17/2011 10:24AM by skb_ebay.
Re: NGINX as a reverse proxy in Windows server
March 17, 2011 10:48AM
Also, I just have a single certificate file (.pem format) and no key file exists. I was told that the key is a part of the .pem file. Please let me know how I need to change the NGINX configuration for non existent key file.

Thanks,
KB.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready