I am a new Linux system admin and how can I enable gzip compression on nginx web server for JS/CSS/HTML files? How can I enable gzip/deflate in Nginx on Ubuntu Linux server? How do I configure gzip compression with NGINX web server on FreeBSD Unix server?
[continue reading…]
/etc/init.d/nginx restart
My nginx server is behind a reverse proxy load balancer. How can I show the correct client IP address in nginx log files when nginx is behind a load balancer?
[continue reading…]
[continue reading…]
I have four Apache backend servers in front of nginx reverse proxy server. How do I make sure nginx reverse proxy load balancer always send specific client IP address (say IP 1.2.3.4) request to http://apachereadwrite/ backend and rest to http://apachereadonly/ backend?
[continue reading…]
[continue reading…]
I am a small business and ecom site owner. I also run a WordPress based blog to connect with my customers. However, I get too much spam from certain IPs and net-blocks. How do I block access to certain url(s) such as example.com/blog/wp-comments-post.php for selected IP address and CIDRs? How do I allow everyone including IP address 1.2.3.4 to access my blog but block IP address 1.2.3.4 accessing only example.com/blog/wp-comments-post.php? How do I block POST requests for selected IPs/CIDR on nginx?
[continue reading…]
[continue reading…]
I am a new Nginx web server user. How do I redirect to a different domain using nginx (say example.org to example.com) permanently?
[continue reading…]
[continue reading…]
I am a new nginx user and I would like to redirect all mobile / smart phone users from www.example.com to m.example.com domain. How do I detect a mobile phone browser in nginx? How do I redirect all mobile users to sub-domain using regex based rules? How can I automatically redirects visitors on mobile devices to its mobile version at http://m.example.com/ and also allow mobile devices to the desktop website at www.example.com if visiting via http://www.example.com/?desktop=true?
[continue reading…]
[continue reading…]
How do I restart nginx web server under Linux or Unix operating systems using command line options?
[continue reading…]
[continue reading…]