[omd-devel] Apache listens now on localhost, not on 127.0.0.1 anymore

Sven Nierlein sven at nierlein.de
Fri Dec 24 17:32:38 CET 2010


Hallo Lars,

diese Änderung führt dazu, dass der Site Apache unter Ubuntu nicht mehr startet.
Wenn ich den Listen wieder auf 127.0.0.1 statt localhost umstelle gehts wieder.

Vielleicht hilft es ja "Required-Start" für Debian entsprechend zu setzen. Das hab ich aber 
in ./debian/init.in und ./packages/omd/omd.init gefunden. Keine Ahnung welches davon nun
verwendet wird.

Grüße,
 Sven


On 12/6/10 13:55, git version control wrote:
> Module: omd
> Branch: master
> Commit: f326715d0291602971990ccb0e1acc53d43e6e84
> URL:    http://omdistro.org/projects/omd/repository/revisions/f326715d0291602971990ccb0e1acc53d43e6e84
> 
> Author: Lars Michelsen <lm at mathias-kettner.de>
> Date:   Mon Dec  6 13:44:51 2010 +0100
> 
> Apache listens now on localhost, not on 127.0.0.1 anymore - fixes #149
> 
> ---
> 
>  packages/apache-omd/APACHE_TCP_PORT.hook |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/packages/apache-omd/APACHE_TCP_PORT.hook b/packages/apache-omd/APACHE_TCP_PORT.hook
> index ac78692..6771c7a 100755
> --- a/packages/apache-omd/APACHE_TCP_PORT.hook
> +++ b/packages/apache-omd/APACHE_TCP_PORT.hook
> @@ -54,13 +54,13 @@ EOF
>          cat <<EOF > $OMD_ROOT/etc/apache/listen-port.conf
>  # This file is created by 'omd config set APACHE_TCP_PORT'. 
>  # Better do not edit manually
> -Listen 127.0.0.1:$PORT
> +Listen localhost:$PORT
>  EOF
>          cat <<EOF > $OMD_ROOT/etc/apache/proxy-port.conf
>  # This file is created by 'omd config set APACHE_TCP_PORT'. 
>  # Better do not edit manually
>  <IfModule mod_proxy_http.c>
> -  <Proxy http://127.0.0.1:$PORT/$OMD_SITE>
> +  <Proxy http://localhost:$PORT/$OMD_SITE>
>      Order allow,deny
>      allow from all
>    </Proxy>
> @@ -68,8 +68,8 @@ EOF
>    <Location /$OMD_SITE>
>      # Setting "retry=0" to prevent 60 second caching of problem states e.g. when
>      # the site apache is down and someone tries to access the page.
> -    ProxyPass http://127.0.0.1:$PORT/$OMD_SITE retry=0
> -    ProxyPassReverse http://127.0.0.1:$PORT/$OMD_SITE
> +    ProxyPass http://localhost:$PORT/$OMD_SITE retry=0
> +    ProxyPassReverse http://localhost:$PORT/$OMD_SITE
>    </Location>
>  </IfModule>
>  EOF
> 
> _______________________________________________
> omd-commits mailing list
> omd-commits at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-commits




More information about the omd-devel mailing list