|
|
| Author |
Message |
< Yaws mailing list ~ arg_rewrite_mod called several times |
| Guest |
Posted: Fri Feb 09, 2007 6:09 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Sat Feb 10, 2007 12:09 pm |
|
|
|
Guest
|
> It seems to me that an arg_rewrite_mod may be called several times for
one
> http access.
> I have an arg_rewrite_mod in which I put an io:format statement for test
> purposes and it turned out that it sometimes prints several times for one
> http access.
> Is this an expected behaviour?
> I am not quite sure when it happens, but I think it has something to do if
> there is a deep path. That is http://xxxx/index.html prints once while
> http://xxxxx/aaa/bbb/ccc/index.html prints several times.
>
> /Mikael
>
I'm not seeing this behaviour..
Although if you access a directory without a trailing slash on the URL -
there'll be a redirect issued by the server and therefore another hit.
Do you think maybe that's what you're seeing?
With something like:
io:fwrite("----->rewrite_mod called for request: ~p\n",[ARG#arg.req]),
at the top of arg_rewrite - do you see a URL hit twice but first without a
slash and then with?
This wouldn't explain why you'd get multiple printouts for a file access
such as http://xxxxx/aaa/bbb/ccc/index.html - so maybe your issue is
different.
Anyway- this raises an issue with the dir listings that yaws_ls spits out.
The URLs it creates for directories don't have a trailing slash - so as you
click down through each folder there's an extra round trip to the server due
to the redirections. No big deal - but not efficient. I'll take a look at
modifying that.
Cheers,
Julian
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Feb 12, 2007 7:36 am |
|
|
|
Guest
|
Sat 10 Feb 2007 13:09 julian@webpub.net wrote:
> > It seems to me that an arg_rewrite_mod may be called several times for
> > one http access.
>> ....
>
> I'm not seeing this behaviour..
> Although if you access a directory without a trailing slash on the URL -
> there'll be a redirect issued by the server and therefore another hit.
> Do you think maybe that's what you're seeing?
> With something like:
> io:fwrite("----->rewrite_mod called for request: ~p\n",[ARG#arg.req]),
Yes, I think you are right. With a simple test arg_rewrite module and no
application behind (ErlyWeb) the behaviour is gone.
Thanks
Mikael
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|