You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Oliver <jo...@john-oliver.net> on 2009/04/03 00:49:35 UTC

[users@httpd] Apache not allowing .exes?

I copied a file with a .exe extension to the DocumentRoot ( RHEL5.2,
httpd-2.2.10-1 )  It has 664 permissions.  When I try to access it with
a browser, I get:

Forbidden

You don't have permission to access /file.exe on this server.


The error log says:

[Thu Apr 02 22:45:57 2009] [error] [client 192.168.61.83] (13)Permission
denied: access to /file.exe denied


Not too helpful.  I looked for "exe" in httpd.conf and
/etc/httpd/conf.d/* to no avail.  I created a test.txt file with the
same permissions in the same directory and can see that in my browser.
What gives?

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************

---------------------------------------------------------------------
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 not allowing .exes?

Posted by Eric Covener <co...@gmail.com>.
On Thu, Apr 2, 2009 at 6:49 PM, John Oliver <jo...@john-oliver.net> wrote:
> The error log says:
>
> [Thu Apr 02 22:45:57 2009] [error] [client 192.168.61.83] (13)Permission
> denied: access to /file.exe denied
>

http://wiki.apache.org/httpd//13PermissionDenied

>
> Not too helpful.  I looked for "exe" in httpd.conf and
> /etc/httpd/conf.d/* to no avai

In this case It's not the apache configuration, but the system itself.




-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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 not allowing .exes?

Posted by André Warnier <aw...@ice-sa.com>.
John Oliver wrote:
> I copied a file with a .exe extension to the DocumentRoot ( RHEL5.2,
> httpd-2.2.10-1 )  It has 664 permissions.  When I try to access it with
> a browser, I get:
> 
> Forbidden
> 
> You don't have permission to access /file.exe on this server.
> 
> 
> The error log says:
> 
> [Thu Apr 02 22:45:57 2009] [error] [client 192.168.61.83] (13)Permission
> denied: access to /file.exe denied
> 
> 
> Not too helpful.  I looked for "exe" in httpd.conf and
> /etc/httpd/conf.d/* to no avail.  I created a test.txt file with the
> same permissions in the same directory and can see that in my browser.
> What gives?
> 
Check SELinux setup ?


---------------------------------------------------------------------
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 not allowing .exes?

Posted by Glen Barber <gl...@gmail.com>.
On Thu, Apr 2, 2009 at 6:49 PM, John Oliver <jo...@john-oliver.net> wrote:
> I copied a file with a .exe extension to the DocumentRoot ( RHEL5.2,
> httpd-2.2.10-1 )  It has 664 permissions.  When I try to access it with
> a browser, I get:
>
> Forbidden
>
> You don't have permission to access /file.exe on this server.
>

Does the webserver user have permission?  *Who* (user/group) has
control of the file?

-- 
Glen Barber

---------------------------------------------------------------------
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