enable override (allow htaccess use)
How do you enable/disable the use of your directives in htaccess files? I've read about context and overrides, but can't find them in reference to developing a module, just in reference to using them (i.e. AllowOverride FileInfo). Thanks.
Re: enable override (allow htaccess use)
--- On Tue, 6/10/08, Andy Grant [EMAIL PROTECTED] wrote: From: Andy Grant [EMAIL PROTECTED] Subject: enable override (allow htaccess use) To: modules-dev@httpd.apache.org Date: Tuesday, June 10, 2008, 9:40 AM How do you enable/disable the use of your directives in htaccess files? I've read about context and overrides, but can't find them in reference to developing a module, just in reference to using them (i.e. AllowOverride FileInfo). Thanks. In your command table, when you specify your directive. The 4th argument of the macros (eg AP_INIT_TAKE12(...)) specifies where/how your directive can be placed. See http_config.h for the meanings. Here is one define from the .h file #define OR_LIMIT 1 /** *.conf inside Directory or Location and .htaccess when AllowOverride Limit */
Response Time and mod_rt
Where can I get the mod_rt module? Or can someone send it to me? Cause I want to know each request response time in my Apache access_log? Or any other way that I don't know?
Re: [patch] Add IPV6 'specials' flag to mod_rewrite
On Mon, Jun 9, 2008 at 9:19 PM, Ryan Phillips [EMAIL PROTECTED] wrote: Ryan Phillips [EMAIL PROTECTED] said: So I needed to create some mod_rewrite rules only for IPv6 when httpd is configured for both ipv4 and ipv6 modes. This patch adds 'RewriteCond IPV6 on' support to the ruleset. I initially tried to see if the incoming socket was APR_INET6, but couldn't find the right structure within the request to query. Should r-connection-local_addr or remote_addr have the correct socket family? If I try either of these over an IPv4 connection, I always get a socket family of IPv6. On most platforms, httpd will handle IPv4 connections on an IPv6 socket; the address family will be APR_INET6 and the socket address will have a special format which indicates that the client is IPv4 (http://en.wikipedia.org/wiki/IPv4_mapped_address). Replace Listen ## with the combination Listen 0.0.0.0:## + Listen [::]:## and you should be able to distinguish between client connection type by checking the address family (not a real solution). The system macro IN6_IS_ADDR_V4MAPPED() can check if an IPv6 socket address represents an IPv4 client connection. Apparently APR doesn't provide an equivalent.
Tagging 2.2.9...
I am tagging 2.2.9 in 1-2 hours...
Re: Tagging 2.2.9...
2.2.9 is tagged and rolled... Once www syncs with people, I'll provide the URL and start the voting On Jun 10, 2008, at 1:44 PM, Jim Jagielski wrote: I am tagging 2.2.9 in 1-2 hours...
Re: Tagging 2.2.9...
Will try to test it tomorrow... win or linux? I can do both but will only have time to give it a quick peak on one (exames) On Tue, Jun 10, 2008 at 10:33 PM, Jim Jagielski [EMAIL PROTECTED] wrote: Still waiting for the sync... I had thought it was every hour... :/ On Jun 10, 2008, at 3:29 PM, Jim Jagielski wrote: 2.2.9 is tagged and rolled... Once www syncs with people, I'll provide the URL and start the voting On Jun 10, 2008, at 1:44 PM, Jim Jagielski wrote: I am tagging 2.2.9 in 1-2 hours... -- ~Jorge
Re: svn commit: r666353 - /httpd/httpd/branches/2.2.x/Makefile.win
Folks, say the word; should this be in the httpd-2.2.9-win32-src.zip package or left out of it? For anyone not compiling DBD_LIST, this is a noop. Building the dbd's is a little complex and I'm working up a doc on that subject. Bill (Turns out it was a cut n paste error, we actually have a continuation of this line from a .dll into a .pdb for the apr-util flavor, but on the apache build we simplified this to run it once against .dll's and once against all the .pdb's, thus one line, and an invalid continuation.) [EMAIL PROTECTED] wrote: Author: wrowe Date: Tue Jun 10 15:38:34 2008 New Revision: 666353 URL: http://svn.apache.org/viewvc?rev=666353view=rev Log: Correct install script flaw when DBD_LIST is provided by the build user. This does not represent any significant change to the package, and certainly not to the source code, so if people do not complain about the discrepancy, then the -win32-src.zip package would include this fix. Either way, it's not a regression so not a showstopper to 2.2.9. Modified: httpd/httpd/branches/2.2.x/Makefile.win Modified: httpd/httpd/branches/2.2.x/Makefile.win URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/Makefile.win?rev=666353r1=666352r2=666353view=diff == --- httpd/httpd/branches/2.2.x/Makefile.win (original) +++ httpd/httpd/branches/2.2.x/Makefile.win Tue Jun 10 15:38:34 2008 @@ -484,7 +484,7 @@ copy srclib\apr-util\ldap\$(LONG)\apr_ldap-1.$(src_dll) $(inst_dll) .y !IFDEF DBD_LIST for %d in ($(DBD_LIST)) do ( \ - copy srclib\apr-util\dbd\$(LONG)\apr_dbd_%d-1.$(src_dll) $(inst_dll) .y \ + copy srclib\apr-util\dbd\$(LONG)\apr_dbd_%d-1.$(src_dll) $(inst_dll) .y \ ) !ENDIF !IF EXIST(srclib\zlib\zlib1.$(src_dll))
Re: Summary of win32 build [licensing] issues
I pose this to you all, does anyone have a concern? If not, the oracle, pgsql and sqlite3 driver connectors will ship. The mysql driver connector simply will not ship (even once apr-util-1.3.1 is released, now that it builds), although perhaps from an external site this .dll could be found. Suggestions welcome. freetds awaits a windows alternative mssql client connector once someone has energy to write one. Bill William A. Rowe, Jr. wrote: Secondly, the sqlite3, oracle and pgsql binaries do build, against the current official binaries. Which modules may we distribute under the AL from w.a.o/dist/apr/binaries/win32/? (I have no plan to distribute the binary of the client itself, only the apr_dbd_*-1.dll's bound to them). My analysis indiciates that there is nothing noxious in the Oracle Instant Client license which would encumber us from distributing a binding to it, provided that we do not ship it ourselves. GPL packagers might have their own concerns with the license. http://www.oracle.com/technology/software/popup-license/instant_client_lic.html The SQLite libraries are Public Domain. In fact it appears we could ship those drivers (as shipped by sqlite.org, I don't really desire to rebuild this code unless we believe its necessary). The question is, should we? The PostgreSQL libraries are BSD licensed. And again it appears we could ship those drivers (again from their binary distribution) for the win32 binary distribution, if we saw a need. But I'd restrict this to the client driver only, not the entire PostgreSQL distribution. Again, the question would be, should we? In any case, there is nothing stopping us from shipping these three driver connectors that I can find. Thoughts or comments? Bill
Re: Tagging 2.2.9...
On Jun 10, 2008, at 5:10 PM, Jim Jagielski wrote: Still waiting... In the meantime, test tarballs are at: http://people.apache.org/~jim/test/ I will wait calling for a vote until they are in the usual place, but this gives people a head's up... This is running fine on Solaris 10 x86, compiled with Sun Studio 12, compiled with: MAKE=gmake \ CC=cc CFLAGS=-g -fast \ CPPFLAGS=-I/usr/sfw/include -I/usr/local/include \ LDFLAGS=-lbsdmalloc -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/local/lib -R/ usr/local /lib \ ./configure --prefix=/local/apache --enable-mods-shared=most --enable- ssl=shared --enable-deflate=shared --enable-proxy=shared --enable-proxy- http=shared --enab le-proxy-ajp=shared --enable-proxy-connect=shared --enable-proxy- ftp=shared --en able-proxy-balancer=shared --bindir=/usr/local/bin --sbindir=/usr/ local/sbin --l ibdir=/usr/local/lib --mandir=/usr/local/man --infodir=/usr/local/info Only saw two minor warnings emitted by the compiler: util_script.c, line 599: warning: statement not reached mod_dbd.c, line 898: warning: argument #1 is incompatible with prototype: prototype: pointer to function(pointer to struct apr_pool_t {}, pointer to struct server_rec {pointer to struct process_rec {..} process, pointer to struct server_rec {..} next, pointer to const char defn_name, unsigned int defn_line_number, pointer to char server_admin, pointer to char server_hostname, unsigned short port, pointer to char error_fname, pointer to struct apr_file_t {..} error_log, int loglevel, int is_virtual, pointer to struct ap_conf_vector_t {..} module_config, pointer to struct ap_conf_vector_t {..} lookup_defaults, pointer to struct server_addr_rec {..} addrs, long long timeout, long long keep_alive_timeout, int keep_alive_max, int keep_alive, pointer to const char path, int pathlen, pointer to struct apr_array_header_t {..} names, pointer to struct apr_array_header_t {..} wild_names, int limit_req_line, int limit_req_fieldsize, int limit_req_fields, pointer to const char server_scheme}) returning void : /local/src/httpd-2.2.9/ include/http_config.h, line 1022 argument : pointer to void
[VOTE] Release Apache HTTP Server 2.2.9
Test tarballs for Apache httpd 2.2.9 are available at: http://httpd.apache.org/dev/dist/ Your votes please; +/-1 [ ] Release httpd-2.2.9 as GA DO NOT begin distributing these in any manner whatsoever, please note that you can seriously mess up any user who installs these packages if they are ultimately rejected.
Re: [VOTE] Release Apache HTTP Server 2.2.9
On Jun 10, 2008, at 8:50 PM, Jim Jagielski wrote: Test tarballs for Apache httpd 2.2.9 are available at: http://httpd.apache.org/dev/dist/ Your votes please; +/-1 [ ] Release httpd-2.2.9 as GA +1
2.2.9 testing with OpenSSL 0.9.8h
This is only an info for others who might run into the same problem: I used the httpd test suite for httpd 2.2.9 in combination with OpenSSL 0.9.8h (the recent version). The test suite calls openssl \ req -new -key keys/client_revoked.pem -out csr/client_revoked.csr \ -passin pass:httpd -passout pass:httpd -config \ conf/client_revoked.cnf at the beginning. With OpenSSL 0.9.8h this crashes (Solaris) resp. gives a malloc error (Linux). This is not an httpd bug. If one uses an older openssl (e.g. 0.9.8g) in the PATH but still runs httpd/mod_ssl with 0.9.8h, there is no SSL test failure. The corresponding OpenSSL bug is already known and fixed in CVS: http://cvs.openssl.org/chngview?cn=17196 Regards, Rainer
Response Time and mod_rt
Where can I get the mod_rt module? Or can someone send it to me? Cause I want to know each request response time in my Apache access_log? Or any other way that I don't know?
Re: [VOTE] Release Apache HTTP Server 2.2.9
Jim Jagielski wrote: Your votes please; +/-1 [+1] Release httpd-2.2.9 as GA I'll rely on others to review linux, solaris, et al, but based on Win32 I'm very happy and just waiting for feedback from my prior questions to post up the various files.
Re: [VOTE] Release Apache HTTP Server 2.2.9
On Jun 10, 2008, at 6:50 PM, Jim Jagielski wrote: +/-1 [ ] Release httpd-2.2.9 as GA +1 for release. Darwin Legadema.local 9.3.0 Darwin Kernel Version 9.3.0: Fri May 23 00:49:16 PDT 2008; root:xnu-1228.5.18~1/RELEASE_I386 i386 2.2.9 Worker: Failed Test Stat Wstat Total Fail List of Failed --- t/ssl/v2.t 11 1 3 tests and 2 subtests skipped. Failed 1/80 test scripts. 1/2894 subtests failed. Files=80, Tests=2894, 197 wallclock secs (39.79 cusr + 6.31 csys = 46.10 CPU) Failed 1/80 test programs. 1/2894 subtests failed. I get the same error (bad mac decode) when running the openssl command- line tool. Probably something wrong with my OpenSSL: [EMAIL PROTECTED] c-examples $ openssl s_client -ssl2 -connect 127.0.0.1:8532 CONNECTED(0003) depth=0 /C=US/ST=California/L=San Francisco/O=ASF/OU=httpd-test/rsa-test/CN=localhost/[EMAIL PROTECTED] verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 /C=US/ST=California/L=San Francisco/O=ASF/OU=httpd-test/rsa-test/CN=localhost/[EMAIL PROTECTED] verify error:num=27:certificate not trusted verify return:1 depth=0 /C=US/ST=California/L=San Francisco/O=ASF/OU=httpd-test/rsa-test/CN=localhost/[EMAIL PROTECTED] verify error:num=21:unable to verify the first certificate verify return:1 80250:error:140EC071:SSL routines:SSL2_READ_INTERNAL:bad mac decode:s2_pkt.c:274: [EMAIL PROTECTED] c-examples $ openssl version OpenSSL 0.9.7l 28 Sep 2006 [EMAIL PROTECTED] c-examples $ which openssl /usr/bin/openssl Apache's log: [Tue Jun 10 22:12:59 2008] [debug] ssl_engine_kernel.c(1789): OpenSSL: Exit: error in SSLv2 read client finished A [Tue Jun 10 22:12:59 2008] [debug] ssl_engine_kernel.c(1789): OpenSSL: Exit: error in SSLv2 read client finished A [Tue Jun 10 22:12:59 2008] [info] [client 127.0.0.1] SSL library error 1 in handshake (server localhost:8532) [Tue Jun 10 22:12:59 2008] [info] SSL Library Error: 336511089 error: 140EC071:SSL routines:SSL2_READ_INTERNAL:bad mac decode Browser still remembered details of a re-created server certificate? [Tue Jun 10 22:12:59 2008] [info] [client 127.0.0.1] Connection closed to child 1 with abortive shutdown (server localhost:8532) SSLv3 works. FreeBSD legadema-bsd 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ GENERIC i386 2.2.9 Prefork: All tests successful, 3 tests and 2 subtests skipped. Yay! +1 -- Sander Temme [EMAIL PROTECTED] PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF smime.p7s Description: S/MIME cryptographic signature