K
K
Konstantin2016-01-08 21:24:18
Nginx
Konstantin, 2016-01-08 21:24:18

How to add nginx to a running Windows 2008 Server + IIS 7.5?

Given. Windows 2008 Server + IIS 7.5.
A self-written database is installed (which works only under Windows) which forms html pages through a CGI script.
This is a library directory. The database is updated once a month.
The server is very busy, and 80-90% of the processor time is spent on the formation of pages by the script.
I wanted to try adding nginx. Perhaps he will allow to form the page once, and then how to get it from the cache?
It is advisable to install nginx on the same machine.
As I understand it, you need to:
1. Download and install nginx - this is understandable.
2. Redirect IIS to port 8080 (for example) and tell nginx where to redirect requests. - Here I don't know how to do it.
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-01-20
@Konstantinus

This question is a bit off topic, but I'll try to help.
You need to describe upstreams in the nginx configuration files. In your case the upstream will be 127.0.0.1:8080 - your IIS. Look at the module documentation here
nginx.org/ru/docs/http/ngx_http_upstream_module.html
Then for the desired virtual host that will listen on port 80, you need to proxy the desired location to IIS, which listens to localhost on port 8080.
Read the documentation for how to proxy modulo nginx_proxy_module
nginx.org/en/docs/http/ngx_http_proxy_module.html#...
Completely forgot about the cache. Well, actually the Nginx_proxy_module model itself allows caching. Read everything on the same page. There is a proxy_cache directive

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question