[SOLVED] Re: [users@httpd] Building Apache 2.2 without IPv6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Jeff Trawick" <trawick@xxxxxxxxx>
Sent: 03 December, 2009 17:36
To: <users@xxxxxxxxxxxxxxxx>
Subject: Re:  Building Apache 2.2 without IPv6

On Thu, Dec 3, 2009 at 12:31 PM, Daniel Reinhardt
<cryptodan@xxxxxxxxxxxxx> wrote:
On Thu, Dec 3, 2009 at 11:41 AM, Daniel Reinhardt
<cryptodan@xxxxxxxxxxxxx> wrote:

Jeff,

I have done the below with --disable-ipv6 in my configure options, but it
still builds it with IPv6 Enabled.

On Thu, Dec 3, 2009 at 12:43 AM, Daniel Reinhardt
<cryptodan@xxxxxxxxxxxxx> wrote:

How would I tell apr to leave out IPv6 when compiling?

Add --disable-ipv6 to your configure options.

Hint: ./configure --help (and srclib/apr/configure --help if using
bundled
APR)

I guess you're building with the system APR instead of the APR bundled
with httpd.  (httpd picks up IPv6 settings from the APR it uses.)
Confirm that srclib/apr/include/apr.h did not get created, meaning
that you are using the system APR.

To build the bundled APR with httpd, allowing you to disable IPv6 in
APR, add --with-included-apr to your existing configure options
(including --disable-ipv6).

If you have third-party modules you use with httpd, it would be best
to recompile them to pick up the new APR setting.

These are my configure options:
./configure --bindir=/usr/bin --sysconfdir=/etc/apache2 --enable-so
--with-program-name=apache2 --enable-userdir=shared --enable-deflate=shared
--enable-speling=shared --enable-include=shared --enable-rewrite=shared
--enable-cgid=shared  --enable-info=shared --enable-suexec=shared
--enable-unique-id=shared --enable-usertrack=shared --enable-expires=shared
--enable-cern-meta=shared --enable-mime-magic=shared --enable-headers=shared
--enable-auth-dbm=shared --enable-cgi=shared --enable-asis=shared
--enable-auth-digest=shared --enable-actions=shared
--enable-file-cache=shared --enable-cache=shared --enable-disk-cache=shared
--enable-mem-cache=shared --enable-ssl=shared --sbindir=/usr/sbin
--with-included-apr --disable-ipv6

Yet when I go to http://server/server-info I see the following:
Server Built With:
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-------------> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

dunno; what does "grep IPV6 srclib/apr/include/apr.h" show?

As I do not have IPv6 installed in the kernel.

httpd figures out what to do based on system configuration

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


I am now running Apache 2.2.14 without any IPv6 in it, and as such I am providing the following:

For others in my situation I am providing my Linux Configuration Command Line options:

./configure --bindir=/usr/bin --sysconfdir=/etc/apache2 --enable-so --with-program-name=apache2 --enable-userdir=shared --enable-deflate=shared --enable-speling=shared --enable-include=shared --enable-rewrite=shared --enable-cgid=shared --enable-info=shared --enable-suexec=shared --enable-unique-id=shared --enable-usertrack=shared --enable-expires=shared --enable-cern-meta=shared --enable-mime-magic=shared --enable-headers=shared --enable-auth-dbm=shared --enable-cgi=shared --enable-asis=shared --enable-auth-digest=shared --enable-actions=shared --enable-file-cache=shared --enable-cache=shared --enable-disk-cache=shared --enable-mem-cache=shared --enable-ssl=shared --sbindir=/usr/sbin --with-included-apr --disable-mapped-ipv4

Server Version: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k
Server Built: Dec 3 2009 22:24:28
Server loaded APR Version: 1.3.9
Compiled with APR Version: 1.3.9
Server loaded APU Version: 1.3.9
Compiled with APU Version: 1.3.9
Module Magic Number: 20051115:23
Hostname/port: 192.168.1.4:80
Timeouts: connection: 300    keep-alive: 5
MPM Name: Prefork
MPM Information: Max Daemons: 256 Threaded: no Forked: yes
Server Architecture: 32-bit
Server Root: /usr/local/apache2
Config File: /etc/apache2/apache2.conf
Server Built With: -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_USE_SYSVSEM_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux