Mobile app version of vmapp.org
Login or Join
Welton855

: 403 error on index file When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server

@Welton855

Posted in: #403Forbidden #Apache #HttpdConf

When I try to access index.py in my server root through domain/, I get a 403 Forbidden error, but when I can access it through domain/index.py. In my server logs it says "Options ExecCGI is off in this directory: /var/www/index.py". However, my httpd.conf entry for that directory is the same as the ones for other directories, and getting to index.py works fine. My permissions are set to 755 for index.py.

I also tried making a php file and naming it index.php, and it works from both domain/ and domain/index.php.

Here is my httpd.conf entry:

<Directory /var/www>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler cgi-script .py
Options +ExecCGI
DirectoryIndex index.html index.php index.py
</Directory>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

1 Comments

Sorted by latest first Latest Oldest Best

 

@Chiappetta492

This is probably a silly question, but did you restart your web server process after modifying httpd.conf? Sometimes I forget to do that...

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme