Got knop set up

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Got knop set up

stevepiercy
WOO-HOO!  I've got it up and running.

I'd like to use the path navigation method to have sexy URLs.  How do I set up Apache properly?  The list archive does not have specific instructions.

Also I am running Knop from the web root, so would this be the proper atbegin?  I don't think this will work (I removed 'knop/' from the parameters since I'm running from web root):

define_atbegin: {
if: response_filepath -> (endswith: '.lasso') || response_filepath -> (endswith: '.lassoapp');
// don't do anything for normal .lasso requests
else: response_filepath -> (beginswith: '/');
// run site
$__HTML_REPLY__ = include: '/index.lasso';
abort;
/if;
}

--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy               Web Site Builder               Soquel, CA
<[hidden email]>                   <http://www.StevePiercy.com>

#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lists.montania.se/Lists/knop/
(log in with your email and ConfirmationID as password, send message to
<[hidden email]> to get that ID)
Project homepage http://montania.se/projects/knop/
AIM chatroom knop aim:gochat?roomname=knop

Reply | Threaded
Open this post in threaded view
|

Re: Got knop set up

Jolle Carlestam-2
I have this Apache rules:

         # deny all source code files for the pageblocks framework
         # must specify something that covers all uppler/lower case  
variations
         # the opening FilesMatch directive needs to be all on one line
         #
        <FilesMatch "\.([iI][nN][cC]|[dD][sS][pP]|[lL][gG][cC]|[cC]
[tT][aA][gG]|[cC][tT][yY][pP]|[cC][nN][fF][gG])$">
                Order allow,deny
                Deny from all
        </FilesMatch>

        LogLevel crit
         # send files with no extension to Lasso
        <LocationMatch "^[^\.]+$">
                SetHandler lasso8-handler
        </LocationMatch>

         # send folders with no file to Lasso
        <LocationMatch "^[^\.]+/$">
                SetHandler lasso8-handler
        </LocationMatch>

And this atBegin handler in a file in sites LassoStartup:
<?LassoScript
define_atbegin: {
        (file_exists: '/_jina/urlhandler.lgc') ?
                include: '/_jina/urlhandler.lgc';
};
?>

The urlhandler.lgc looks like this:
<?LassoScript
// this file is called by the atbegin handler, so it is executed
// before any page is being processed.

if: response_filepath -> (endswith: '.lasso') || response_filepath ->  
(endswith: '.lassoapp');
// don't do anything for normal .lasso requests

else;
// run site
        $__HTML_REPLY__ = include: '/index.lasso';
        abort;
/if;
?>

HDB
Jolle

10 mar 2007 kl. 07.02 skrev Steve Piercy - Web Site Builder:

> WOO-HOO!  I've got it up and running.
>
> I'd like to use the path navigation method to have sexy URLs.  How  
> do I set up Apache properly?  The list archive does not have  
> specific instructions.
>
> Also I am running Knop from the web root, so would this be the  
> proper atbegin?  I don't think this will work (I removed 'knop/'  
> from the parameters since I'm running from web root):
>
> define_atbegin: {
> if: response_filepath -> (endswith: '.lasso') || response_filepath -
> > (endswith: '.lassoapp');
> // don't do anything for normal .lasso requests
> else: response_filepath -> (beginswith: '/');
> // run site
> $__HTML_REPLY__ = include: '/index.lasso';
> abort;
> /if;
> }
>
> --steve
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                   <http://www.StevePiercy.com>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list <[hidden email]>.
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
> List archive http://lists.montania.se/Lists/knop/
> (log in with your email and ConfirmationID as password, send  
> message to
> <[hidden email]> to get that ID)
> Project homepage http://montania.se/projects/knop/
> AIM chatroom knop aim:gochat?roomname=knop


#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lists.montania.se/Lists/knop/
(log in with your email and ConfirmationID as password, send message to
<[hidden email]> to get that ID)
Project homepage http://montania.se/projects/knop/
AIM chatroom knop aim:gochat?roomname=knop


Reply | Threaded
Open this post in threaded view
|

Re: Got knop set up

Johan Solve-2
In reply to this post by stevepiercy
At 22.02 -0800 2007-03-09, Steve Piercy - Web Site Builder wrote:

>Also I am running Knop from the web root, so would this be the proper atbegin?  I don't think this will work (I removed 'knop/' from the parameters since I'm running from web root):
>
>define_atbegin: {
>if: response_filepath -> (endswith: '.lasso') || response_filepath -> (endswith: '.lassoapp');
>// don't do anything for normal .lasso requests
>else: response_filepath -> (beginswith: '/');
>// run site
>$__HTML_REPLY__ = include: '/index.lasso';
>abort;
>/if;
>}

That looks right yes. The else condition is actually superfluous in this case since every response_filepath will begin with /.

Don't forget to change the navmethod var in cfg__global.inc.

--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lists.montania.se/Lists/knop/
(log in with your email and ConfirmationID as password, send message to
<[hidden email]> to get that ID)
Project homepage http://montania.se/projects/knop/
AIM chatroom knop aim:gochat?roomname=knop