Questions tagged [yaws]

Yaws is a high perfomance HTTP 1.1 webserver particularly well suited for dynamic-content web applications.

Yaws is a high performance HTTP 1.1 web server particularly well suited for dynamic-content web applications. Two separate modes of operation are supported:

  • Standalone mode where Yaws runs as a regular web server daemon. This is the default mode.
  • Embedded mode where Yaws runs as an embedded web server in another Erlang application.

Yaws is entirely written in Erlang, and furthermore it is a multi-threaded web server where one Erlang lightweight process is used to handle each client.

The main advantages of Yaws compared to other Web technologies are performance and elegance. The performance comes from the underlying Erlang system and its ability to handle concurrent processes in an efficient way. Its elegance comes from Erlang as well. Web applications don't have to be written in ugly ad hoc languages.

See more: https://github.com/erlyaws/yaws

193 questions
1
vote
2 answers

Yaws crashes when I browse to my new erlyweb application

I am following the music application article on Yarivs blog. When I go to http://localhost:8002 I get the index page showing correctlty but if I try to browse to http://localhost:8002/music I get this error(see Pastie), When I browse…
Damian
  • 1,543
  • 15
  • 22
1
vote
1 answer

Nitrogen - File upload

I can easily upload a file using Nitrogen's #upload{} element, it works great. However, I am using client side Javascript to create an html file upload form (not using #upload{} tag in Nitrogen .erl file), and not able to get it to work. Any ideas…
spkhaira
  • 821
  • 7
  • 18
1
vote
6 answers

Installing Yaws server on Ubuntu 12.04 (Using a cloud service)

I'm trying to get a Yaws web server working on a cloud service (Amazon AWS). I've compilled and installed a local copy on the server. My problem is that I can't get Yaws to run while running on either port 8000 or port 80. I have the following…
Lee Torres
  • 561
  • 1
  • 5
  • 19
1
vote
1 answer

How to use YAWS in Erlide - Erlang

I have read that Erlang has a built-in webserver (YAWS); I am developing Erlang using the Eclipse plugin Erlide, I was wondering how I could access such a webserver, for example for running a simply 'hello world' PHP script; just for starting.
N3sh
  • 881
  • 8
  • 37
1
vote
1 answer

decodeURIComponent in Erlang

I encode my data on client side with encodeURIComponent. encodeURIComponent($('#...').val()), How to decode it on the yaws server?
Yola
  • 18,496
  • 11
  • 65
  • 106
0
votes
2 answers

Destroying a Data Structure when program doesnot need it anymore -- Erlang

Certain functions that manipulate Tuples in Erlang, result into copies of new tuples after the operation. In most cases, the program is no longer interested in the old tuple copy from which a new one was made. lets look at an…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
0
votes
2 answers

How to maintain stateful in yaws

I have some process (spawned) with state. How to maintain simple stateful service in yaws? How to implement communication to process in "appmods" erl source file? update: let's we have simple process start() -> loop(0). loop(C) -> receive …
Pavel Ajtkulov
  • 515
  • 7
  • 21
0
votes
0 answers

Yaws: How to debug enigmatic HTTP error 500 in a reverse proxy situation?

Reverse proxy Yaws delivers 500 Internal Server Error I use Yaws as a reverse proxy. Yaws lives in a docker container named yaws which calls an NGINX container named wsm. Very rarely, I get a 500 Internal Server Error when called from Opera or Edge…
kklepper
  • 763
  • 8
  • 13
0
votes
1 answer

Yaws Exception: {badmatch,{error,invalid_uri}} caused by +

I cannot find out what's wrong with abs_path being "/search?search=Thrust+washers", and, what's more, how to debug this. Class: error Exception: {badmatch,{error,invalid_uri}} Req:…
kklepper
  • 763
  • 8
  • 13
0
votes
0 answers

I want to establish a web socket connection between the client, and server

I've been having this problem for months now, and I've scrolled all over the web, and got no answer. Right now, I am running Yaws version 2.0.6, and Erlang OTP 19 for my project. I know to establish a websocket connection, the client needs to make a…
0
votes
0 answers

Hi, I am working on a Yaws web socket connection issue

I have stumbled upon a issue successfully enabling a web socket connection between the web browser, and the Yaws web server. Both, the Javascript code sample by the client, and Erlang code samples by the server that I want to show came from samples…
0
votes
1 answer

What does redirect in Yaws do in a docker stack?

Trying to understand Yaws and my docker stack. I have 3 servers in yaws.conf: domain.tld, my.domain.tld and sm.domain.tld. These correspond to containers www, wmy and wsm. I want Yaws to process data from domain.tld via appmod and pass through the…
kklepper
  • 763
  • 8
  • 13
0
votes
1 answer

Yaws basic auth letsencrypt

I have a domain in stealth mode, protected by basic auth. Basic auth is not supported by Letsencrypt and probably never will (https://github.com/certbot/certbot/issues/1744#issuecomment-162038303). After moving from Nginx to Yaws, the next…
kklepper
  • 763
  • 8
  • 13
0
votes
2 answers

HTML is not applying the CSS when viewed in browser

I use adminer in a docker container. For testing services, I use the URL mydomain.tld. To address this container directly, I could expose a port and map, for example, port 8081 to the adminer port 8080. Addressing this container directly via…
kklepper
  • 763
  • 8
  • 13
0
votes
0 answers

Error serving static website using erlang yaws

I have a web application build using dotnet as the backend and reactjs as the frontend. I build the front end files and want to serve them using yaws. I have the following configuration in /etc/yaws/conf.d/localhost.conf: port…