Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2008, 07:27 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 88
Default Occasional HTTP Error 404 - File or directory not found

Sometimes I get a 404 error returned from the server when making a request to a module other than the default module (I am using the conventional modular layout). The error does not occur often, once every three weeks or so.

The web server is running IIS 6, and I am using a pretty standard Isapi_Rewrite rule. The 404 from the server suggests to me that for some reason the request is not getting sent to the bootstrap file for all requests to modules other than the default.

IIS logs just show a 404 error as expected, and the Windows Event Viewer does not show anything.

I am currently using ZF 1.5.2, though this has always been an issue.

Closing the browser and reopening the browser fixes this seemingly random problem, until it occurs again.

Any thoughts?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-24-2008, 02:51 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 88
Default

Are any other ZF developers experiencing this issue too?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-11-2008, 05:57 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 88
Default

Problem solved. Had to do with a rewrite condition that was getting met when the auth ticket began with a certain character.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 01:03 PM
Junior Member
 
Join Date: Jul 2008
Location: Ahmedabad
Posts: 8
Default

Quote:
Originally Posted by jweber View Post
Problem solved. Had to do with a rewrite condition that was getting met when the auth ticket began with a certain character.
Hi jweber,

Could you please post your rewrite condition and rule here? I'm also facing similar problem.

Thanks
__________________
Amit Shah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-16-2008, 05:26 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 88
Default

Here is my rewrite for ISAPI_Rewrite 2:
Code:
[ISAPI_Rewrite]
# UFCD /Intranet/ZF rewrite for Zend Framework 1.5.1
#
# Author: Justus Weber
# Copyright: 2008 UFCD

# turn on the rewrite engine
RewriteEngine on

# only rewrite requests when the intranet auth cookie is set
RewriteCond Cookie: .*UFCDIntranetAuth=.*

# only rewrite requests made to the correct subdirectory
RewriteCond URL (/intranet/ZF/.*)

# perform the rewrite
RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)? /intranet/ZF/index.php [i]
and here is the same for the serving running ISAPI_Rewrite 3:
Code:
# Helicon ISAPI_Rewrite configuration file
# Version 3.0.0.25

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase 

# 
#  Author: Justus Weber
#  Copyright: 2008 UFCD

#  only rewrite requests when the intranet auth cookie is set
#  only rewrite requests made to the correct subdirectory
#  perform the rewrite
RewriteCond %{HTTP:Cookie} ^.*UFCDIntranetAuth=.*$ [NC]
RewriteCond %{REQUEST_URI} ^(/intranet/ZF/.*)$ [NC]
RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)?$ /intranet/ZF/index.php [NC]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:38 PM.