Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Serving .yaws files under .html URLs

Guest
Posted: Tue Oct 10, 2006 5:54 am Reply with quote
Guest
I have an existing site that has its pages named like
http://example.com/foo.html

That is, plain .html files under /. The pages are dynamically
generated (currently with apache and mason, if you want to know).
>From what I've read so far, it would seem that yaws puts a rather hard
limit on having the .yaws suffix on the yaws generated dynamic
content. If I were to switch over to using yaws, I would like to not
change my URL scheme and invalidate any external links to my site.

Is there a way to trick yaws into parsing the embedded code in .html
files too? For my purposes, it would be enough to have this happen to
all the URLs served by the server.

If this were apache, I would be (and am) using something like this:
<LocationMatch "^/+[^/]+\.html$">
Sethandler yaws
</LocationMatch>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
noss
Posted: Tue Oct 10, 2006 8:11 am Reply with quote
User Joined: 09 Oct 2005 Posts: 290
arg_rewrite_mod = Module
It is possible to install a module that rewrites all the Arg
#arg{} records at an early stage in the yaws server. This can
be used to do various things such as checking a cookie, rewrit-
ing paths etc.

On 10/10/06, Kari Pahula <kaol@iki.fi> wrote:
> If this were apache, I would be (and am) using something like this:
> <LocationMatch "^/+[^/]+\.html$">
> Sethandler yaws
> </LocationMatch>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum