I have installed xampp I could access it successfully on port 85.

Then I created a virtual host and pointed to a custom dir (not under xampp)

<VirtualHost *:85>
    ServerAdmin postmaster@dummy-host.localhost
    DocumentRoot "C:/MyCustomDir/xampp"
    ServerName mydomain.com
    ##ServerAlias www.dummy-host.localhost
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>

When trying to access it from Internet I get:

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403

Why ?

link|improve this question

40% accept rate
feedback

1 Answer

Whatever account Apache is running under needs read permission to that directory. The minimum permissions that will be needed for that account are:

  • c:\MyCustomDir - Traverse Directory
  • c:\MyCustomDir\xampp - Read
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.