| Author | 
  | 
lazeelaker
 
 
  Joined: 12 Mar 2008 Posts: 6 Location: SC
  | 
 Posted: Wed 12 Mar '08 18:39    Post subject: 403 Errors on IE and not Firefox | 
     | 
 
  | 
 
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: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Wed 12 Mar '08 18:43    Post subject:  | 
     | 
 
  | 
 
| Did you change DocumentRoot or a BrowserMatch ? | 
 
  | 
| Back to top | 
 | 
lazeelaker
 
 
  Joined: 12 Mar 2008 Posts: 6 Location: SC
  | 
 Posted: Wed 12 Mar '08 18:47    Post subject:  | 
     | 
 
  | 
 
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: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Wed 12 Mar '08 22:03    Post subject:  | 
     | 
 
  | 
 
| is there any index file in that folder? | 
 
  | 
| Back to top | 
 | 
lazeelaker
 
 
  Joined: 12 Mar 2008 Posts: 6 Location: SC
  | 
 Posted: Wed 12 Mar '08 22:52    Post subject:  | 
     | 
 
  | 
 
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
  | 
 Posted: Mon 17 Mar '08 19:13    Post subject:  | 
     | 
 
  | 
 
| 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: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Mon 17 Mar '08 21:02    Post subject:  | 
     | 
 
  | 
 
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
  | 
 Posted: Mon 17 Mar '08 22:08    Post subject:  | 
     | 
 
  | 
 
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: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Tue 18 Mar '08 10:47    Post subject:  | 
     | 
 
  | 
 
 	  | 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
  | 
 Posted: Tue 18 Mar '08 14:39    Post subject:  | 
     | 
 
  | 
 
| 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: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Tue 18 Mar '08 15:34    Post subject:  | 
     | 
 
  | 
 
I think, that inside the PHP there is a redirect programed. But I don't know the scripts   | 
 
  | 
| Back to top | 
 |