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
4
votes
2 answers

Loading new yaws configuration file while running yaws

I am using YAWS to serve my remote application. When ever there is a change in yaws.conf file i am restarting the server to make these changes in effect. I don't want to do this, because my application might crash if server is down for more than…
Gokul
  • 455
  • 6
  • 17
4
votes
2 answers

How to install YAWS on Mac OSX

The following is a guide, step-by-step, to install a YAWS (Yet Another Web Server) on your Mac OSX machine. It has been tested on 10.6.8 SL and worked flawlessly, although the server needs to be restarted if you start spamming F5.
N3sh
  • 881
  • 8
  • 37
4
votes
3 answers

Erlang install: "Can't find config file " error message

I'm trying to install Yaws on my Ubuntu 11.01 system via apt-get install yaws. But when I call the shell script yaws from the command line I get the following error: Yaws: Bad conf: "Can't find config file " Unless my aging eyes are missing…
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31
3
votes
1 answer

how to include yaws file inside the yaws file

i have one yaws file(let say a.yaws) inside that I have a lot of function which i m using again and again .so i have decided to put those common function inside the other yaws file (let say common.yaws) and include this yaws to a.yaws. so what is…
Abhimanyu
  • 4,752
  • 7
  • 33
  • 44
3
votes
2 answers

Has anybody used YAWS server as an HTTP Proxy?

I am planning to setup an YAWS webserver as a HTTP proxy server . I am basically trying to achieve a high throughput HTTP proxy server which should be able to take webscale load. The requirement is to be able to redirect certain URI's to our…
rajeshnair
  • 1,587
  • 16
  • 32
3
votes
1 answer

Counting number of Hits on yaws web application

if i have a web application running from a yaws web server, how would i count the number of hits from users to my site? I have tried to use rudimentary methods of counting the number of lines in the .access file of my site found in the yaws logs…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
3
votes
2 answers

Working with Emails (POP3, IMAP, SMTP e.t.c) in Erlang?

How can one handle email related communications pragmatically in Erlang/OTP? Using bash, python or Perl scripts, its possible for one to send out emails. However, in Erlang, i have not yet found an Application or built in function dedicated to…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
3
votes
2 answers

How to setup Yaws webserver on Ubuntu Server 10.10?

I would like to develop some web applications using Erlang and the Yaws webserver. But I'm having problem with setting up Yaws on Ubuntu Server 10.10. First I updated my Ubuntu system with: sudo apt-get update sudo apt-get upgrade Installing Yaws…
Jonas
  • 121,568
  • 97
  • 310
  • 388
3
votes
1 answer

How can an ejabberd newbie setup a fully functioning ejabberd server?

i am completely new to ejabberd. I have downloaded the installation for both windows and linux (Ubuntu). Somewhere on the web i had seen a demo of how to install and set it up but the installation was configured as a 'demo'. I have the pidgin XMPP…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
3
votes
1 answer

yaws and erlang beam files in ebin

I am having problems when i have integers and float numbers in my form posts and receive these in my ebin file where i have beam files. Hope someone can help me. npower.yaws kv(K,L) -> {value, {K, V}} = lists:keysearch(K,1,L), V. …
user532826
  • 33
  • 2
3
votes
1 answer

How to rewrite URL in Yaws/Erlang

How can I access yaws file without including it's extension? Say, www.domain.com/listen.yaws => www.domain.com/listen I could not find any specific documentation for this from yaws documentation/appmod. I think the question is ultimately clarified!
user4672604
3
votes
1 answer

How to send message to receive in YAWS/Erlang

Normally in Erlang programmers use ! symbol to send message to receive in concurrent programming but how do we do it in yaws? Say I am trying to do this> out(Arg) -> loop("bad"). loop(X)-> receive good -> {html, "Good"}; …
user4672604
3
votes
2 answers

YAWS Embedded as dependence in rebar3 issue

I'm trying to use YAWS in an application (as dep) in embedded mode. I'm using rebar3. My application gets yaws as dep & builds via rebar3 (after some tweaking) & releases fine, but when I launch it YAWS is crashing out. It appears it is trying to…
casillic
  • 1,837
  • 1
  • 24
  • 29
3
votes
1 answer

YAWs embedded with appmod not working for me

Alright, what am I doing wrong here. I'm trying the simple example of embedded YAWs from http://yaws.hyber.org/embed.yaws but with an appmod. I've added the my_app.erl file and compiled it. It works if not in embedded YAWs so I think it is specific…
casillic
  • 1,837
  • 1
  • 24
  • 29
3
votes
1 answer

Erlang YAWS https tax

Since everything should be https, I enabled it, and noticed how much slower https is compared to http. I have a Ubuntu/YAWS server in Dallas. I start YAWS using "yaws --daemon --nodebug" If I do time curl -i …
mattias
  • 870
  • 5
  • 18
1
2
3
12 13