Under CGIHandler, I use .htaccess file as below to make it work fine.

for example:
RewriteEngine on

RewriteCond %{REQUEST_URI} !/cgi-bin/
RewriteRule "(.*\.html)$" "/cgi-bin/mason_handler.cgi/$1" [QSA,PT]

#ErrorDocument 404 "/cgi-bin/mason_handler.cgi/${REDIRECT_URL}"

<FilesMatch "\.html$">
Action html-mason /cgi-bin/mason_handler.cgi
AddHandler html-mason .html
</FilesMatch>
<FilesMatch "^/cgi-bin/">
RemoveHandler .html
</FilesMatch>
<FilesMatch "(\.mpl|handler)$">
Order allow,deny
Deny from all
</FilesMatch>

/Heng


David Silva wrote:
> Hi, that was my first try..
>
> html-mason with extension .html
>
> but the result is http://davidslv.com/mason.html
>
> 2010/1/29 Beckheng Lam <bi.ken....@gmail.com
> <mailto:bi.ken....@gmail.com>>
>
>     Hi,
>     I name it 'html-mason'.
>
>     /Heng
>
>     David Silva wrote:
>>     Hi, i'm with some troubles with my hosting, i can't acess the
>>     server by ssh, neither change httpd.conf or insert an handler.pl
>>     <http://handler.pl>.
>>
>>     The only thing i have is Cpanel and the sysadmin says i can
>>     configure it at my own risk, in Cpanel i have the Apache Handlers
>>     option, but i don't know what is the name of the handler to write
>>     on it.
>>
>>     Hope you can help me!
>>
>>     Thank you
>>
>>
>>
>>     -- 
>>     David Silva - http://davidslv.com/
>>     ------------------------------------------------------------------------
>>
>>     
>> ------------------------------------------------------------------------------
>>     The Planet: dedicated and managed hosting, cloud storage, colocation
>>     Stay online with enterprise data centers and the best network in the 
>> business
>>     Choose flexible plans and management services without long-term contracts
>>     Personal 24x7 support from experience hosting pros just a phone call 
>> away.
>>     http://p.sf.net/sfu/theplanet-com
>>     ------------------------------------------------------------------------
>>
>>       
>
>
>
>
> -- 
> David Silva - http://davidslv.com/


-- 
Perl乐事 -- http://www.perlersh.org
我的博客 -- http://www.perlersh.org/blog.html
揭谛揭谛,波罗揭谛,波罗僧揭谛,菩提萨婆诃。

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to