Re: RE: [users@httpd] Problem with CGI script

2018-01-06 Thread Mahmood Naderan
OK. The correct thing is to add AddHandler cgi-script .cgi Options FollowSymLinks Indexes ExecCGI DirectoryIndex /rocks/7.0/install/rolls/index.cgi Allow from all Thanks for your help and ideas Eric. Regards, Mahmood

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Eric Covener
http://ce.scu.ac.ir/rocks/7.0/install/rolls/index.cgi returns a 500 error. Troubleshoot it by looking at the logs. On Mon, Jan 1, 2018 at 11:33 AM, Mahmood Naderan wrote: >>Maybe I was unclear. Put it back along with AddHandler cgi-script .cgi >>if you want the subdirs to look like the root. > >

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Mahmood Naderan
>Maybe I was unclear. Put it back along with AddHandler cgi-script .cgi >if you want the subdirs to look like the root. No it is not OK to have something like this ServerName rocks-7-0.my.org DocumentRoot /var/www/html/rocks/7.0     Options FollowSymLinks Indexes ExecCGI     AllowOverr

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Eric Covener
Maybe I was unclear. Put it back along with AddHandler cgi-script .cgi if you want the subdirs to look like the root. On Mon, Jan 1, 2018 at 11:29 AM, Mahmood Naderan wrote: >>I think someone previously told you to undo: >>DirectoryIndex /install/rolls/index.cgi >>But this is what would c

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Mahmood Naderan
>I think someone previously told you to undo: >        DirectoryIndex /install/rolls/index.cgi >But this is what would cause the root index.cgi to be used by the >subdirectoryes. Yes I did that and it only works for the main folder where index.cgi exists.I am thinking about *recursive cgi* confi

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Eric Covener
I think someone previously told you to undo: DirectoryIndex /install/rolls/index.cgi But this is what would cause the root index.cgi to be used by the subdirectoryes. On Mon, Jan 1, 2018 at 11:20 AM, Mahmood Naderan wrote: >>If your app uses *.cgi for CGIs, use AddHandler cgi-script .

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Mahmood Naderan
>If your app uses *.cgi for CGIs, useAddHandler cgi-script .cgi >instead of SetHandler.   Hi, I did that and now the error has beendisappeared. I tried to define alias and wrote“AddHandler cgi-script .py” which seems to be incorrect. Many thanks for yourhelp. Anyway…     The cgi in the m

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Eric Covener
If your app uses *.cgi for CGIs, use AddHandler cgi-script .cgi instead of SetHandler. On Mon, Jan 1, 2018 at 2:06 AM, Mahmood Naderan wrote: > Dear Eric, > Can you explain a bit more on what should I do with the cgi probblem? > > Regards, > Mahmood > > > > > > > > > > On Saturday, December 30, 2

Re: RE: [users@httpd] Problem with CGI script

2017-12-31 Thread Mahmood Naderan
Dear Eric, Can you explain a bit more on what should I do with the cgi probblem? Regards, Mahmood On Saturday, December 30, 2017, 9:12:00 PM GMT+3:30, mahmood n wrote: >You need to scope the SetHandler/AddHandler to just the things that >are actually CGI.  Check the manual.   If

RE: [users@httpd] Problem with CGI script

2017-12-30 Thread mahmood n
>You need to scope the SetHandler/AddHandler to just the things that >are actually CGI. Check the manual. If you mean this topic (https://wiki.apache.org/httpd/DirectoryAsScript) , I already have read that. But don’t know how to apply that to my case. Currently, I have Options FollowSy

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Eric Covener
On Sat, Dec 30, 2017 at 9:49 AM, mahmood n wrote: >>Missing SetHandler cgi-script or similar. > > > > I added “SetHandler cgi-script” above the DirecotryIndex. The web browser > now seems to work fine as I don’t see the traditional folder structure. > > > > What about messages like this in the err

RE: [users@httpd] Problem with CGI script

2017-12-30 Thread mahmood n
>Missing SetHandler cgi-script or similar. I added “SetHandler cgi-script” above the DirecotryIndex. The web browser now seems to work fine as I don’t see the traditional folder structure. What about messages like this in the error.log [Sat Dec 30 18:10:14.142417 2017] [cgi:error] [pid 20329] [

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Eric Covener
Missing SetHandler cgi-script or similar. On Sat, Dec 30, 2017 at 6:14 AM, Mahmood Naderan wrote: >>DirectoryIndex contains a list of files to try, not a full path. >>My guess is that it's supposed to be >>DirectoryIndex index.cgi instead of the path. > > Well I change that to "DirectoryIndex ind

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Mahmood Naderan
>DirectoryIndex contains a list of files to try, not a full path.  >My guess is >that it's supposed to be >DirectoryIndex index.cgi instead of the path. Well I change that to "DirectoryIndex index.cgi", howeverby visiting the url from the web browser, I see the content of index.cgi as a plain tex

Re: [users@httpd] Problem with CGI script

2017-12-29 Thread Gillis J. de Nijs
DirectoryIndex contains a list of files to try, not a full path. My guess is that it's supposed to be DirectoryIndex index.cgi instead of the path. On Fri, Dec 29, 2017 at 11:05 AM, mahmood n wrote: > Hi, > > > > In one the www folders, I have an index.cgi which is a python script. > Problem is

[users@httpd] Problem with CGI script

2017-12-29 Thread mahmood n
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