Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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 ?

share|improve this question

1 Answer 1

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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