Tag: NGINX

  • Deploy Django in Sub-Directory behind uWSGI and NGINX on CentOS 7

    Deploy Django in Sub-Directory behind uWSGI and NGINX on CentOS 7

    It took me awhile to deploy Django in sub-directory. Actually, I move it from sub-domain to sub-directory. I hope this post will save you some hours searching the Internet. Prerequisite or situation You are running Django in sub-domain, another domain and you want to move it to a sub-directory. You’re properly having issue with urlpatterns […]

  • Setup Django behind uWSGI and NGINX on CentOS 7

    Setup Django behind uWSGI and NGINX on CentOS 7

    Setting up a web server for Django could be challenging and headache. Let’s try to make it simple: Django behind uWSGI and NGINX on CentOS 7 from scratch. At the end, our complete stack of components will look like this: the web client <-> the web server <-> the socket <-> uwsgi <-> Django 1. Install […]

  • Compile Nginx with Pagespeed Module From Source

    Compile Nginx with Pagespeed Module From Source

    Compile Nginx with Pagespeed Module From Source is not hard as you may think. Below NGINX setup is fit for NGINX + FastCGI Cache. It means you don’t have to use WP Super Cache or W3 Total Cache or any cache plugin. Basic Setup Keep CentOS 7 up to date Disable Root access Firewall Timezone configuration […]

  • Setup LEMP Stack Centos 7 + NGINX + MariaDB + PHP 7 from Scratch

    Setup LEMP Stack Centos 7 + NGINX + MariaDB + PHP 7 from Scratch

    Believe me or not, there are hundred ways to setup web server. I searched and tried many of them on a VPS with 512MB of RAM. Most of them had issue with database, MySQL or MariaDB was die again and again. This one has worked for me for more than a year: CNMP (Centos 7 + NGINX […]