You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Smith <ds...@gmail.com> on 2010/05/05 16:17:45 UTC

[users@httpd] SCGI for specific extensions

I created a custom SCGI process and I'd like to only pass requests with a
.gsp or .gspx extension to be handled by the process..
The problem I'm having is that it I've not been able to get specific request
sent to the scgi process by extension, but rather I've only been able to
tell it to process everything and to exclude certain extension and folder.
This doesn't work well, because I don't know everything I will need to
exclude.

I just want .gsp and .gspx files to be handled via SCGI.  Any suggestions ?

My lighttpd config is here, and it works:
http://code.google.com/p/easygsp/wiki/InstallEasyGSP

         LoadModule scgi_module modules/mod_scgi.so
         SCGIMount / 127.0.0.1:4444

         <locationmatch
(\.js|\.gif|\.jpg|\.ico|\.css|\.swf|\.png|\.tiff|\.jpeg|\.json|\.zip|\.tar\.gz|\.mp3|\.doc)+$>
             SCGIHandler Off
         </locationmatch>
         <locationmatch "/images|css|js|docs/">
             SCGIHandler Off
         </locationmatch>

         <IfModule dir_module>
             DirectoryIndex index.gspx index.gsp index.html
         </IfModule>

         # point to $EASYGSP_HOME/webapps
         DocumentRoot "/easygsp/webapps"

         # point to $EASYGSP_HOME/webapps
         <Directory "/easygsp/webapps">
           Options FollowSymLinks

           AllowOverride None

           Order allow,deny
           Allow from all
         </Directory>

Re: [users@httpd] SCGI for specific extensions

Posted by Eric Covener <co...@gmail.com>.
> This doesn't work well, because I don't know everything I will need to
> exclude.

>          <locationmatch
> (\.js|\.gif|\.jpg|\.ico|\.css|\.swf|\.png|\.tiff|\.jpeg|\.json|\.zip|\.tar\.gz|\.mp3|\.doc)+$>
>              SCGIHandler Off

Can't help re: SCGI, but you get out of the blacklist scheme with e.g.:

<LocationMatch ^ >
SCGIHandler off
</LocationMatch>

<LocationMatch \.(scgi|otherextensionyouwant|foo|bar)$>
SCGIHandler on
</LocationMatch>


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org