Category Archives: Linux

Understanding Nginx Location Directive

Here are Location Block syntax:

  • (none): The location_match is interpreted as a prefix match.
  • =: The location_match is interpreted as a exactly match.
  • ~: This location_match will be interpreted as a case-sensitive regular expression match.
  • ~*: The location_match block will be interpreted as a case-insensitive regular expression match.
  • ^~: The location_match is interpreted as the best non-regular expression match, regular expression matching will not take place.

Continue reading

Build Redis and PHPRedis from source codes

Install Redis

For more info please check http://redis.io/topics/quickstart

Copy the Redis server and the command line interface to “/usr/local/bin/”

Continue reading