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 <nt_mahm...@yahoo.com> wrote: > 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 > <nt_mahm...@yahoo.com> wrote: > > > > > >>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 > <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/rolls> > SetHandler cgi-script > DirectoryIndex index.cgi > Allow from all > </Directory> > > > According to that document, I have to replace ScriptAlias with something > else. However, I don’t have such thing! So, I changed that to > > <Directory /var/www/html/rocks/7.0> > AddHandler cgi-script cgi py > Options FollowSymLinks Indexes ExecCGI > AllowOverride None > Order allow,deny > Allow from all > </Directory> > <Directory /var/www/html/rocks/7.0/install/rolls> > SetHandler cgi-script > DirectoryIndex index.cgi > Allow from all > </Directory> > > > But the error is still present. > Please let me know which document do you mean. > > Regards, > Mahmood > > > -- Eric Covener cove...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org