Comments (4)
Need more info, I don't understand exactly what the problem is.
from yaws.
With my normal server configuration:
<server localhost>
port = 8080
listen = 0.0.0.0
deflate = true
docroot = /home/dev/hp
appmods = </, conductor>
</server>
Using the appmod file:
$ cat conductor.erl
-module(conductor).
-include("yaws_api.hrl").
-export([out/1]).
out(A) -> {yssi, "test.yaws"}.
And in the docroot folder I have:
$ cat test.yaws
<erl>
out(A) -> {html, "this is test.yaws in docroot"}.
</erl>
Calling the appmod gives me no results from the yssi:
$ curl http://127.0.0.1:8080/
$
However if I changes
appmods = </, conductor> to appmods = <myappmod, conductor>
And calls the appmod, the yssi works:
$ curl http://127.0.0.1:8080/myappmod
this is test.yaws in docroot
$
So in short returning {yssi, Filename} values from an appmod that uses / as the trigger does not work.
from yaws.
Thanks, good report now. I'll try to make time to have a look at this.
from yaws.
I had a look at this and this is not easy to fix, the return value {yssi, "test.yaws"}
will turn into appmod processing once again since there is an appmod at top.
The code was never written for this case to work.
I'd prefer to not fix this.
Sorry
from yaws.
Related Issues (20)
- Is there any plan to add QUIC support? HOT 1
- tlsv1.3-only server HOT 6
- tlsv1.3 cipher selection HOT 3
- Yaws assumes `error_logger` process always exists and it is a gen_event HOT 7
- Support reproducible builds HOT 5
- JSON-RPC payloads don't need urldecode step HOT 1
- Failed to compile 2.1.1 with Erl22, but 2.1.0 worked HOT 1
- Error on launch application Yaws HOT 4
- Crash Yaws after running HOT 2
- when reconfiguring, no check for changed appmods is done HOT 3
- yaws in NixOS 22.05 for aarch64 gives error during system build HOT 2
- Fail when make install and deterministic build is enabled HOT 3
- build breaks with OTP 27 HOT 2
- Error on building Yaws on Manjaro Linux on Erlang OTP-27 HOT 1
- failed to install qt5
- Do not make fatal inaccessible log file HOT 9
- Can't start Yaws web server on Ubuntu 22 HOT 2
- yaws_config.erl:3563:20: file:pid2name/1 is deprecated and will be removed in OTP 27 HOT 2
- Check that Basic authentication user doesn't contain control characters HOT 1
- Add CI tests for OTP master and maint branches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yaws.