logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Error 403 and "Allow from all"
Author
Galaxy_Stranger



Joined: 05 Aug 2008
Posts: 5

PostPosted: Wed 05 Jan '11 20:04    Post subject: Error 403 and "Allow from all" Reply with quote

Setup:
Apache 2.2
Windows Server 2008 R2 64bit
Internal DNS used on the network

First, I set up Apache and got the default site/directory working. I had my network admin make a DNS entry for "Wiki" so I could use that as a Virtual Host.

As soon as I added the virtual host, no content would display - acted like it was trying to find the server and eventually died. When I commented-out the Virtual Host file, it would immediately hit the server.

At this point, I re-added the Virtual Host again and commented-out all of its contents and added lines one-by-one. Until I get to the Directory Permissions, I get "error 403". When I add "Allow from all", it goes back to not finding the server. Here's the Virtual Host definition:
Code:
<VirtualHost 192.200.2.21:80>
    ServerAdmin my_email@site.com
    DocumentRoot "D:/Apps/Wiki"
    ServerName wiki
    <Directory "D:/Apps/Wiki">
   Options Includes Indexes FollowSymLinks
#   Allow from All
    </Directory>
</VirtualHost>


Anybody have any ideas?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 06 Jan '11 0:04    Post subject: Reply with quote

You missed the Order

e.g.
Code:

Order Allow,Deny
Allow from all
Back to top
Galaxy_Stranger



Joined: 05 Aug 2008
Posts: 5

PostPosted: Thu 06 Jan '11 0:20    Post subject: asdfasf Reply with quote

On Apache restart: "The requested operation has failed!"

Yeah, I don't have ORDER on any of my virtual hosts at home on my Linux machine.


-=[EDIT]=-
I found that there was a space after "Allow," and Apache didn't like that. So I restarted again and it started - but still acts like it can't find the server.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 06 Jan '11 10:52    Post subject: Reply with quote

So if that isn't that issue. What is in your error log about it?
What about the permission in the file system. Can the user you run apache with acces that directory?
Back to top
Galaxy_Stranger



Joined: 05 Aug 2008
Posts: 5

PostPosted: Fri 07 Jan '11 17:31    Post subject: asfasdf Reply with quote

First, thanks for the help, James. I'll post what happened for posterity. Maybe someone can benefit from this someday.

Ok, I created new, empty directories and put an index.php in each one with a different title and created a virtualhost for each. I had my network admin add dns entries for them both to point to the server. So, now when you type "wiki" into your browser, it sends you to the server.

Individually, each virtualhost entry functions correctly, and I can access that directory. So, not a file system permissions issue. Then, when I place both virtual hosts into the config file, only the FIRST entry listed comes up.

This is what I did wrong: in testing the virtualhosts, I put them in the main httpd.conf file, which is fine. But because I hadn't used the vhosts file, I was missing the "NameVirtualHost" entry.

So, as far as the original issue goes, it looks like a php issue with the content I had in there - migrating a wiki to a new machine. Error 403 is all the feedback I can find in the error and/or access logs.

Anyway, thanks again for your effort!
Back to top


Reply to topic   Topic: Error 403 and "Allow from all" View previous topic :: View next topic
Post new topic   Forum Index -> Apache