I have two vhosts configured on my Apache2 server. One contains the API and the other a mobile version of my app. Since the mobile version needs to access the API from its own domain, I decided to create a ScriptAlias entry for this. Unfortunately it does not work, so I appreciate any advice on what I did wrong.

<VirtualHost *:80>
    DocumentRoot /path/to/mobile/version/htdocsdir
    <Directory />
            Options FollowSymLinks
            AllowOverride All
    </Directory>
    ScriptAlias /api /path/to/api/htdocsdir
    <Directory /path/to/api/htdocsdir >
            Order allow,deny
            Allow from all
            Options FollowSymLinks
            AllowOverride All
    </Directory>
</VirtualHost>
link|improve this question
Does /path/to/api/htdocsdir contain CGI scripts? – quanta Sep 27 '11 at 3:20
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.