I wrote a Nginx module HTTP ownermatch solved Nginx http://www.aliyun.com/zixun/aggregation/14840.html "> link between virtual hosts via linked files (hard links and symbolic links) Cross-station access issues. This module allows you to specify which user files each Location can or cannot access for each virtual host.
Configuration file Instance
Location/{root HTML; index index.html index.htm omallow heiher; # Allow access to files belonging to Heiher Omallow guest sftp; # Allow access to belong to Guest:sftp File Omdeny all; # do not allow access to any other files}
Source Code Warehouse
git clone http://git.heiher.info/nginx.git
Patch Downloads
Http://heiher.info/sftp/files/Nginx-1.0.3-Add-OwnerMatch-module.patch
Http://heiher.info/sftp/files/Nginx-0.8.54-Add-OwnerMatch-module.patch
Ubuntu 10.04 installation package download
Nginx_0.7.65-1ubuntu2_i386.deb
Nginx_0.7.65-1ubuntu2_amd64.deb
Nginx_0.8.54-1heiher_i386.deb
Nginx_0.8.54-1heiher_amd64.deb