Permalink
Browse files

document 127.0.0.1 as the default listen interface

Fix the yaws.conf man page to state that 127.0.0.1 is the default listen
interface for a virtual server. Also document the same in the yaws.tex
file.
  • Loading branch information...
1 parent ba34c61 commit f6ba7ca73a2aed6f9dee58e6d7f30d377a864bb7 @vinoski vinoski committed Oct 4, 2012
Showing with 9 additions and 8 deletions.
  1. +8 −7 doc/yaws.tex
  2. +1 −1 man/yaws.conf.5
View
@@ -2384,12 +2384,13 @@ \section{Server Part}
This makes the server listen on Port. Default is 8000.
\item \verb+listen = IpAddress+ ---
- This makes the server listen on \verb+IpAddress+ when
- virthosting several servers on the same IP/port
- address, if the browser doesn't send a \verb+Host:+ field,
- \Yaws\ will pick the first server specified in the
- config file. Multiple \verb+listen+ directives may be
- used to specify several addresses to listen on.
+ This makes the server listen on \verb+IpAddress+ when
+ virthosting several servers on the same IP/port address, if
+ the browser doesn't send a \verb+Host:+ field, \Yaws\ will
+ pick the first server specified in the config file. Multiple
+ \verb+listen+ directives may be used to specify several
+ addresses to listen on. The default listen interface is
+ 127.0.0.1.
\item \verb+listen_backlog = Integer+ ---
This sets the TCP listen backlog for the server to
@@ -3030,7 +3031,7 @@ \section{Server Part}
</redirect>
\end{verbatim}
With this configuration, a request for
- \url{http://abc.com/foo/x/y/z} simply gets redirected to
+ \url{http://abc.com/foo/x/y/z} simply gets redirected to \\
\url{http://www.mysite.org/zapp}. This is typically used when
we simply want a static redirect at some place in the
docroot.
View
@@ -318,7 +318,7 @@ This makes the server listen on IpAddress. When virthosting several servers on
the same ip/port address, if the browser doesn't send a Host: field, Yaws will
pick the \fIfirst\fR server specified in the config file. If the specified IP
address is 0.0.0.0 Yaws will listen on all local IP addresses on the specified
-port. Default is \fI0.0.0.0\fR. Multiple \fBlisten\fR directives may be used to
+port. Default is \fI127.0.0.1\fR. Multiple \fBlisten\fR directives may be used to
specify several addresses to listen on.
.TP

0 comments on commit f6ba7ca

Please sign in to comment.