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

[users@httpd] apr_bucket_split data remains

2018-01-01 Thread Simon Walter
I am interested in how apr_bucket_split(e, point) works. It seems that after splitting e, it still contains everything after point. Only when flattened is this data "removed" from e. If that is correct, then is it also correct to assume that I would need to use apr_bucket_read with snprintf and m

Re: [users@httpd] apr_bucket_split data remains

2018-01-01 Thread Eric Covener
On Mon, Jan 1, 2018 at 8:37 AM, Simon Walter wrote: > I am interested in how apr_bucket_split(e, point) works. > > It seems that after splitting e, it still contains everything after > point. Only when flattened is this data "removed" from e. > > If that is correct, then is it also correct to assu

Re: [users@httpd] apr_bucket_split data remains

2018-01-01 Thread Simon Walter
On 01/01/2018 10:44 PM, Eric Covener wrote: > On Mon, Jan 1, 2018 at 8:37 AM, Simon Walter wrote: >> I am interested in how apr_bucket_split(e, point) works. >> >> It seems that after splitting e, it still contains everything after >> point. Only when flattened is this data "removed" from e. >> >>

Re: [users@httpd] apr_bucket_split data remains

2018-01-01 Thread Eric Covener
> I see such code as the example you gave in various places. However, this > bit of code (attached) shows me that I cannot simply printf the data. > Again, I am probably doing something wrong. > The output looks right to me but maybe I am misunderstanding the intent of the example. output: _ASCI

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
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
>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
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
>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
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. > >