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

Pros and Cons of embedding Yaws web server within ejabberd server

I am working on a instance messaging app, I want to know the advantages and disadvantages of embedding yaws web server within ejabberd server, does it a right thing to embed yaws within ejabberd for a instance messaging app?
Mayank Tripathi
  • 285
  • 4
  • 11
0
votes
1 answer

How to stream data via WebSockets with Yaws?

I'd like to stream data over a WebSocket connection using Yaws. I've read the Yaws documentation about Streaming Data and Web Sockets, and I found the Yaws API functions below that seem relevant: yaws_api:websocket_send(Pid, {text, <<"hi…
0
votes
1 answer

YAWS, CORS: How to define what OPTIONS should return?

I need to make CORS work. It seems that jquery $ajax makes a OPTIONS call, and that should return the necessary CORS headers. All my GET and POST already do this, but it doesn't seems to be enough. In NGINX, you would do something like…
mattias
  • 870
  • 5
  • 18
0
votes
0 answers

Nitrogen wf.hrl file is deleted with a warning

I am using a slim_version of cowboy, I have also tried that on slim_yaws on nitrogen. What puzzles me is the abrupt deletion of the wf.hrl file by the VM. I do not understand what causes this!! Here is what appears in the console. Warning. Deleted…
0
votes
1 answer

Starting YAWS using launchd under Mac OS X Yosemite

I am trying to setup Yaws (installed via Homebrew) to start automatically under OS X Yosemite using the following PLIST:
Alex Popov
  • 3,726
  • 1
  • 17
  • 20
0
votes
1 answer

User can access internal yaws pages without authentication

I am using the embedded YAWS web-server with yaws cookie session. I first authenticate the user with user-name & password to allow him the entry to the web pages. My problem is if the user directly opens the internal web page instead of login page…
Ankit Tripathi
  • 374
  • 1
  • 8
0
votes
1 answer

upload.yaws fails with erlang R16B-03.7.el7 and yaws 1.98-2.el7

I need help. I had a working website. The last step before going live was to update the ssl certificates. That did not happen due to a bug in that version of erlang. I upgraded erlang and then had a mismatch in code levels between erlang and the…
Bill Ott
  • 15
  • 4
0
votes
0 answers

Nitrogen web framework auto internet detection

I tried to embed auto internet connection detection and server availability in my nitrogen driven application by including the script in the template bare.html available at http://github.hubspot.com/offline/ like this example below
0
votes
1 answer

YAWS: Update docroot while YAWS is running

I'm working with an implementation of YAWS and would like to have an easy way for developers to switch between using the docroot specified in yaws.conf and a custom location which contains a development build. Eg. say docroot is set to serve…
0
votes
1 answer

Yaws on MacOS, error message on start: "Can't find any config file ”

I have installed Yaws on Mac OS X via macport. When I call: sudo yaws -i, I get the error message: Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:true] Eshell V5.10.4 (abort with ^G) 1> =ERROR…
Don Lino
  • 116
  • 9
0
votes
2 answers

Erlang Tracing: Failed to open trace

I am currently observing traces of Erlang programs (using the Erlang:trace function), specifically the YAWS web server, although my problem may not be limited to this particular program. Basically, when I attempt to trace some processes and output…
numX
  • 830
  • 7
  • 24
0
votes
2 answers

E: Unable to correct problems, you have held broken packages when trying to install yaws 1.98 on Ubuntu 12.04

I get the following errors when trying to install yaws 1.98 on Ubuntu 12.04. bash$ sudo apt-get install yaws Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This…
user3382006
  • 69
  • 1
  • 7
0
votes
2 answers

Automatic redirection from port 80 to port 433 in nitrogen over Yaws and Cowboy

I am developing my application using nitrogen framework which runs over Yaws and also over Cowboy web servers. My clients only know this 'domain-name.xx'or 'www.domain-name.xx' which by default hits port 80 (unsecure http), yet always it want…
0
votes
1 answer

Yaws + Erlang. Output data

Iam new in erlang and trying to get data from mysql server: out(A) -> application:start(odbc), ConnString = "Driver={MySQL ODBC 5.2 ANSI Driver};" ++ "Server=127.0.0.1;Database=teamsDatabase;" ++ …
compasses
  • 99
  • 1
  • 7
0
votes
1 answer

Suggestion's required on organising data in schema free way

I wanted check if i plan to use "erlang record" storing ability as schemaless store, what kind of performance impact i would have. to be more clear: I need to have table : person, age, gender,{other attributes, Marital status, Number of…
Mahantesh
  • 79
  • 8
1 2 3
12
13