SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
-
Jan 20, 2005, 06:39 #1
- Join Date
- May 2003
- Posts
- 595
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Client denied by server configuration ?
Hi,
I'm getting these messages, and can't figure out why, some sort of permissions problem ?
Code:File does not exist: /home/username/public_html/403.shtml client denied by server configuration: /home/username/public_html/includes/form_check.js.php File does not exist: /home/username/public_html/403.shtml client denied by server configuration: /home/username/public_html/includes/general.js.php
Code:# $Id: .htaccess,v 1.4 2001/04/22 20:30:03 dwatkins Exp $ # # This is used with Apache WebServers # The following blocks direct HTTP requests in this directory recursively # # For this to work, you must include the parameter 'Limit' to the AllowOverride configuration # # Example: # #<Directory "/usr/local/apache/htdocs"> # AllowOverride Limit # # 'All' with also work. (This configuration is in your apache/conf/httpd.conf file) # # This does not affect PHP include/require functions # # Example: http://server/catalog/includes/application_top.php will not work <Files *.php> Order Deny,Allow Deny from all </Files>
There are other websites on the same server, with exactly the same setup, except for one line I added the other day in the web root path, in .htaccess
Code:php_value session.use_trans_sid 0
Any clues please ?
Peter
-
Jan 20, 2005, 07:15 #2
- Join Date
- Oct 2003
- Location
- €uroLand
- Posts
- 1,340
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I am not quite sure what you exactly ask for, but your .htaccess rules basically deny all requests for .php files. .js.php files are .php files as well, because ".js" isnt the extension but part of the filename.
-
Jan 20, 2005, 08:33 #3
- Join Date
- Nov 2001
- Location
- Dallas, Texas
- Posts
- 1,342
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Order Deny,Allow <<<
Deny from all <<<
these two lines are your problem. they should look like this...
Order Order,Deny
Allow from alli love php
-
Jan 20, 2005, 17:42 #4
- Join Date
- May 2003
- Posts
- 595
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
Originally Posted by drzoid
I think what you mean is it denies all direct requests, because it is the .htaccess file in the ../includes path, as I explained. It is not the .htaccess file in the web root path.
From the comment here in .htaccess for the /includes path
Code:The following blocks direct HTTP requests in this directory recursively
Thanks
Peter
-
Jan 20, 2005, 17:44 #5
- Join Date
- May 2003
- Posts
- 595
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
Originally Posted by i_like_php
Peter
-
Jan 20, 2005, 17:48 #6
- Join Date
- May 2003
- Posts
- 595
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
I'm now wondering if this code:
Code:<script language="javascript" src="includes/general.js"></script> <script language="javascript" src="includes/general.js.php"></script> <script language="javascript" src="includes/form_check.js.php"></script>
Anyway, I'll post on the Javascript forum, and ask there.
Thanks,
Peter
-
Jan 20, 2005, 18:25 #7
- Join Date
- Oct 2003
- Location
- €uroLand
- Posts
- 1,340
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by jehoshua
Of course thats what I meant.
-
Feb 2, 2005, 15:10 #8
- Join Date
- Nov 2001
- Location
- Dallas, Texas
- Posts
- 1,342
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by jehoshua
i love php
-
Feb 18, 2005, 06:13 #9
- Join Date
- May 2003
- Posts
- 595
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
Originally Posted by i_like_php
Code:<Files *.php> Order Deny,Allow Deny from all </Files>
Peter
Bookmarks