Tuesday, March 17, 2020

Nginx Installation On Windows

Official Win32 Binaries

As of NGINX 0.8.50, NGINX is now available as an official Windows binary.
Installation:
cd c:\
unzip nginx-1.2.3.zip
ren nginx-1.2.3 nginx
cd nginx
start nginx
Control:
nginx -s [ stop | quit | reopen | reload ]
For problems look in c:nginxlogserror.log or in EventLog.




Configuration:

server {


        listen       8070;

location / {

                        proxy_pass        http://localhost:8089;

   proxy_set_header  X-Real-IP $remote_addr;

   proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;

   proxy_set_header  Host $http_host;

        }



}

Now Access the Application:

http://localhost:8070

No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...