Aug 10, 2012; 21:00
Brad Lindsay
LassoApp At Root URI
I'm working on a LassoApp and I'm trying to get it to run without needing everything prefixed by "/lasso9/app_name". I've looked at the documentation (http://www.lassosoft.com/Language-Guide-Lasso-Apps), but it appears to be from pre mod_lasso9. Here's my stab at what what I've come up with in Apache:
<Location ~ "^.*/[^./]{0,8}$">
SetHandler lasso9-handler
Order allow,deny
Allow from all
</Location>
RewriteEngine on
RewriteRule ^(.*)$ - [E=LASSOSERVER_APP_PREFIX:/lasso9/app_name]
If I call a url like "http://example.com/login" I get this:
An unhandled failure during a web request
Error Code: -9945
Error Msg: The path '/login.html' was not found
Error Stack:
13:2 error.lasso
77:3 lassoapp.lasso
116:17 web_response.lasso
137:13 web_response.lasso
126:4 web_response.lasso
122:4 web_response.lasso
122:4 web_response.lasso
239:19 web_response.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
121:3 web_response.lasso
239:19 web_response.lasso
229:3 web_response.lasso
227:6 web_response.lasso
664:17 fastcgi.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
663:2 fastcgi.lasso
287:16 fastcgi.lasso
283:3 fastcgi.lasso
275:2 fastcgi.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
281:2 fastcgi.lasso
275:2 fastcgi.lasso
599:5 fastcgi.lasso
599:5 fastcgi.lasso
598:4 fastcgi.lasso
591:4 fastcgi.lasso
589:21 fastcgi.lasso
And if I just call something like "http://example.com", I get this:
An unhandled failure during a web request
Error Code: -9945
Error Msg: Relative path not permitted.
Error Stack:
13:2 error.lasso
44:4 lassoapp.lasso
42:2 lassoapp.lasso
116:17 web_response.lasso
137:13 web_response.lasso
126:4 web_response.lasso
122:4 web_response.lasso
122:4 web_response.lasso
239:19 web_response.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
121:3 web_response.lasso
239:19 web_response.lasso
229:3 web_response.lasso
227:6 web_response.lasso
664:17 fastcgi.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
663:2 fastcgi.lasso
287:16 fastcgi.lasso
283:3 fastcgi.lasso
275:2 fastcgi.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
281:2 fastcgi.lasso
275:2 fastcgi.lasso
599:5 fastcgi.lasso
599:5 fastcgi.lasso
598:4 fastcgi.lasso
591:4 fastcgi.lasso
589:21 fastcgi.lasso
Before I go any farther, I figured I'd see if anyone has any pointers on how to get this to work.
Thanks,
Brad
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 10, 2012; 21:00
Jonathan Guthrie
Re: LassoApp At Root URI
This is the apache config file for a VHost on one of our servers doing exactly this, Lasso 9.2.3:
DocumentRoot "/var/www/vhosts/sitename/site"
ServerName sitename
<Directory "/var/www/vhosts/sitename/site">
allow from all
Options +Indexes
</Directory>
RewriteEngine on
RewriteRule ^/lasso9/(.*) /lasso9/$1 [NC,PT]
RewriteRule ^(.*) /lasso9/lassoappname$1 [NC,PT,E=LASSOSERVER_APP_PREFIX:/]
Let me know if modifying this to working with your app name works and I'll get someone to update the docs accordingly (i see small differences, not sure why the one documented is diff to what we are using ourselves!)
On 2012-08-10, at 9:43 PM, Brad Lindsay <blindsay@ncha.org> wrote:
> I'm working on a LassoApp and I'm trying to get it to run without needing everything prefixed by "/lasso9/app_name". I've looked at the documentation (http://www.lassosoft.com/Language-Guide-Lasso-Apps), but it appears to be from pre mod_lasso9. Here's my stab at what what I've come up with in Apache:
>
> <Location ~ "^.*/[^./]{0,8}$">
> SetHandler lasso9-handler
> Order allow,deny
> Allow from all
> </Location>
>
> RewriteEngine on
> RewriteRule ^(.*)$ - [E=LASSOSERVER_APP_PREFIX:/lasso9/app_name]
>
>
> If I call a url like "http://example.com/login" I get this:
>
> An unhandled failure during a web request
> Error Code: -9945
> Error Msg: The path '/login.html' was not found
> Error Stack:
> 13:2 error.lasso
> 77:3 lassoapp.lasso
> 116:17 web_response.lasso
> 137:13 web_response.lasso
> 126:4 web_response.lasso
> 122:4 web_response.lasso
> 122:4 web_response.lasso
> 239:19 web_response.lasso
> 182:2 error.lasso
> 182:2 error.lasso
> 176:2 error.lasso
> 175:2 error.lasso
> 121:3 web_response.lasso
> 239:19 web_response.lasso
> 229:3 web_response.lasso
> 227:6 web_response.lasso
> 664:17 fastcgi.lasso
> 182:2 error.lasso
> 182:2 error.lasso
> 176:2 error.lasso
> 175:2 error.lasso
> 663:2 fastcgi.lasso
> 287:16 fastcgi.lasso
> 283:3 fastcgi.lasso
> 275:2 fastcgi.lasso
> 182:2 error.lasso
> 182:2 error.lasso
> 176:2 error.lasso
> 175:2 error.lasso
> 281:2 fastcgi.lasso
> 275:2 fastcgi.lasso
> 599:5 fastcgi.lasso
> 599:5 fastcgi.lasso
> 598:4 fastcgi.lasso
> 591:4 fastcgi.lasso
> 589:21 fastcgi.lasso
>
>
> And if I just call something like "http://example.com", I get this:
> An unhandled failure during a web request
> Error Code: -9945
> Error Msg: Relative path not permitted.
> Error Stack:
> 13:2 error.lasso
> 44:4 lassoapp.lasso
> 42:2 lassoapp.lasso
> 116:17 web_response.lasso
> 137:13 web_response.lasso
> 126:4 web_response.lasso
> 122:4 web_response.lasso
> 122:4 web_response.lasso
> 239:19 web_response.lasso
> 182:2 error.lasso
> 182:2 error.lasso
> 176:2 error.lasso
> 175:2 error.lasso
> 121:3 web_response.lasso
> 239:19 web_response.lasso
> 229:3 web_response.lasso
> 227:6 web_response.lasso
> 664:17 fastcgi.lasso
> 182:2 error.lasso
> 182:2 error.lasso
> 176:2 error.lasso
> 175:2 error.lasso
> 663:2 fastcgi.lasso
> 287:16 fastcgi.lasso
> 283:3 fastcgi.lasso
> 275:2 fastcgi.lasso
> 182:2 error.lasso
> 182:2 error.lasso
> 176:2 error.lasso
> 175:2 error.lasso
> 281:2 fastcgi.lasso
> 275:2 fastcgi.lasso
> 599:5 fastcgi.lasso
> 599:5 fastcgi.lasso
> 598:4 fastcgi.lasso
> 591:4 fastcgi.lasso
> 589:21 fastcgi.lasso
>
>
> Before I go any farther, I figured I'd see if anyone has any pointers on how to get this to work.
>
> Thanks,
> Brad
Jono
----------------------------
Jonathan Guthrie
jono@lassosoft.com
LassoSoft Inc.
+1 888-286-7753 ext 708
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 10, 2012; 21:00
Brad Lindsay
Re: LassoApp At Root URI
On Aug 10, 2012, at 9:54 PM, Jonathan Guthrie <Jono@lassosoft.com> wrote:
> This is the apache config file for a VHost on one of our servers doing exactly this, Lasso 9.2.3:
>
> DocumentRoot "/var/www/vhosts/sitename/site"
> ServerName sitename
> <Directory "/var/www/vhosts/sitename/site">
> allow from all
> Options +Indexes
> </Directory>
> RewriteEngine on
> RewriteRule ^/lasso9/(.*) /lasso9/$1 [NC,PT]
> RewriteRule ^(.*) /lasso9/lassoappname$1 [NC,PT,E LASSOSERVER_APP_PREFIX:/]
>
> Let me know if modifying this to working with your app name works and I'll get someone to update the docs accordingly (i see small differences, not sure why the one documented is diff to what we are using ourselves!)
Worked like a charm =97 thanks! (Now if I could only get the webserver in LassoLab to do it too ;-D)
Brad
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>