About Nginx
- Nginx is a high-performance HTTP and reverse proxy server;
- Many supported operating systems, Windows, Linux, MacOS X;
- Load balancing can be achieved;
- Rewrite powerful function;
- Most e-commerce architectures use the architecture of nginx+ application servers (such as Tomcat, Web servers).
Catalogue description
- conf– configuration file
- contrib– to store some useful tools
- docs– Documentation
- html– static page
- logs– Log
- tmp– Temp Directory
- Nginx.exe Master Service
Use (Windows)
Note: (Nginx.exe) can not double hit open!
- Start: Start Nginx.exe
- Stop: Nginx.exe-s stop
- Reload: Nginx.exe-s Reload
Nginx Configuration
D:\soft\nginx-1.5.1\conf\nginx.conf
server { listen ; # listening Port server_name manage.taotao.com; # requesting access to the domain name #charset Koi8-r; #access_log logs/host.access.log main; Proxy_set_header x-forwarded-host $host; Proxy_set_header x-forwarded-server $host; Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for; Location/{ proxy_pass http://127.0.0.1:8081; # reverse proxy to the Tomcat proxy_connect_timeout; #连接超时时间 proxy_read_timeout; #读取超时时间 } }
Nginx Introduction and Configuration Utility