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

running and testing ejabberd on localhost?

I have installed ejabberd on my HP pavilion (Entertainment laptop running windows 7), during the installation i was prompted to enter the server domain. Since i wanted to experiment on it, i entered "localhost".When i try starting it, the web admin…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
2
votes
1 answer

Is it possible to add YAWS appmods config at runtime?

I embedded YAWS in my application at production environment, and I use the function yaws:start_embedded/4 to start YAWS. Below is my code: Id = "my_server", GconfList = [{logdir, "./log"}, {id, Id}], SconfList = [{docroot, Docroot}, {port,…
2
votes
1 answer

Mnesia can't create tables when ran by Yaws, but can when ran from the Erlang shell

I have a .yaws file which invokes the setup/0 function from the authenticate module I wrote, which I've placed in the ebin directory. When I call authenticate:setup/0 from the Erlang shell, it creates a table just fine, but when I load…
user1792131
  • 37
  • 1
  • 6
2
votes
3 answers

Yaws and PUT requests

I just started working with Yaws to try to create some simple RESTful web services, however I ran into an unexpected issue: I can't seem to access my data when I do a PUT request. When I try to use the yaws_api:parse_post function, I get the…
blockcipher
  • 2,144
  • 4
  • 22
  • 35
2
votes
1 answer

IIS, APACHE, YAWS runtime environment

Recently I gone through a an article explaining potentiality of YAWS server and the number of requests it processes per second. It was mentioned that YAWS can handle 80K requests per second and it also run in multi threaded environment to improve…
Maxwell
  • 21
  • 2
2
votes
1 answer

How to add Access-Control-Allow-Origin headers to yaws file?

I send a post request to YAWS server using AJAX from a different port/domain but javascript returns this error message: XMLHttpRequest cannot load http://0.0.0.0:8000/index.yaws. Origin http://localhost is not allowed by…
user4672604
2
votes
1 answer

How do I start yaws to run in embedded mode?

I've spent several hours trying to troubleshoot this issue using the yaws documentation and web searches. The existing threads here haven't helped me. I am new to erlang and I am trying to run yaws in embedded mode using the sample code provided on…
Will
  • 83
  • 6
2
votes
1 answer

How to connect to mysql database with Erlang, Yaws

I am new to Erlang and Yaws... I am trying to connect to a mysql database but I am not sure about a few things.. Questions. 1. Do I need additional library to connect to mysql database with Erlang? 2. How Do I list available database drivers with…
user4672604
2
votes
2 answers

Can't start supervisor from yaws runmod

I have a yaws runmod defined in yaws.conf as: runmod = sg_app the module contains an exported function: start()-> io:format("~p start~n", [ sg_sup:start_link() ]). When I start yaws I see a call to the runmod: =INFO REPORT====…
Lyn Headley
  • 11,368
  • 3
  • 33
  • 35
2
votes
1 answer

Starting Nitrogen Web framework at boot time

I have always started nitrogen to run as a daemon using the command below: sudo /home/someuser/myapp/bin/nitrogen start It works well but i have to repeat the same activity should the server reboot. Most web servers by default start at boot time.…
2
votes
1 answer

Upload with progress on Yaws webserver

I'm testing the script upload2.yaws on Yaws 2.0 but is not working. The script was develeloped for Yaws 1.57. The log from Yaws is: POST /html/upload2.yaws HTTP/1.1 Connection: keep-alive Accept:…
dropped
  • 45
  • 4
2
votes
1 answer

Choosing Erlang webserver

Yep, subjective question. But here are a lot of such questions that got good answers. So now I have to try to develop some REST API with Erlang, as I got from google I have to install some webserver, such as Cowboy, Webmachine, Yaws, Mociweb. But…
Daria
  • 861
  • 11
  • 29
2
votes
1 answer

Erlang & Yaws installation

I want to apologize about my English. It's not very good. So, I want to make a chat application (pretty much like Facebook's), and after reading a lot I decided to make this chat app with Erlang. After more reading I found out that I can use Yaws…
2
votes
2 answers

Fails to build Yaws on Mac OS X 10.9

I downloaded Yaws 1.98, but when executing ./configure && make if fails with the message provided below: gcc -c -g -O2 -I/usr/include/security -m64 -I/usr/include/pam -DHAVE_SENDFILE -I"/usr/local/lib/erlang/usr/include" -I/usr/include/pam/ …
Jonas
  • 121,568
  • 97
  • 310
  • 388
2
votes
1 answer

Erlang - convert binary readable UTF

I want to translate to web by YAWS info from mnesia database. Now i have code: -define(RECORD_TYPE, albums). -define(RECORD_KEY_FIELD, album_id). -record(?RECORD_TYPE, {?RECORD_KEY_FIELD, artist_id, album, albumpath,…
Black_13
  • 51
  • 5