You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alastair Roy <Al...@Express.co.uk> on 2005/10/31 10:30:28 UTC

[users@httpd] htaccess

Ladies and gentlemen please if you can be of any assistance I would
appreciate it.

The problem is htaccess or my lack of understanding thereof I have set it up
on a directory but when I try to access the directory I DO NOT get
challenged for a password I just get the forbidden message in my web
browser, what I want is the browser so open a dialog box asking for my
username and password, and grant/or deny me access based on the credentials
supplied, any ideas what I am doing wrong. ?

Forbidden
You don't have permission to access /secure/users/ on this server.

----------------------------------------------------------------------------
----

Apache/1.3.33 Server at <myurl> Port 16080

Visit our websites: 

http://www.dailysnack.com “bite size news and gossip”

http://www.express.co.uk The Worlds Greatest Newspaper

http://www.dailystar.co.uk Simply The Best 7 Days A Week

http://www.happymagazine.co.uk The One Stop Shopping Magazine

http://www.ok.co.uk First For Celebrity News

http://www.northernandshell.co.uk The Mark Of Excellence

http://www.expresspictures.com  Express Newspapers and OK Magazine online picture archive




Also visit:

The NMA: Opening Up Newspapers http://www.nmauk.co.uk

###2004###
________________________________________
Any views or opinions are solely those of the author 
and do not necessarily represent those of Express Newspapers
________________________________________
The information transmitted is intended only for the person 
or entity to which it is addressed and may contain confidential 
and/or privileged material.If you are not the intended recipient
of this message please do not read ,copy, use or disclose this 
communication and notify the sender immediately. It should be 
noted that any review, retransmission, dissemination or other 
use of, or taking action in reliance upon, this information by 
persons or entities other than the intended recipient is prohibited.
E-mail communications may be monitored.
****************************************************************************

##EXN2000##


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache: You don't have permission to access /index.html on this server. Additionally a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Posted by Andi Martin <an...@btconnect.com>.
Nick,

Thanks for your help, it was due to selinux.  I managed to get it
working!!! :-)

Cheers again,

Andi

On Mon, 2005-10-31 at 20:11 +0000, Nick Kew wrote:
> On Monday 31 October 2005 20:02, Andi Martin wrote:
> 
> > Can anyone point me in the right direction?  I'm running an AMD64 in FC4
> > 64bit mode.
> 
> Sounds like file permissions.  It's not just the files; apache needs to be
> able to read the directory and all parents (perms 755 is usually fine).
> 
> If that's not it, look at your selinux docs.
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache: You don't have permission to access /index.html on this server. Additionally a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Posted by Andi Martin <an...@btconnect.com>.
Nick, 

Thanks for your quick response.  I checked the file permissions, I don't
think it's those, changed them all to 755 just in case but still no
luck.

I've also removed .htm from the /etc/mime.types and restarted the server
out of interest - it still manages to load .htm and not .html.

Any idea where I can find the selinux docs you mentioned?

Cheers again for taking the time.

Andi


On Mon, 2005-10-31 at 20:11 +0000, Nick Kew wrote:
> On Monday 31 October 2005 20:02, Andi Martin wrote:
> 
> > Can anyone point me in the right direction?  I'm running an AMD64 in FC4
> > 64bit mode.
> 
> Sounds like file permissions.  It's not just the files; apache needs to be
> able to read the directory and all parents (perms 755 is usually fine).
> 
> If that's not it, look at your selinux docs.
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache: You don't have permission to access /index.html on this server. Additionally a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Posted by Nick Kew <ni...@webthing.com>.
On Monday 31 October 2005 20:02, Andi Martin wrote:

> Can anyone point me in the right direction?  I'm running an AMD64 in FC4
> 64bit mode.

Sounds like file permissions.  It's not just the files; apache needs to be
able to read the directory and all parents (perms 755 is usually fine).

If that's not it, look at your selinux docs.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Apache: You don't have permission to access /index.html on this server. Additionally a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Posted by Andi Martin <an...@btconnect.com>.
Hi everyone, 

I'm relatively new to this so please bear with me.

I've installed apache and had a quick look over the config file. On
starting the server, I can access .htm pages but not .html.  

I've checked the mime types and .html is listed in there.  
I've checked the permissions and they are all set to a+xr.

I've no idea what i'm doing wrong :-\ 

Can anyone point me in the right direction?  I'm running an AMD64 in FC4
64bit mode.

Thanks for taking the time to read this.

Andi Martin


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess

Posted by Joshua Kogut <jm...@gmail.com>.
Also, you should do

AllowOveride All

to enable the .htaccess files to change the config.

On 10/31/05, Rich Bowen <rb...@rcbowen.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alastair Roy wrote:
> > Ladies and gentlemen please if you can be of any assistance I would
> > appreciate it.
> >
> > The problem is htaccess or my lack of understanding thereof I have set
> it up
> > on a directory but when I try to access the directory I DO NOT get
> > challenged for a password I just get the forbidden message in my web
> > browser, what I want is the browser so open a dialog box asking for my
> > username and password, and grant/or deny me access based on the
> credentials
> > supplied, any ideas what I am doing wrong. ?
> >
> > Forbidden
> > You don't have permission to access /secure/users/ on this server.
>
> You actually have two problems, not one.
> First, you need to fix the Forbidden problem. This could be a file
> permission problem, or it could be a configuration problem. You'll need
> to look in the error log to be sure.
> If it's a file permission problem, you'll need to make sure that the
> directories in question are +ACs-x (searchable) and +ACs-r (readable) by
> the
> Apache user.
> If it's a "denied by server configuration" message in the error log,
> you'll need to make sure that there is a directory block referring to
> this directory, with an "allow" directive there.
> Of course, presumably, if you're using .htaccess files, that infers that
> you don't have access to the main server configuration file, so perhaps
> these things are not in your power to do.
>
> So, let's start with the error log. What does it say?
>
> - --Rich
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFDZf+JXP03+sx4yJMRAjFgAKD3b4JOX99F+DQXH95Ak8XneSv60gCgik-
> NMauJDkCiJybhN0gpfYjaEw=
> =025T
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


--
|| jmkogut ||
email: jmkogut@gmail.com
|| Networking: Where all your problems are category 5. ||

Re: [users@httpd] htaccess

Posted by Rich Bowen <rb...@rcbowen.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alastair Roy wrote:
> Ladies and gentlemen please if you can be of any assistance I would
> appreciate it.
> 
> The problem is htaccess or my lack of understanding thereof I have set it up
> on a directory but when I try to access the directory I DO NOT get
> challenged for a password I just get the forbidden message in my web
> browser, what I want is the browser so open a dialog box asking for my
> username and password, and grant/or deny me access based on the credentials
> supplied, any ideas what I am doing wrong. ?
> 
> Forbidden
> You don't have permission to access /secure/users/ on this server.

You actually have two problems, not one.
First, you need to fix the Forbidden problem. This could be a file
permission problem, or it could be a configuration problem. You'll need
to look in the error log to be sure.
If it's a file permission problem, you'll need to make sure that the
directories in question are +x (searchable) and +r (readable) by the
Apache user.
If it's a "denied by server configuration" message in the error log,
you'll need to make sure that there is a directory block referring to
this directory, with an "allow" directive there.
Of course, presumably, if you're using .htaccess files, that infers that
you don't have access to the main server configuration file, so perhaps
these things are not in your power to do.

So, let's start with the error log. What does it say?

- --Rich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDZf╳䱄ࣅ耂菝븉㥿紗屿礂众鷤꿫䠂舩
NMauJDkCiJybhN0gpfYjaEw=
=025T
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org