php - How set DocumentRoot to a subfolder on a subdomain? -


i have follow structure:

/var/www/subdomain.domain.com/app1/public/index.php /var/www/subdomain.domain.com/app2/public/index.php

to app type:

www.subdomain.domain.com/app1/public

but, there's someway keep like

www.subdomain.domain.com/app1 , www.subdomain.domain.com/app2?

without /public, but, still redirecting subfolder, because need index.php?

thanks!

<location "/app1">     alias "/app1/public" </location>  <location "/app2">     alias "/app2/public" </location>