Hi All,
I'm trying to define a new ScriptAlias to run cgi from another folder. So I have created a config file and placed it in /etc/httpd/conf.d/apache.gis.conf
ScriptAlias /mapserver/ /home/gis/bin/
<Directory "/home/gis/bin/">
AllowOverride None Options None Order allow,deny Allow from all </Directory>
and in /home/gis/bin/ I have
[gis@mapserver-fc14 ~]$ ls /home/gis/bin/ -la total 8312 drwxrwxr-x. 2 gis gis 4096 Nov 18 14:34 . drwx------. 29 gis gis 4096 Nov 18 14:29 .. -rwxr-xr-x. 1 gis gis 93 Nov 18 14:34 helloworld.cgi -rwxrwxr-x. 1 gis gis 4247004 Nov 18 10:20 mapserv -rwxr-xr-x. 1 gis gis 4247004 Nov 18 14:34 test -rw-r--r--. 1 gis gis 164 Nov 18 10:20 tilecache.fcgi [gis@mapserver-fc14 ~]$
But when I'm trying to access to http://myserver/mapserver/myscript I'm getting
Forbidden
You don't have permission to access /mapserver/mapserv on this server. ------------------------------ Apache/2.2.17 (Fedora) Server at 10.0.1.61 Port 80
Any ideas ?
On Thu, 18 Nov 2010 15:50 +0000, "Sebastian E. Ovide" sebastian.ovide@gmail.com wrote:
Hi All,
I'm trying to define a new ScriptAlias to run cgi from another folder. So I have created a config file and placed it in /etc/httpd/conf.d/apache.gis.conf
ScriptAlias /mapserver/ /home/gis/bin/
<Directory "/home/gis/bin/">
AllowOverride None Options None Order allow,deny Allow from all</Directory>
and in /home/gis/bin/ I have
[gis@mapserver-fc14 ~]$ ls /home/gis/bin/ -la total 8312 drwxrwxr-x. 2 gis gis 4096 Nov 18 14:34 . drwx------. 29 gis gis 4096 Nov 18 14:29 .. -rwxr-xr-x. 1 gis gis 93 Nov 18 14:34 helloworld.cgi -rwxrwxr-x. 1 gis gis 4247004 Nov 18 10:20 mapserv -rwxr-xr-x. 1 gis gis 4247004 Nov 18 14:34 test -rw-r--r--. 1 gis gis 164 Nov 18 10:20 tilecache.fcgi [gis@mapserver-fc14 ~]$
But when I'm trying to access to http://myserver/mapserver/myscript I'm getting
Forbidden
You don't have permission to access /mapserver/mapserv on this server.
Apache/2.2.17 (Fedora) Server at 10.0.1.61 Port 80
Any ideas ?
Sebastian E. Ovide
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Check your selinux settings. If it's enabled and enforcing, look at the context for the directory and files:
ls -Z /home/gis/bin
It needs to allow the apache user to execute the script. See your /var/www directory.
Also you need to have an +ExecCGI in the config -- you can put it in the Directory section.