Tag: nginx
-
Customize Nginx config on Ruby1.9 Elastic Beanstalk
Requirement : Set a URL redirection in Nginx Configuration. Example : download.appygeek.com => https://play.google.com/store/apps/details?id=com.mobilesrepublic.appygeek On Beanstalk with Phusion Passenger Standalone [3.0.17] (Ruby1.9), Nginx customization is highly discouraged. However to accomplish this, the following workaround is done : Beanstalk generates the nginx configuration file from a ERB template each time when restarted. Hence the configuration change has…
-
Set Up HTTP Authentication With Nginx On Amazon Linux
Setting Up Nginx VHost (Amazon Linux) yum install nginx vim /etc/nginx/conf.d/virtual.conf Inside virtual.conf server { listen 80; server_name unnitest.com; root /var/www/unni; index index.html; } Put Entry on /etc/hosts file in local computer as 1.2.3.4 unnitest.com Now Nginx server is setup. HTTP Authentication Install htpasswd yum install httpd Create User and Password Create a .htpasswd…
-
Nginx on Ubuntu
The following are some of the features of Nginx: * It serves static and index files * Reverse proxy with caching * Supports SSL * Simple load balancing with fault tolerance * Both name-based and ip-based virtual server can be configured * HTTP basic authentication * Supports rewrite module * Supports gzip, XSLT, SSI and…