http://moq7aejnf4xk5k2bkaltli3ftkhusy2mbrd3pj23nrca343ku2mgk4yd.onion/stuff/article/nginx_recipes_and_tips?lang=en
The implementation is quite simple: location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/pub$2;
autoindex on;
} Of course, you can choose whatever place for user’s public directories. In my case you need to give a read and execute permissions to user’s home directory and to public directories inside them to others ( chmod o=rX /home/user ), which may be a security concern. autoindex on will make an index of files that lies by URL.