# Mod\_mysql\_userdir?

**URL:** <https://www.ruby-forum.com/t/mod-mysql-userdir/214089>\
**Category:** NGINX\
**Created:** [November 21, 2011, 3:13pm UTC](https://www.ruby-forum.com/t/mod-mysql-userdir/214089 "2011-11-21T15:13:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 21, 2011, 3:13pm UTC](https://www.ruby-forum.com/t/mod-mysql-userdir/214089/1 "2011-11-21T15:13:47Z")

</div>

Hello Nginx Team,  
we would like to ask have you got solution for following problem.  
We have ftp users that are authorized in mysql they want to see their  
homedirs  
through the web by using the same user and password.

for example:  
[http://site.com/username1/](http://site.com/username1/) → requires the username1 for username and  
his password1  
[http://site.com/username2/](http://site.com/username2/) → requires the username2 for username and  
his password2

But when open [http://site.com/username1/](http://site.com/username1/) and auth with username2  
password the reply from webserver must be access denied or rewrites  
the path to [http://site.com/username2/](http://site.com/username2/) and show his homedir.

it is similar like UserDir in Apache or  
([http://www.mgamble.ca/oss/mod\_mysql\_userdir/](http://www.mgamble.ca/oss/mod_mysql_userdir/)) but we want to use it in  
nginx.

Regards,

Posted at Nginx Forum:

> **[mod\_mysql\_userdir ?](https://forum.nginx.org/read.php?2,218708,218708#msg-218708)**
>
> Hello Nginx Team, we would like to ask have you got solution for following problem. We have ftp users that are authorized in mysql they want to see their homedirs through the web by using the same user and password. for example:...
