top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Apache Error: Options ExecCGI is off in this directory

0 votes
1,650 views

with my python script running, but I always get a 403-Error. And apache logfile says:

Options ExecCGI is off in this directory:/home/user12/cgi-bin/showblogs.py

apache configuration:

AllowOverride None
AddType application/python .py
DirectoryIndex index.html index.htm index.php index.py
Options +ExecCGI Indexes FollowSymLinks MultiViews
AddHandler cgi-script .cgi .pl .py
AllowOverride All
Order allow,deny
allow from all

So what is missing or wrong here?

posted Aug 16, 2013 by Bob Wise

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

If it's the 2.4 must change "allow from all" to "Require all granted".

answer Aug 16, 2013 by anonymous
Similar Questions
0 votes

I want to allow a directory " /var/www/html/ldap" to two users according to IPs (192.168.1.2 192.168.1.7):

 Order allow,deny
 Allow from 192.168.1.2 192.168.1.7
 Satisfy any
 AuthName "LDAP Authentication"
 AuthType Basic

 AuthBasicProvider ldap
 AuthzLDAPauthoritative off
 AuthLDAPURL ldap://192.168.1.3/dc=example,dc=com?uid?sub?(objectClass=*)
 Require valid-user

but I don't want to allow a sub directory to 192.168.1.7 (I want it to be allowed only to 192.168.1.2):

I have tried to add:

 Order allow,deny
 Allow from 192.168.1.2
 Satisfy any
 AuthName "LDAP Authentication"
 AuthType Basic

 AuthBasicProvider ldap
 AuthzLDAPauthoritative off
 AuthLDAPURL ldap://192.168.1.3/dc=example,dc=com?uid?sub?(objectClass=*)
 Require valid-user

but it seems that 192.168.1.7 can reach to manager directory because it is a part of ldap directory, how can I forbid this?

+1 vote

Apache/Tomcat (by default) does not allow symbolic linking (nice as it can cross mounted file systems) except in the top apache/lib directory. I use hard links in the Application/WEB-INF/lib directories to reduce copying and help me manage things.

HOWEVER, some applications have special needs - e.g. pictures. You don't want to always distribute these with the release of the application (Application.war file), so symbolic links are the way to go (except for MS land, sorry). The nice solution to this is:

.../webapps/Application/WEB-INF/context.xml
which must contain at least the two below lines:

However this allows ALL symbolic linking in the Application directory. I agree with the developers that this is dangerous.

Is there some way to allow linking in just ONE sub-directory of the Application?
- e.g. .../webapps/Application/images

This would allow all I need to have local images for the application without endangering other things using a symbolic link.

+2 votes

I want the images should be accessible as part of http page only not by any other mean, no clue any suggestion would have great help.

+2 votes

I have apache server in my local network installed from apt-get install apache2, but my php version is old version and I divided to make compile the apache and add php5.4 module.I want compile this apache from source code httpd-2.4.10 version, my ./configure this:

./configure --prefix=/usr/local/apache2  --enable-so --sysconfdir=/etc/httpd/conf

this work for default apache webserver, but my vhosts don't work, they are status 403 "dont forbidden access".
not want to do different from apache in apt-get install, but I want apache and PHP lasts releases from my server.

How to make vhosts config in apache compiled from source code httpd-2.4.10, i need resolve this "problem" for my environment.

+2 votes

I am trying to compile httpd-2.4.7 from source, but i get the following error

"#error mod_ssl requires OpenSSL 0.9.8a or later"

But my installed openssl version is openssl-1.0.1e and I have specified it --with-ssl option.
Any suggestions?

...