# Configuration for YAWS # GLOBAL OPTIONS # The directory where all logfiles for all virtual servers will # be written. logdir = /var/log/yaws # The path to a directory where additional beam code can be # placed. The daemon will add this directory to its search path. ebin_dir = /usr/lib/yaws/examples/ebin # The directory where application-specific .hrl files can be # placed. Application-specific .yaws code can then include these # .hrl files. include_dir = /usr/lib/yaws/examples/include # The debug variable. Possible values are: # http | traffic | false # It is also possible to set the trace (possibly to a tty) while # invoking YAWS from the shell: yaws -i -T -x (see man yaws) trace = false # It is possible to have YAWS start additional # application-specific code at startup. #runmod = mymodule # By default YAWS will copy the erlang error_log and append it # to a wrapped log called report.log (in the logdir). This # feature can be turned off. This is useful for example when # running YAWS within a larger application. copy_error_log = true # Logs are wrapped. 1000000 = 1 M. log_wrap_size = 1000000 # Resolve all hostnames in logfiles so that i.e. webalizer can # produce the nice geography piechart. log_resolve_hostname = false # Fail completely or not if YAWS fails to bind a listen socket. fail_on_bind_err = true # If HTTP authentication is used, it is possible to keep a # track of login attempts. auth_log = true # When running multiple YAWS systems on the same host, each YAWS # system needs to have a unique name. YAWS will write a number # of runtime files under /tmp/yaws/${id}. The default value is # "default". #id = myname # YAWS can pick the first-listed virtual host in the list of # hosts with the same IP:PORT if no host matches the # client-specified Host: header. This is often nice in testing # environments but not acceptable in live hosting scenarios. pick_first_virthost_on_nomatch = true # "All unices are broken since it's not possible to bind to a # privileged port (< 1024) unless uid==0" -- Klacke # Since version 1.60, YAWS no longer supports the ability to # change userid. There is an Erlang program that can open # privileged ports and pass them on to other programs called # fd_server but is not in Portage as of 2006-03-05. It does not # support SSL. Other options on GNU/Linux include running on an # unprivileged port and using a reverse proxy like pound or # nginx or patching your kernel. See # http://yaws.hyber.org/wiki/showPage.yaws?node=fdserver for # details. use_fdsrv = false # VIRTUAL SERVERS # See man yaws.conf for the complete set of options, including # support for SSL, HTTP/1.1 auth and redirects. To listen on all # available interfaces, set listen = 0.0.0.0. port = 1337 listen = 127.0.0.1 docroot = /var/lib/yaws/www dir_listings = true_nozip