Hi,
In one the www folders, I have an index.cgi which is a python script. Problem is that, by visiting that url, the cgi script is not run and I tried a lot to find the problem. Still I have stuck at that.
The content of the index.cgi is https://github.com/
rocksclusters/roll-server/ blob/master/index.cgi
and the path to that in my web server is
mahmood@ce:~$ ls -l /var/www/html/rocks/7.0/
install/rolls/ total 52
drwxr-xr-x 3 root root 4096 Dec 2 18:09 area51
drwxr-xr-x 3 root root 4096 Dec 2 05:53 CentOS
drwxr-xr-x 3 root root 4096 Dec 2 05:02 core
drwxr-xr-x 3 root root 4096 Dec 2 09:35 fingerprint
drwxr-xr-x 3 root root 4096 Dec 2 08:35 ganglia
drwxr-xr-x 3 root root 4096 Dec 2 09:20 hpc
-rwxr-xr-x 1 root root 654 Dec 26 23:17 index.cgi
drwxr-xr-x 3 root root 4096 Dec 2 08:25 kernel
drwxr-xr-x 3 root root 4096 Dec 2 09:37 kvm
drwxr-xr-x 3 root root 4096 Dec 2 09:48 openvswitch
drwxr-xr-x 3 root root 4096 Dec 2 10:29 perl
drwxr-xr-x 3 root root 4096 Dec 2 09:35 python
drwxr-xr-x 3 root root 4096 Dec 2 09:54 sge
As you can see in the picture at https://pasteboard.co/H0h8wWe.
jpg the folder structure is shown in the browser which is a sign of run error for the cgi script.
The folder structure should be similar to http://central-7-0-x86-64.
rocksclusters.org/install/ rolls/
The virtualhost added to /etc/apache2/sites-enabled/
000-default.conf looks like this
<VirtualHost *:80>
ServerName rocks-7-0.my.org
DocumentRoot /var/www/html/rocks/7.0
</VirtualHost>
<Directory /var/www/html/rocks/7.0>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/html/rocks/7.0/
install/sbin> AllowOverride None
#SSLRequireSSL
#SSLVerifyClient None
Allow from all
</Directory>
# allow all access to the rolls RPMS
<Directory /var/www/html/rocks/7.0/
install/rolls> DirectoryIndex /install/rolls/index.cgi
Allow from all
</Directory>
Any idea about that?
Regards,
Mahmood