Hello,

I am no expert with this, but I was recently playing with getting Mason to
work under FastCGI and this is how I had it set up using a static process.

# Outside of the Vhost
# This configures fastcgi and creates a static process using suexec, so it
# runs as my username.  If you don't need that you can remove the -user and
# -group options as well as the FastCgiWrapper directive.
<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script fcgi

    FastCgiIpcDir /tmp/fcgi_ipc
    FastCgiWrapper On

    FastCgiServer /path/to/handler.fcgi \
        -processes 1 \
        -user bcbailey \
        -group bcbailey \
        -idle-timeout 120
</IfModule>

# Your sites vhost config
<VirtualHost ...>
    ...

    # This prevents people from accessing these.
    <FilesMatch "(\.mas|dhandler|autohandler)$">
        Order allow,deny
        Deny from all
    </FilesMatch>

    # Using this method the handler script can be anywhere.
    AliasMatch (.*\.html$) /path/to/handler.fcgi$1

    # This is another way to do it, but it requires that the handler script
    # be in the web directory.
    #Action html-mason /handler.fcgi
    #<FilesMatch "\.html$">
    #    SetHandler html-mason
    #</FilesMatch>

    ...
</VirtualHost>

I use a slightly modified version of the fastcgi wrapper that is on the
wiki (http://www.masonhq.com/?FastCGI).  If you would like to see it then
let me know and I can provide it, but it's nothing special.

Some sites/documentation that I also found useful when playing with this:
http://www.groovie.org/articles/2004/12/18/fast-cgi-with-html-mason and
the documentation for setting up RT (www.bestpractical) with fastcgi.

Just thought I would share how I did it, as it took me quite a bit of
playing around to get it to work.  If you still have problems you should
show us your apache config and maybe someone can help.

Good luck.

Regards,
Bradley C Bailey


> I have Apache 2.0.55 on Ubuntu with Mason and FastCGI, but can't get it to
> quite work.  I get error can't find mason.fcgi, but the file is in the
> directory where the error says it is not.
>
> thanks!
>
> Mitch Raful, MCSE CCNP
> Network Engineer
> HQMC MCCS
> 3044 Catlin Avenue
> Quantico, VA 22134
> 703-784-5991



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to