Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

This is a great tutorial on how to server websites other than in default htdocs folder in XAMPP. It worked for me the other day but then I had to reinstall XAMPP (1.7.7 was 1.7.6) and now I am getting this error when I try the same.

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

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

I have put this in http.conf file according to the above link

<Directory "C:/Blog">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Alias /blog/ "C:/Blog" # this goes inside the alias module

When I type the URL, I get these messages:

localhost/blog       #gets error, object not found
localhost/blog/      #Access Foribdden
localhost/blog2/     #this folder does not exist and it rightly says object not found

Note that I have added everyone user to blog folder but still have the problem. I have added a plain HTML file as well but still have the same problem. I cannot find a .htaccess file.

share|improve this question

migrated from stackoverflow.com Jan 15 '12 at 3:56

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

I don't know how it got fixed, but I played with this line

Alias /blog/ "C:/Blog"

changed it to C:/Blog/ which did not work, and then changed it back to what it is above and it starting working. It took at least half an hour of my time.

More

I began the same error (Access forbidden) again after I changed the port to 8080. This time the fix was changing the above line to

Alias /blog/ "C:/Blog/"

This is very unclear how this one line can create such error.

share|improve this answer

Your Answer

 
discard

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.