I'm working on getting mod_userdir working on my server, where each user can have multiple sites under their account. The layout is like this:
/var/zpanel/hostdata/username/public_html/siteone_com
/var/zpanel/hostdata/username/public_html/sitetwo_com
/var/zpanel/hostdata/anotherusername/public_html/siteone_com
...etc
I'm using the following in my userdir.conf:
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /var/zpanel/hostdata/*/public_html/*>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
AliasMatch ^/users/([a-zA-Z0-9-_.]*)/(.*) /var/zpanel/hostdata/$1/public_html/$2
</IfModule>
Which works fine except viewing this URL: http://example.com/users/username/ lists only one of the two domains in there:
Index of /users/username
Name Last modified Size Description
Parent Directory -
siteone_com/ 20-Sep-2012 22:14 -
There are two sites under /var/zpanel/hostdata/username/public_html/ and I'm thinking the reason I can only see one of them through http://example.com/users/username/ has something to do with open_basedir, but I'm not sure how to resolve this without opening a security hole. They are both owned by the same user (www-data) and living under the same parent directory (username/public_html), so open_basedir might not be the problem after all. Am I going about this the right way?