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

Nginx CloudFlare restore real ip

Nginx CloudFlare restore real ip

When using Nginx Behind Cloudflare, logs and web applications show cloudflare sever IP instead of visitor IP. To fix this,

Disable Access to a folder in Nginx

Disable Access to a folder in Nginx

To disable access to folder /admin in Nginx, add following to server block of your web site. To disable access

Nginx Config for rtmp streaming

Nginx Config for rtmp streaming

Here is nginx config used for RTMP streaming.

Nginx wildcard virtualhost

Nginx wildcard virtualhost

wildcard virtual host allow you to host multiple web sites with one configuration file. Here is what i use for

Moving from Apache PHP 5 to Nginx PHP 7

Today i moved a high traffic WordPress web using from Apache + PHP 5 to Nginx + PHP 7.2. Here

Nginx Proxy Configuration

Nginx Proxy Configuration

Nginx Reverse Proxy behind Cloudflare Nginx CloudFlare restore real ip Show Real IP Nginx Behind Reverse Proxy Nginx Proxy SSL

Magento 1.9 Nginx Configuration

Magento 1.9 Nginx Configuration

Here is Nginx + php-fpm config for Magento 1.9 on Ubuntu 16.04/Debian 9.