Installing extra modules

BlueNoteWeb

Verified User
Joined
Nov 4, 2004
Messages
52
Location
Denton, TX
Hello!

I'm trying to install mod_headers into my DirectAdmin server, using the instructions found here:

http://help.directadmin.com/item.php?id=191

However, when I run "./build apache" the process terminates with this error message:
Code:
make[3]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules/http'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules/http'
Making all in headers_module
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules/headers_module'
make[3]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules/headers_module'
make[3]: *** No rule to make target `mod_headers_module.lo', needed by `libmod_headers_module.la'.  Stop.
make[3]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules/headers_module'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules/headers_module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.9/modules'
make: *** [all-recursive] Error 1

I have a similar error when trying to install mod_expires. My configure.apache file is:
Code:
#!/bin/sh
"./configure" \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        "--sbindir=/usr/sbin" \
        "--sysconfdir=/etc/httpd/conf" \
        "--enable-so" \
        "--enable-dav" \
        "--enable-dav-fs" \
        "--enable-dav-lock" \
        "--enable-suexec" \
        "--enable-deflate" \
        "--enable-unique-id" \
        "--with-suexec-caller=apache" \
        "--with-suexec-docroot=/" \
        "--with-suexec-gidmin=100" \
        "--with-suexec-logfile=/var/log/httpd/suexec_log" \
        "--with-suexec-uidmin=100" \
        "--with-suexec-userdir=public_html" \
        "--with-suexec-bin=/usr/sbin/suexec" \
        "--with-included-apr" \
        "--with-pcre=/usr/local" \
        "--includedir=/usr/include/apache" \
        "--libexecdir=/usr/lib/apache" \
        "--datadir=/var/www" \
        "--localstatedir=/var" \
        "--enable-logio" \
        "--enable-ssl" \
        "--enable-rewrite" \
        "--with-ssl=/usr" \
        "--enable-headers" \
        "--with-module=headers_module"

What am I missing here?
 
Hooray Google! :)

Give this a try at the end of your configure.apache file:

"--enable-expires"

I'm only using this on specific hosts, so I added the following to my .htaccess files:

Code:
<IfModule mod_expires.c>
   ExpiresActive on 
   ExpiresByType image/jpg "access 1 year"
   ExpiresByType image/gif "access 1 year"
   ExpiresByType image/jpeg "access 1 year"
   ExpiresByType application/x-shockwave-flash "access 1 year"
   ExpiresDefault "access 3 months" 
  </IfModule>

Here are the headers back from the server:

Code:
Date: Thu, 08 Jan 2009 02:06:59 GMT
Server: Apache/2
Last-Modified: Wed, 26 Nov 2008 22:04:04 GMT
Etag: "20c09b0-a6f-45c9ece629d00"
Accept-Ranges: bytes
Content-Length: 2671
[B]Cache-Control: max-age=31536000
Expires: Fri, 08 Jan 2010 02:06:59 GMT[/B]
Content-Type: image/gif

200 OK
 
Back
Top