php - Allow access to 'subdirectory' created by URL router with Apache -
i have development server website re-developing api backbone. want domain protected outside access, require valid htpasswd user on domains hosted on dev server.
this causes problems though because php scripts cannot access api run application. api located @ dev.example.com/api, not actual directory because controlled php url router. have not been able allow access api apache because files not located in actual directory. tried
<virtualhost *:80> servername dev.example.com documentroot /path/to/dir <location /api> order allow,deny allow satify </location> </virtualhost>
this had old site's development server, worked because api wasn't controlled router located @ /path/to/dir/api
.
is there way allow access api outside sources (any call domain dev.example.com/api)?