[studs-user] HTTP Status 404 problems
Status: Beta
Brought to you by:
mojavelinux
|
From: Dan A. <dan...@gm...> - 2005-07-20 15:37:35
|
If you have downloaded the starter application, studs-basic, and you
are having difficulty getting it running due to an HTTP 404 error,
this post is for you.
Studs channels all requests through the controlling script:
"index.php". In order to ensure that requests go through this file, a
couple of Apache directives have been added to the .htaccess file that
ships with this application. These directives are:
<FilesMatch "^.*$">
deny from all
</FilesMatch>
<FilesMatch "index\.php$">
allow from all
</FilesMatch>
<FilesMatch "^$">
allow from all
</FilesMatch>
These directives deny access to all files, then allow access to either
"index.php" or the folder itself. However, on some installations of
apache, the third directive is not interpretted correctly, preventing
access to the folder itself "/studs-basic/". As a result, the 404
error occurs.
You can verify that this .htaccess file is being overzealous by making
a direct request for the controller script "/studs-basic/index.php".=20
For testing, there is no reason why you cannot just disable these
apache directives until you are more familiar with Studs and would
like to re-enable this security.
The other alternative is to use mod_rewrite to force all requests to
the controller script, but that will be documented at a later time on
the wiki.
/dan
--=20
Open Source Advocacy
http://www.mojavelinux.com
|