Nginx is well known for its powerful HTTP reverse-proxy features. Altough Nginx does its job well in pretty lot of situations, there are always a need for a general TCP proxy stuff. Sadly this feature does not come boundled in with the stock Nginx. This is where 3rd party patches come in. There are quite some great patches out there, in this post I will write about nginx_tcp_proxy_module made by Weibin Yao from China (he has 13 different promising patches and modules for nginx, definitely worth a check). Read more →
Entries tagged with #nginx
Recently I have developed the following Nginx setup to make my virtual host instance more advanced. It has the following features:
- The blog root directory served from a completely different directory than the regular
htdocsroot. Blog content has preference over the other files, so if the requested file is not found in the blog root, it falls back to the regular root.
- There is a feature for conditional autoindexing (I don’t like to expse my files by default): if I put a
.indexfile into a directory, it will be publicly autoindexed, otherwise Nginx returns a 404 error (as instead on the default 403).