Hello! So I decided I wanted to try some CGI... and it's not working out well at the moment, any help would be greatly appreciated!
So essentially in my 000-default virtual host config file I have this:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/apott/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/apott/www>
Options +ExecCGI Indexes FollowSymLinks Includes
AddHandler cgi-script .cgi .d .py
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
The CGI scripts I'm trying to use are kept in the specified DocumentRoot
So currently whenever I go to a CGI script I just get a 403 forbidden error, but if I put the +ExecCGI here: Options +ExecCGI Indexes FollowSymLinks Includes
at the end of the line I get a 500 server error, if that means anything to anyone.
Any help will help tons! Thanks in advance.