Hi Ryan,
This is highly server-specific. For Apache you can use mod_rewrite to
rewrite URLs of the second form to the first form. With Xavante you
can add a rules in your xavante/config.lua:
{
match = {"^/subdir$" },
with = wsapi.xavante.makeHandler (orbit_app, "/subdir", docroot,
app_path)
},
{
match = {"^/subdir/.*$" },
with = wsapi.xavante.makeHandler (orbit_app, "/subdir", docroot,
app_path)
}
where orbit_app is the module of your Orbit app (so you have to
require it in your xavante/config.lua), docroot is your Xavante
document root, and app_path is the path where your app is located.
Notice that you lose automatic reloading in case of changes to your
app's .ws script, so I don't recommend it for develoment. But if you
are making all your links with web:link and web:static_link then your
app should work no matter how you are launching it.
--
Fabio Mascarenhas
On Wed, Oct 14, 2009 at 6:33 PM, Ryan Pusztai <[email protected]> wrote:
> Hi,
>
> I am wondering if there is a way to clean up the url the user has to type in
> when using Orbit?
>
> Example:
> Default: http://something.com/subdir/myapp.ws/search
> After Clean up: http://something.com/subdir/search
>
> I am using Apache and fastcgi and Xavante. I use Apache for production and
> Xavante for developing and testing. Apache is more important to me than
> Xavante, but I am wondering how I could do it on both if possible.
> --
> Regards,
> Ryan
>
> _______________________________________________
> Kepler-Project mailing list
> [email protected]
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> http://www.keplerproject.org/
>
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/