I am a new CentOS / RHEL 6.x server user and DevOP. I need to lock a package called nginx on a server being updated via yum command. How do I lock package version at a particular version on CentOS / Red Hat Enterprise Linux (RHEL) 6.x or Fedora Linux?
Friday, January 3, 2014
Thursday, January 2, 2014
Linux / Unix: whereis Command Examples
Iam a new Linux and Unix-like system command line user. How do I find and locate the binary, source, and manual page files for a given command?
You need to use the whereiscommand to find the source, binary, and manuals sections for specified commands or files.
You need to use the whereiscommand to find the source, binary, and manuals sections for specified commands or files.
Wednesday, January 1, 2014
Nginx: Redirect Backend Traffic Based Upon Client IP Address
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?
Nginx web server does support if conditionalconfiguration. You can redirect and/or select configuration depending on client ip address. In this case you need to use the variable called $remote_addr which can be used to retrieve information about the users ip address. This is useful if you want to give file upload capabilities to your own office IP address and read-only capabilities to the rest of the world based upon client IP address or vpn address:
Nginx web server does support if conditionalconfiguration. You can redirect and/or select configuration depending on client ip address. In this case you need to use the variable called $remote_addr which can be used to retrieve information about the users ip address. This is useful if you want to give file upload capabilities to your own office IP address and read-only capabilities to the rest of the world based upon client IP address or vpn address: