Nginx Web Server

Show Real IP Nginx Behind Reverse Proxy

When your Nginx web server is running behind a reverse proxy, you will see IP of the reverse proxy server

Nginx Location Directive

Nginx Location Directive

Nginx Location Directive is used to route request to correct files. Match Exact match is used to match an exact

nginx password protect

Nginx Password Protect a website

To password protect a web site, you need to install htpasswd utility. On Ubuntu/Debian, you can install it with command

Configure Nginx to listen on single IP Address

Configure Nginx to listen on single IP Address

By default Nginx listens on all IP address on a server. To make nginx listen on specific IP address, edit

Nginx Web Server

Nginx Config for Laravel Application in sub folder

To run Laravel Application on sub folder of a web site, use following configuration. If you run Laravel application as

Nginx Config for Laravel Application

Nginx Config for Laravel Application

Here is Nginx configuration for a laravel application Nginx Config for Laravel Application in sub folder

nmap

Disable TLSv1 in Nginx

To disable TLSv1 in nginx, add in your server config. if you are using letsencrypt SSL, edit file Find Replace

Nginx Web Server

Nginx Rails Origin header didn’t match request.base_url

After installing SSL on Nginx server, rails application login page stopped working. On log file (log/production.log), found following error HTTP

Nginx Web Server

Nginx Disable Access log

On a high traffic web site, i want to disable access log as we are hitting I/O Limit. Since we

Enable Directory Listing in Nginx

Enable Directory Listing in Nginx

To enable directory listing in Nginx, add following to server configuration. Example If you need it for a specific folder,

Nginx Configuration for Video Streaming With Secure Link

Nginx Configuration for Video Streaming With Secure Link

here is nginx configuration i used for a video site that have secure link. This video server is a storage

Nginx 413 Request Entity Too Large

Nginx 413 Request Entity Too Large

On Nginx server, when uploading large file, i get error On nginx error log To fix, edit nginx config for