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
1 answer

Parse yaws get query

This crashed out(A) -> io:format("~wqqq12", yaws_api:queryvar(A, "id"), yaws_api:parse_query(A)), with this Reason: {function_clause, [{io,request, ["~wqqq12",{format,undefined,[{"id","F1D79543E9E6583B"}]}]}, But…
Yola
  • 18,496
  • 11
  • 65
  • 106
1
vote
1 answer

How do I install YAWS/Erlang?

Here I got small example how to run Yaws embedded, but how I need to install Yaws to get it worked?
Yola
  • 18,496
  • 11
  • 65
  • 106
1
vote
1 answer

Nitrogen over Yaws set cookie throws exception

I've installed Nitrogen over Yaws (Nitrogen 2.4.0, Yaws 2.0.8, ERTS 13.2 - R25). When I try http://0.0.0.0:8000/I get Internal server error. When I check in the console I get this error. {error,first_request, {url,"b_server/"}, {throw, …
1
vote
1 answer

Nitrogen SimpleCache Mutex signkey issue

Nitrogen seems to be running properly until it starts throwing these warning messages. It throws these warnings. =WARNING REPORT==== 2-Jul-2022::10:18:25 === SimpleCache: Mutex "{nitrogen,signkey}" timed out after 10 seconds. Something might be…
1
vote
1 answer

Erlang SMP enable Option on Multicore Servers

We are running Erlang 14B03 on the following Host: HP Proliant G6 Server, has 2 Intel processors, each processor has 2.4GHz speed, 8MB Cache, each processor has 4 cores. The Server has 20 GB RAM. How would we apply the -smp emulator option to make…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
1
vote
1 answer

Yaws webserver running via HTTP but not via HTTPS

I have a yaws webserver. I'm trying to connect via https in local network. When I setup my server in yaws.conf for http, as follows, all works fine when I connect via http://0.0.0.0:80/myappmod in browser port = 80 listen =…
1
vote
1 answer

yaws crashes with httpc:request for URL served by docker container

I use yaws and adminer in my docker stack. Formerly, I used to route https://mydomain.tld/adm?foo=bar with nginx to the proper container via location /adm/ { proxy_pass http://adm:8080; } How to do that in yaws? The idea is…
kklepper
  • 763
  • 8
  • 13
1
vote
1 answer

OTP14B02 configure error

I have tried to install OTP14B02 on OpenSolaris and i get the following error at calling ./configure: muzaaya@opensolaris:~/Desktop/software and data/otp_src_R14B02# ./configure Ignoring the --cache-file argument since it can cause the system to…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
1
vote
1 answer

Confused about Nitrogen listen IP address

Am running Nitrogen 2.0.X on Windows 7 Home Premium, HP Pavilion Entertainment PC Laptop. Nitrogen starts with inets and i have failed to change or dictate the IP address of the webserver. Once it starts, it tells me to go to my browser and hit…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
1
vote
1 answer

Getting Yapp Set Up

I am trying to follow the yapp intro and having some basic difficulties. Preliminaries: Version of yaws is 1.9, yapp has been installed (with docs). Yaws and Yapp installed manually, Erlang installed using Homebrew on MacOS X 10.6. Erlang R14B03…
David H. Clements
  • 3,590
  • 2
  • 24
  • 26
1
vote
0 answers

Can yaws be used in embedded mode while not putting it in relx or in included_applications?

Currently I am able to use yaws in embedded mode by either: adding {yaws, load} in the relx section of rebar.config. adding yaws to included_applications section in *.app.src. Method #1 was the suggested way in YAWS Embedded as dependence in…
Pulkit Agarwal
  • 336
  • 2
  • 7
1
vote
1 answer

Erlang: Functions work in shell but not in YAWS

My sole method of debugging (io:format/2) is not working in YAWS. I'm at a loss. My supervisor starts three processes: ETS Manager, YAWS Init, and Ratelimiter. This is successful. I can play around with the rate limiter in the shell... calling the…
Nolan Robidoux
  • 395
  • 2
  • 17
1
vote
1 answer

Erlang/Yaws: Cannot start web server within application using .conf file

I'm kind of at a loss. YAWS works fine starting as a service during boot in LXQt 19.04. But I intended on using a rate limiter; setting it in arg_rewrite_mod. Having one VM run YAWS and another my application, setting code paths appropriately, I…
Nolan Robidoux
  • 395
  • 2
  • 17
1
vote
0 answers

yaws built with crypto fails to start

I need to use hashed passwords for authentication in Yaws. I've rebuilt it from source (https://github.com/klacke/yaws), with this sequence of commands: ./configure --enable-crypto --prefix=/some/local/path make install When I run yaws…
btk
  • 3,158
  • 2
  • 29
  • 30
1
vote
0 answers

Starting ibrowse to support unlimited requests to the server

I am using ibrowse to make POST and GET requests to the external server but I have issues when it comes to supporting frequent and simultaneous requests. I start ibrowse with default settings: application:start(ibrowse). Then I use ibrowse to…