Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Access Denied

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache Configuration  
Author Message
user2970

External


Since: Sep 17, 2004
Posts: 7



(Msg. 1) Posted: Fri Sep 17, 2004 8:57 am
Post subject: Access Denied
Archived from groups: alt>apache>configuration (more info?)

Hi!I'm testing my site over my lan and i notice that user can show the
content of all subdirectory!
The site have a tree like this

/Web
|
+---- cgi-bin
|
+---- utility
|
+---- Script
| |
| +---- Admin
| |
| +---- Member
| |
| +---- Page
|
+-------- Other



I've index page in the root (/Web).
I've installed a PHP script in /Web/Script that use a SQL db to authenticate
my visitor.
The script work well but I also want to set apache to deny browsing of
directory and show the "Access Denied" error page when a user try to browse
my site!
I hope that my question can be clear even if my english is so bad!
Thanks a lot for any contribute!Have a nice day!ALE

 >> Stay informed about: Access Denied 
Back to top
Login to vote
user2970

External


Since: Sep 17, 2004
Posts: 7



(Msg. 2) Posted: Fri Sep 17, 2004 9:01 am
Post subject: Re: Access Denied [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

[cut]
I forget to say that I use EasyPHP (Apache 1.3.27) with Win XP Pro sp2
Bye

 >> Stay informed about: Access Denied 
Back to top
Login to vote
jncsmith

External


Since: Sep 01, 2004
Posts: 16



(Msg. 3) Posted: Fri Sep 17, 2004 7:25 pm
Post subject: Re: Access Denied [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Alessio B. wrote:

 >[cut]
 >I forget to say that I use EasyPHP (Apache 1.3.27) with Win XP Pro sp2
 >Bye
 >
 >
 >
 >
You can use an If statement in PHP to return a 403 Page, I'm not to sure
on exactly how, but I know you can maybe try a php newsgroup they might
be able to help you out.

J.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Access Denied 
Back to top
Login to vote
dinges_danges_

External


Since: Aug 03, 2004
Posts: 88



(Msg. 4) Posted: Sat Sep 18, 2004 8:59 pm
Post subject: Re: Access Denied [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Alessio B. said the following on 17/09/2004 07:57:

 > Hi!I'm testing my site over my lan and i notice that user can show the
 > content of all subdirectory!

<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_autoindex.html" target="_blank">http://httpd.apache.org/docs/mod/mod_autoindex.html</a>

"Automatic index generation is enabled with using Options +Indexes. See
the Options directive for more details."

 > I've index page in the root (/Web).
 > I've installed a PHP script in /Web/Script that use a SQL db to authenticate
 > my visitor.

Why is your cgi-bin in your DocumentRoot? It's a script, not a document.
If you have security on your mind, please put cgi-bin somewhere outside
your DocumentRoot and use ScriptAlias so it will be accessible.

And I'm not sure what the directory "Script" is, but the name suggests
it doesn't belong under the DocumentRoot either.

 > The script work well but I also want to set apache to deny browsing of
 > directory and show the "Access Denied" error page when a user try to browse
 > my site!

The above URL will do that if there's not an index.html or whatever
you've set DirectoryIndex to in that dir. You may also use
authentication for several directories, although this is not as strong
as you might expect (brute password guessing can be done).

Anyway, check this URL for it:

<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/howto/auth.html" target="_blank">http://httpd.apache.org/docs/howto/auth.html</a>

--
Regards
Harrie<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Access Denied 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
(13)Permission denied: access to / denied - Hi all, by accessing my webserver I get an "Forbidden You don't have permission to access / on this server". My error-log file says: [Wed Nov 26 22:26:30 2003] [error] [client 10.0.0.151] (13)Permission denied: access to /index.html denied M...

Access denied by rule - I am running two vhosts. and can not get a handle on this error message.

Permission denied - Hi, I have a Debian server running apache 1.3 for a intranet. Eveything is working fine but when i try to execute a cgi script (via browser) to change permissions on some files i get the following message (tail -f /var/log/papacge/error.log): Permissio...

Client denied - Can anyone tell me how to resolve a "client denied by server configuration" error. I have a CGI component which fails to run and returns this error. My <directory> directive for the cgi-bin directory is as follows: AllowOverride None Op...

Permission Denied - apachectl start - Greetings, When we try to start apache for the first time we get a permission denied error. This happens even when logged in as root. I'm sure this is probably a newbie Linux error but would appreciate any help. The Linux is Mandrake. TIA, George
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]