Permalink
Commits on Jul 11, 2013
  1. When max connections were reached and we attempt to close the socket,…

    … it was assumed we had a TCP socket, crashed on SSL sockets
    klacke committed Jul 11, 2013
Commits on Jul 9, 2013
  1. Merge pull request #155 from mdaguete/session_server_fixes

    yaws_session_server:print_sessions/0 not working due incorrect message
    klacke committed Jul 9, 2013
Commits on Jul 5, 2013
  1. export yaws:setup_sconf/2 for yapp

    The yapp application relies on the yaws:setup_sconf/2 function, but at some
    point it was made private to yaws.erl. Export it so yapp works properly
    again.
    vinoski committed Jul 5, 2013
Commits on Jul 1, 2013
  1. Merge remote-tracking branch 'MrStaticVoid/yaws-1.96/try-to-create...

    ...-log-dir-if-specified-in-config'
    capflam committed Jul 1, 2013
Commits on Jun 30, 2013
  1. Try to make the log directory if it doesn't exist

    This uses @capflam's patch from klacke#145
    to create the log directory if specified like
    
        logdir = +path/to/log
    
    in the configuration file.
    iamjamestl committed Jun 30, 2013
Commits on Jun 26, 2013
  1. Merge pull request #151 from fjoanis/master

    Fix runtime error on OpenBSD 5.3
    vinoski committed Jun 26, 2013
  2. Use proper linker command for drivers on OpenBSD

    This fixes the "Cannot load specified object" / setuid_drv.so: undefined symbol '__guard_local' error that occurs on OpenBSD 5.3. It changes the LD_SHARED variable to use gcc rather than ld. A similar issue is documented here: http://erlang.org/pipermail/erlang-questions/2013-May/073837.html. Tested on OpenBSD 5.3 and FreeBSD 9.
    fjoanis committed Jun 26, 2013
Commits on Jun 25, 2013
  1. Fix configure checks requiring module loading

    After 98db40b the check outputs:
    
        $ erl -noshell -eval 'code:load_file(file), io:format("~p~n",[[erlang:function_exported(file,sendfile,5)]]), erlang:halt().'
        [true]
    
        =ERROR REPORT==== 25-Jun-2013::09:40:51 ===
        Can't load module that resides in sticky dir
    
    Use code:ensure_loaded/1 instead as suggested by Tuncer Ayaz. Fix similar
    module loading check in rebar.config.script.
    weisslj committed with vinoski Jun 25, 2013
Commits on Jun 20, 2013
  1. Merge pull request #147 from tuncer/rel

    rel: sync files with upstream templates
    vinoski committed Jun 20, 2013
  2. changes for R16B01

    In R16B01, crypto:sha/1 is deprecated in favor of crypto:hash/2, but the
    latter is not available prior to R15B02. Change the configure script and
    rebar support to look for crypto:hash/2 and use it if found, otherwise fall
    back to crypto:sha/1.
    
    Also in R16B01 the public_key application, used by some of the tests, now
    requires the asn1 application to be started first. Change the tests to
    accommodate that.
    vinoski committed Jun 20, 2013
  3. Merge pull request #146 from kape1395/master

    Yaws cannot be compiled with R16B1.
    klacke committed Jun 20, 2013
Commits on Jun 13, 2013
  1. Group automatically the server configurations in embedded mode

    Now, Yaws groups the server configurations by itself when it is started
    in embedded mode. This is done when yaws_api:setconf/2 is called.
    capflam committed May 30, 2013
  2. Support message body in DELETE requests

    The HTTP/1.1 specification does not explicitly forbid message body in
    DELETE requests.
    In fact, it is only forbidden in TRACE requests (rfc2616 - section 9.8).
    So GET, HEAD and OPTION requests could contain message body. But it needs
    more work to support message body in these requests.
    capflam committed May 6, 2013
  3. Keep the original request in #arg{} and check it against auth rules

    Because the request can be rewritten, it could be useful to backup the
    original one. Appmods or Yaws scripts could access it by reading the field
    orig_reg in #arg{}. For CGI scripts, the variable REQUEST_URI is now built
    using the original request (SCRIPT_NAME, PATH_INFO and QUERY_STRING could
    be used to know the info about the rewritten request, if needed).
    
    The original request is also checked against the authorization rules. So, if
    the request is rewritten, Yaws will check the original request and the
    rewritten one. Access must be granted for both urls to accept the request.
    capflam committed May 6, 2013
Commits on Jun 4, 2013
Commits on May 30, 2013
Commits on May 21, 2013
  1. pam bug found by Jari Hellman

    klacke committed May 21, 2013
Commits on May 13, 2013
  1. point to github on main page

    klacke committed May 13, 2013
Commits on May 11, 2013
  1. add encoding comments where needed (Nico Kruber)

    For newer versions of Erlang, modules that contain non-UTF-8 characters
    require appropriate encoding comments.
    vinoski committed May 11, 2013
Commits on May 10, 2013
Commits on May 3, 2013
  1. fix editing error in yaws.tex

    vinoski committed May 3, 2013
Commits on Apr 27, 2013
  1. Add the global directive 'src_dir' to define source directories

    Yaws will compile all erlang modules found in these directories. The
    compilation occurs when the configuration is loaded or reloaded. The
    include_dir directives are used to search for include files. Multiple
    src_dir directives may be used. There is no such directory configured by
    default.
    capflam committed Apr 16, 2013
  2. Add 'Last-Modified' header only for static files or 304 responses

    It is a partial rollback of the commit 89f3ea2.
    The browsers seem to use this header to do aggressive cache (using some
    strange heuristics), without doing any request to the server. IMHO, it is
    a bug in browsers. Nevertheless, this header is useless for dynamic resources.
    So we can skip it. When this header is meaningful for user's application, it
    could be added explicitly.
    capflam committed with capflam Apr 12, 2013
  3. Add serveralias directive

    Now it is possible to set alternate names for a virtual host. A server alias
    may contain wildcards:
     - '*' matches any sequence of zero or more characters
     - '?' matches one character unless that character is a period ('.')
    
    Here is an example:
    
      <server server.domain.com>
        serveralias = server server2.domain.com server2
        serveralias = *.server.domain.com *.server?.domain.com
        ...
      </server>
    capflam committed with capflam Apr 2, 2013
Commits on Apr 23, 2013
Commits on Apr 21, 2013
  1. add yaws_api:get_listen_port/1

    For testing scenarios it can be useful to configure yaws to run on an
    ephemeral port by setting the server port number to 0. Add the
    yaws_api:get_listen_port/1 function to enable callers to retrieve the
    actual port number of a server from its listen socket. The single argument
    to the function is the #sconf{} record for the target server.
    vinoski committed Apr 21, 2013
Commits on Apr 8, 2013
  1. General whitespace and indent cleanup, removed trailing whitespace an…

    …d constrained code to 80 cols
    klacke committed Apr 8, 2013
Commits on Apr 7, 2013
  1. fix dialyzer warnings

    vinoski committed Apr 7, 2013