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: 403 Errors on IE and not Firefox
Author
lazeelaker



Joined: 12 Mar 2008
Posts: 6
Location: SC

PostPosted: Wed 12 Mar '08 18:39    Post subject: 403 Errors on IE and not Firefox Reply with quote

I’m having problems with 403 Errors on IE and not on Firefox. I’m running WinXP Pro SP2 with Apache 2.2.6 & PHP 5.2.4. Firefox behaves just as I would expect. Why is this occurring and what can I do to correct it?

This is a development environment that will eventually go live to a *nix server. Would this problem occur on the *nix server too?

Please note that I am very much a newbie. Any and all help is greatly appreciated.

The current httpd.conf settings are:

Code:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>
<Directory "C:/Apache/htdocs">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
[/code]
Back to top
James Blond
Moderator


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

PostPosted: Wed 12 Mar '08 18:43    Post subject: Reply with quote

Did you change DocumentRoot or a BrowserMatch ?
Back to top
lazeelaker



Joined: 12 Mar 2008
Posts: 6
Location: SC

PostPosted: Wed 12 Mar '08 18:47    Post subject: Reply with quote

Thanks for the quick response.

DocumentRoot "C:/Apache/htdocs" and BrowserMatch does not exist in my conf file.
Back to top
James Blond
Moderator


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

PostPosted: Wed 12 Mar '08 22:03    Post subject: Reply with quote

is there any index file in that folder?
Back to top
lazeelaker



Joined: 12 Mar 2008
Posts: 6
Location: SC

PostPosted: Wed 12 Mar '08 22:52    Post subject: Reply with quote

No, there is not, but the file I am trying to access (http://localhost/content/partners.php) does exist.

I've checked every page in that folder. 4 display correctly.

1 is a mixture of PHP and HTML. This file's functionality is utilized on just about every file in this folder.
1 is just a PHP test file.
1 has an extension of .php but only contains html,
and the last is a simple .htm file.

As well, 1 file generates some PHP errors & "Directory index forbidden by Options directive: C:/Apache/htdocs/content/". This file is trying to access another folder in htdocs for an include.
Back to top
lazeelaker



Joined: 12 Mar 2008
Posts: 6
Location: SC

PostPosted: Mon 17 Mar '08 19:13    Post subject: Reply with quote

I've added an index.htm file to the content directory. My question is why does Apache default to the index file when I try other files in the folder by links as well as typing in the URL?
Back to top
James Blond
Moderator


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

PostPosted: Mon 17 Mar '08 21:02    Post subject: Reply with quote

Please remove the index file and change your config to:

<Directory "C:/Apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

So that you can see your files.
Back to top
lazeelaker



Joined: 12 Mar 2008
Posts: 6
Location: SC

PostPosted: Mon 17 Mar '08 22:08    Post subject: Reply with quote

Done.

Now I'm getting the directory index for that folder. This occurs even on the url: http://localhost/content/about.php. The file parts_order.php works/displays like it should. Queries the database, parses the php, etc. All other php files cause the directory index. Any idea why?

Once again thanks for your help and patience.

Index of /content
Parent Directory
about.php
about.php.bak
contact.php
contact.php.bak
employees.php
employees.php.bak
equip_main.php
equip_main.php.bak
home.htm
index.htm.bak
installations.php
myNSC.php
myNSC.php.bak
news.php
news.php.bak
partners.php
partners.php.bak
parts_order.php
pricing.php
pricing.php.bak
test.php
Back to top
James Blond
Moderator


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

PostPosted: Tue 18 Mar '08 10:47    Post subject: Reply with quote

lazeelaker wrote:

All other php files cause the directory index. Any idea why?


Sorry, I don't get what that means.
Do you mean, when you click a on a php file you getting back to the directory index or do you see a blank page?
Back to top
lazeelaker



Joined: 12 Mar 2008
Posts: 6
Location: SC

PostPosted: Tue 18 Mar '08 14:39    Post subject: Reply with quote

You are correct. Any time I type in or click a URL for a functioning php file in this /content/ directory, I am getting back to the directory index instead.
Back to top
James Blond
Moderator


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

PostPosted: Tue 18 Mar '08 15:34    Post subject: Reply with quote

I think, that inside the PHP there is a redirect programed. But I don't know the scripts Wink
Back to top


Reply to topic   Topic: 403 Errors on IE and not Firefox View previous topic :: View next topic
Post new topic   Forum Index -> Apache