|
|
| Author |
Message |
|
| ugglan |
Posted: Tue Mar 13, 2007 8:53 pm |
|
|
|
User
Joined: 17 Sep 2006
Posts: 16
|
I'm using the latest yaws checked out from CVS and I'm having trouble with appmods on "/". I seem to recall that I've made this work previously.
Example appmod I'm using as a minimal test:
-module(smallmod).
-include("/usr/local/lib/yaws/include/yaws_api.hrl").
-export([out/1]).
out(A)-> |
|
|
| Back to top |
|
| ugglan |
Posted: Tue Mar 13, 2007 9:59 pm |
|
|
|
User
Joined: 17 Sep 2006
Posts: 16
|
Ok, I had a lookaround in the server code and I noticed that there seems to be a work in progress on virtual directories and appmods that might be the reason for the problems I described, so I downloaded 1.68 and appmods on "/" works fine on that release. One small inconsistency remains in the appmoddata-value though, on a "named" appmod things behave as expected:
1. http://test.com/small |
|
|
| Back to top |
|
| Guest |
Posted: Wed Mar 14, 2007 3:27 pm |
|
|
|
Guest
|
>The main problems occur when I try a "root" appmod with "appmods = <"/",smallmod>":
Sorry - yes - |
|
|
| Back to top |
|
| ugglan |
Posted: Wed Mar 14, 2007 7:33 pm |
|
|
|
User
Joined: 17 Sep 2006
Posts: 16
|
Yep, tried out the updated cvs-version, root-appmods work now, thanks!
Had a look at yaws_showarg, very useful! (You hadn't added it to the makefile yet though so it doesn't get compiled in by default)
I get these results now, not quite the same as
appmods = <"/small",yaws_showarg>
http//test.com/small |
|
|
| Back to top |
|
| ugglan |
Posted: Wed Mar 14, 2007 7:38 pm |
|
|
|
User
Joined: 17 Sep 2006
Posts: 16
|
(My last mail was sent before I could complete it, sorry: here is the complete version)
Yep, tried out the updated cvs-version, root-appmods work now, thanks! Had a look at yaws_showarg, very useful! (You hadn't added it to the makefile yet though so it doesn't get compiled in by default)
I get these results now, marked changes from 1.68 with **
appmods = <"/small",yaws_showarg>
**http//test.com/small |
|
|
| 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
|
|
|