Thursday, 8 February 2007
|
| [patch] make $r->the_request writable Fred Moyer 00:50:51 |
| | Greetings,
Based on the thread here:
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=117002875014012&w=2
I've put together a diff to make $r->the_request writeable. I've based this on the writeable test for $r->hostname. The test passes on my setup.
Any suggestions on changes to this, or should I go ahead and commit it?
Index: t/response/TestAPI/request_rec.pm =================================================================== --- t/response/TestAPI/request_rec.pm (revision 500867) +++ t/response/TestAPI/request_rec.pm (working copy) @@ -24,7 +24,7 @@ sub handler { my $r = shift;
- plan $r, tests => 54; + plan $r, tests => 55;
#Apache2::RequestUtil->request($r); #PerlOptions +GlobalRequest takes care my $gr = Apache2::RequestUtil->request; @@ -127,6 +127,13 @@ ok t_cmp $r->the_request, "GET $base_uri$path_info?$args HTTP/1.0", '$r->the_request';
+ { + my $new_request = "GET $base_uri$path_info?$args&foo=bar HTTP/1.0"; + my $old_request = $r->the_request($new_request); + ok t_cmp $r->the_request, $new_request, '$r->the_request rw'; + $r->the_request($old_request); + } + ok $r->filename;
my $location = '/' . Apache::TestRequest::module2path(__PACKAGE__); Index: docs/api/Apache2/RequestRec.pod =================================================================== --- docs/api/Apache2/RequestRec.pod (revision 500867) +++ docs/api/Apache2/RequestRec.pod (working copy) @@ -1753,12 +1753,15 @@ First HTTP request header
$request = $r->the_request(); + $old_request = $r->uri($new_request);
=over 4
=item obj: C<$r> ( C<L<Apache2::RequestRec object|docs::2.0::api::Apache2::RequestRec>> )
+=item opt arg1: C<$new_request> ( string ) + =item ret: C<$request> ( string )
For example: Index: xs/maps/apache2_structures.map =================================================================== --- xs/maps/apache2_structures.map (revision 500867) +++ xs/maps/apache2_structures.map (working copy) @@ -12,7 +12,7 @@ < next < prev < main -< the_request + the_request assbackwards ~ proxyreq < header_only
|
| | 1 answer | Add comment |
Wednesday, 7 February 2007
|
| report time Philip M. Gollucci 22:04:17 |
| | H. Apache Perl Project [Geoffrey Young / ] + + See Attachment H + + [ approved: + comments: + ]
-- ------------------------------------------------------------------------ Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708 Consultant - P6M7G8 Consutling - http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - Ticketmaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
We're halfway there Livin' on a prayer Take my hand and we'll make it-I swear Livin' on a prayer
|
| | 1 answer | Add comment |
|
| [VOTE] absorb Apache::Reload Geoffrey Young 09:10:57 |
| | hi all
in order to transfer maintainershop of Apache::Reload from matt to the mod_perl collective we need to take a formal vote. voting +1 would mean:
o importing Apache::Reload from CPAN to our svn repository at the ASF o grant matt commit bits to Apache::Reload (should he want them) o changing PAUSE primary maintainer from MATTS to APML o future Apache::Reload releases (and bugs and integration, etc) would be the responsibility of our community
taking over the module is not something we are required to do. but I think would be goodness for our userbase, as we could eventually serve Apache2::Reload and Apache::Reload from a single, unified codebase.
feedback and/or votes appreciated.
--Geoff
|
| | 3 answer | Add comment |
Tuesday, 6 February 2007
|
| Re: Apache::Reload (0.07) license Geoffrey Young 23:05:18 |
| | Matt Sergeant wrote:> Hmm, it's been years now since I touched that stuff - I thought the > mod_perl guys *were* maintaining it? I've CC'd Geoff who would know.
from what I can tell, we've taken over Apache2::Reload but not Apache::Reload. I seem to have co-maint on pause, but it hasn't officially been slurped into mod_perl svn as of now.
I'd be +1 on officially placing Apache::Reload into our svn repository and opening it up (similar to what we did with Apache-SizeLimit). but in order to do that it would require an ASF license - I'm not sure of the official ASF stance on the GPL, but I know it gets discussed often and, in truth, I am unwilling to let license issues soak up any of my very limited tuits.
so, matt, if you want to unload it I think we'd be happy to officially take it on. I can find out the official "donation" process if required.
--Geoff
Anyway, I'm happy for whatever license to go on it (perl+gpl or the > Apache license).> > On 6-Feb-07, at 5:16 AM, Bernd Ahlers wrote:> >> Hey Matt,>>>> I know you don't maintain the current Apache2::Reload module (for>> apache/mod_perl 2) and you're probably tired of talking about this >> topic.>> ;)>>>> As far as I know, the apache guys are only maintain the Apache2::Reload>> module but not Apache::Reload 0.07. Since some people still use>> apache/mod_perl 1, it would be really nice if you could add a license>> to Apache::Reload. Otherwise we (in my case OpenBSD) cannot distribute>> this module as a package.>>>> Is it possible to do that?>>>> Thanks and regards,>>>> Bernd>> |
| | 2 answer | Add comment |
|
| Bug Report - uploads truncated Miles Crawford 16:32:00 |
| | I posted this to the Firefox guys as well, because I believe it may be an issue with their browser, but even if it isn't a mod_perl issue perhaps you guys have insights I could use to help fill out the bug report I filed with them?
Perl version v5.8.5 for Apache/1.3.33 (Unix) mod_ssl/2.8.23 OpenSSL/0.9.8 mod_perl/1.29
When posting a file to the following CGI, as demonstrated at the provided URL, larger files get truncated. An example file that truncates is located at: http://mcrawfor.surge.eplt.washington.edu/mcrawfor/frank_lloyd.pdf
Notice that this file is about 4mb, but when uploaded through the following CGI using Firefox 2 on Windows, it is truncated to roughly 2.5mb.
If you look at the truncated files in a hex editor, there is a strange similarity in the point the file is truncated:
truncated point: 00274fe0: d6 4c 64 b7 c9 f5 c1 3f e3 4f a2 8a 28 a2 8a 28 .Ld....?.O..(..( 00274ff0: a2 8a 28 a2 8a 2b cd 3f 68 9f 0f f8 c3 c6 1f -- ..(..+.?h......- valid file: 00274fe0: d6 4c 64 b7 c9 f5 c1 3f e3 4f a2 8a 28 a2 8a 28 .Ld....?.O..(..( 00274ff0: a2 8a 28 a2 8a 2b cd 3f 68 9f 0f f8 c3 c6 1f 0a ..(..+.?h....... 00275000: 75 cf 04 f8 2f 41 4d 46 f7 c4 16 af 66 cc f7 89 u.../AMF....f...
All the files I checked are cut off right before a "0a" byte that rolls over to the next round filesize.
I have checked this with Firefox 1.5 and 2.0 on a variety of platforms, and have only seen it using Firefox 2.0 on Windows posting to mod_perl 1. mod_perl 2 doesn't seem to have this problem.
_____________ #!/usr/bin/perl
my $r = shift;
use Apache::Request;
my $apr = Apache::Request->new($r); my $handle = $apr->upload('upload')->fh();
open STORE, ">stored"; while( my $line = <$handle>){ print STORE $line; } close STORE;
print "Content-type: text/plain\n\n". `du 'stored'`; ______________
Reproducible: Always
Steps to Reproduce: 1. Upload the sample file to the provided URL or CGI script using Firefox 2.0 on Windows 2.Check the Uploaded filesize. 3. Actual Results: Only part of the file is uploaded.
Expected Results: The whole file should be uploaded ;)
I'm setting the severity to major considering the large number of mod_perl 1.3 applications in production use - Here at the University of Washington we are getting more and more complaints about this as people upgrade to FF 2.0
Thanks!
-Miles
|
| | 1 answer | Add comment |
|
| installation problem Wenbinl 16:07:23 |
| | Hi colleagues,
i'm trying to install Apache httpd-2.0.45 on Linux (RH7.1). The configuration looks fine, but I got the following message (partial) when "make" is over:
make[2]: *** [/usr/local/apache2/server/exports.lo] Error 1 make[2]: Leaving directory '/usr/local/httpd-2.0.45/server' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/usr/local/httpd-2.0.45/server' make *** [all-recursive] Error 1
And I used the configuration commnand: # ./configure --prefix=/usr/local/apache2 --enable-module=all --enable-shared=max
Please help. Thanks in advance.
Wenbin
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 74 answer | Add comment |
Wednesday, 31 January 2007
|
| New Vista APIs Lucian Adrian Grijincu 15:49:40 |
| | Vista come with a set of new APIs
http://msdn2.microsoft.com/en-us/library/aa904937.aspx "Slim reader/writer (SRW) locks enable the threads of a single process to access shared resources; they are optimized for speed and occupy very little memory."
the interface is very similar to the one APR has in http://apr.apache.org/docs/apr/trunk/group__apr__thread__rwlock.html
implementing apr_thread_rwlock through these APIs would be very simple: we almost only have to call the corresponding OS functions.
the same stands for Condition variables: http://msdn2.microsoft.com/en-us/library/ms682052.aspx "Condition variables are synchronization primitives that enable threads to wait until a particular condition occurs. Condition variables are user-mode objects that cannot be shared across processes."
I haven't looked any further into the matter (performance of the new APIs relative to APR's current implementation, or if there are any other new Vista APIs that may simplify the APR's implementation of x and y functions), but I wanted to get your opinion on this: is there any desire to have (with a compile time switch) APR's functions implemented through the new set op API's ?
-- Best Regards, Lucian Adrian Grijincu
|
| | 12 answers | Add comment |
Monday, 29 January 2007
|
| Modifying the Apache Log Entry Alden DoRosario 00:37:51 |
| | In modperl 1.99 I used to use the code below to append a bunch of parameters to the log entry for a request.
Example: A request to /handler?client=demo would be written to the log as: (notice how sysinfo has been appended to the log)
fios.verizon.net - - [09/Jan/2007:16:39:17 -0500] "GET /handler?client=demo&sysinfo=servtime%3D3.976863 HTTP/1.1" 200 1893 "-" "Mozilla/5.0 Firefox/1.0.6 (ax)" 4098034 -
sub append_to_log { my ($r, $plog) = @_; my $uri = ""; if ($r->the_request =~ / (.*) /) { $uri = $1; } else { return; } my $info = "&sysinfo=" . uri_escape(join("&", @{$plog})); (my $request_line = $r->the_request) =~ s/ (.*) / $uri$info /; $r->the_request($request_line); }
Problem is: In Modperl 2.0+, the method the_request suddenly became read-only and the code stopped working.
From: http://search.cpan.org/dist/mod_perl/Changes Apache::RequestRec methods changes [Stas] - readwrite => readonly:
connection, canonical_filename, header_only, main, next, prev, pool, per_dir_config, request_config, proto_num, protocol, request_time, server, the_request, unparsed_uri
Can anyone suggest an alternate way of modifying the log entry ? In other words, what way does MP2 allow for us to control what gets logged to the Apache access_log ?
Alternatively: Can the_request in Apache::RequestRec be made writable again so that it works like before ?
Any help is really appreciated. Thanks.
-- Alden DoRosario CTO Chitika, Inc. www.chitika.com
|
| | 16 answers | Add comment |
Sunday, 28 January 2007
|
| Apache2 hangs when running on 2 port Gero Fricke 00:38:30 |
| | Hi, when I add a 2nd listen statement into ports.conf and restart apache2 the server just hangs and doesn't serve any pages. The TCP sessions to the ports are established and the browser's waiting for data. No errors in the debug log. Same setup is running with no problems on a 2nd server (same platform / OS / config). Any ideas ?
Thank you, Gero.
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | Add comment |
|
| apr MSVC 2003 linking problems Halplus Shadowbit 00:32:32 |
| | Hello:
I'm getting this with Visual Studio 2003 with different versions of apr 0.9.x, 1.0.0 and the latest stable release. I am using c not c++
jpr.obj : error LNK2019: unresolved external symbol __imp__apr_pool_create_ex@16 referenced in function _jpr_initialize@0 jpr.obj : error LNK2019: unresolved external symbol __imp__apr_app_initialize@12 referenced in function _jpr_initialize@0 jpr.obj : error LNK2019: unresolved external symbol __imp__apr_terminate referenced in function _jpr_terminate@0 jpr.obj : error LNK2019: unresolved external symbol __imp__apr_pool_destroy@4 referenced in function _jpr_terminate@0 jpr_excep.obj : error LNK2019: unresolved external symbol __imp__apr_threadkey_private_create@12 referenced in function _jpr_excep_initialize jpr_excep.obj : error LNK2019: unresolved external symbol __imp__apr_threadkey_private_delete@4 referenced in function _jpr_excep_terminate jpr_excep.obj : error LNK2019: unresolved external symbol __imp__apr_threadkey_private_set@8 referenced in function __jpr_threadPushCtx@8 jpr_excep.obj : error LNK2019: unresolved external symbol __imp__apr_threadkey_private_get@8 referenced in function __jpr_threadPushCtx@8
It sould be linking for example with _apr_pool_create_ex@16 instead of __imp__apr_pool_create_ex@16 at least that is the name the library is exporting
Do I need to change something in the headers or... maybe define a symbol or something else?
/* -------------------- This is the fragment of code that calls the macro apr_pool_create --------------------------- */
#include <apr_general.h> #include <apr_pools.h>
#include "jpr_core.h" #include "jpr_priv.h"
apr_pool_t *_jpr_global_pool = NULL; static unsigned int _jpr_initialized = 0; #ifdef WIN32 static int _targc = 0; static char **_targv = NULL; #endif
JPR_DECLARE(Jpr_status) jpr_initialize(void) { apr_status_t rv;
if (_jpr_initialized++) { return APR_SUCCESS; }
#ifdef WIN32 if (_targc != __argc) _targc = __argc;
if (_targv != __argv) _targv = __argv;
rv = apr_app_initialize(&_targc, &_targv, NULL); #else rv = apr_initialize(); #endif if (APR_SUCCESS == rv) { rv = apr_pool_create(&_jpr_global_pool, NULL); }
if (APR_SUCCESS == rv) { rv = jpr_excep_initialize(); }
if (APR_SUCCESS != rv) { _jpr_initialized = 0; }
return rv; }
/* ------------------------------------------------------------------ */
Thanks in advance for your help David
|
| | Add comment |
Saturday, 27 January 2007
|
| Internal Dummy Connection Nilesh Bansal 22:45:45 |
| | Hi all,
In our apache httpd access log there are many entries like ::1 - - [27/Jan/2007:13:40:03 -0500] "GET / HTTP/1.0" 200 8761 "-" "Apache/2.2.3 (Unix) (internal dummy connection)"
I am not sure what is this internal dummy connection. We have around 10000 such entries for each day. Is there any bug? We are using httpd as a forward proxy server for load balancing using mod_rewrite.
thanks, Nilesh Bansal. http://queens.db.toronto.edu/~nilesh/
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 1 answer | Add comment |
|
| Issues installing PHP Vince Bravdica 22:43:03 |
| | I cannot seem to get PHP to function with Apache server. I have uninstalled it a few times and keep getting the same issues. When I do a LoadModule, I cannot restart Apache. When I #(rem) it out, I can, but then no PHP. Any Ideas? OS Windows XP Pro 1.6mhz 540 Ram 160MB HD Vince Bravdica President Virtual Web Resources <http://www.vwebr.net/> www.vwebr.net
_____
I am using the free version of SPAMfighter for private users. It has removed 16070 spam emails to date. Paying users do not have this message in their emails. Try SPAMfighter <http://www.spamfighter.com> for free now!
|
| | 8 answers | Add comment |
|
| Fakename in error_log Philippe BEAU 17:59:51 |
| | Hello all,
I have an Apache 1.3.37 with SSL compiled in 2.8.28 (modssl). I have found someone is playing with and launch this :
==> Fakename: "/bin/xxx" PidNum: 25370 ==> Fakename: "/bin/xxx" PidNum: 13361
I would like to know where this "Fakename" come from and is anyone have an idea of how i can block this ?
Best regards and thanks for you help
Philippe,
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 2 answer | Add comment |
|
| SSL on IP Address Tech Subscriptions 17:16:05 |
| | Hi,
Please how do I install SSL certificate on a server that would be accessed by IP only? I mean something like https://10.l.10.241/.
Regards.
Tope Akinniyi
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 4 answer | Add comment |
|
| Use of uninitialized value in string eq System 05:30:59 |
| | Hello All,
I could see lot of such error in my log file. Can anyone please help me in understanding this.
Thank you, Tina.
Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 659 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 661 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 662 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 664 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 665 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 667 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 668 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 670 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 671 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 673 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 675 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 676 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 678 . Use of uninitialized value in string eq at /home/bannerdo/www/cgi/ads_display.pl line 664, <DAILYLOG> line 679 --More--
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 13 answers | Add comment |
|
| SSL Certificate on Intranet Virtual Host Guest 00:42:26 |
| | I run several intranet sites for our company on a linux server using VirtualHosts. I've created a wildcard SSL certificate for our intranet sites which work when I browse to the fully qualified domain name (i.e. https://home.domain.org) but most of our users use the short name to get around (https://home) which causes a security warning. Is there a way to fix this or am I doomed to require users to use the fully qualified domain name?
Thanks, Robbert van Andel
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 4 answer | Add comment |
|
| Apache + Tomcat = no session management Wm.A.Stafford 00:05:52 |
| | We deployed our Tomcat-based system on an Apache+Tomcat site and session management disappeared completely. Every Tomcat access to the session resulted in the creation of a new session. Url rewriting did not solve the problem.
This is apparently a well known situtuation. Searching around I found references to this situation going back to 2001. However, I was unable to find what needs to change to enable session management in an Apache+Tomcat environment.
Since the application works normally on Tomcat only, it seems pretty certain that Apache needs to be configured to handle Tomcat session management either by cookies or url rewriting or both.
Can someone describe what is going on and what needs to be done?
Thanks, -=beeky
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 12 answers | Add comment |
Friday, 26 January 2007
|
| Re: svn commit: r500321 - in /apr/apr/trunk: include/arch/unix/apr_arch_poll_private.h poll/unix/epo Sander Temme 23:42:15 |
| | On Jan 26, 2007, at 12:04 PM, gregames@apache.org wrote:
epoll/Linux only for now. ./buildconf on FreeBSD (minotaur) spewed > tons of> errors; hints appreciated How do you run ./buildconf? Minotaur has autoconf from ports, and it has alternative names. Try:
AUTOCONF=autoconf259 AUTOHEADER=autoheader259 ./buildconf
S.
-- sander@temme.net http://www.temme.net/sander/ PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
|
| | Add comment |
|
| [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC1 Philip M. Gollucci 21:23:32 |
| | A release candidate for Apache-SizeLimit 0.91-RC1 is now available.
http://people.apache.org/~pgollucci/asl/Apache-SizeLimit-0.91-rc1.tar.gz
Please download, test, and report back.
*** Pending a successful release, This package will be integrated into *** both mod_perl 1.x and mod_perl 2.x CORE distributions.
Changes since 0.9: -------------------
*********** HEADS UP - SHARED CODE BASE - HEADS UP *********** Apache-SizeLimit has been hybridized. It has been split into 3 packages. 1) Apache::SizeLimit - User API for httpd 1.3.x / mod_perl 1.x 2) Apache2::SizeLimit - User API for httpd 2.x / mod_perl 2.x
3) Apache::SizeLimit::Core - Interal Shared Functionality _NEVER_ use this module directly. [Philip M. Gollucci <pgollucci@p6m7g8.com>]
Fix Can't call method "child_terminate" on an undefined value By add_cleanup_handler() pass $r to _exit_if_to_big() via shift [David Wheeler <david@kineticode.com>]
Added a SUPPORT section to the docs. [Dave Rolsky <autarch@urth.org>]
-- ------------------------------------------------------------------------ Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
I never had a dream come true 'Til the day that I found you. Even though I pretend that I've moved on You'll always be my baby. I never found the words to say You're the one I think about each day And I know no matter where life takes me to A part of me will always be... A part of me will always be with you.
|
| | 10 answers | Add comment |
|
| apache + ssl: client denied by server configuration Sam Carleton 20:23:42 |
| | I am trying to get SSL up and running on my new apache server. The server starts up just fine and serves up regular pages on port 80, but when I direct it towards the SSL port, Firefox give me an error:
"bv.<domain>.com has sent an incorrect or unexpected message. Error Code: -12263"
When I look at the apache error log, I get this:
client denied by server configuration: /usr/local/apache2/htdocs/
what is strange is that I am not using /usr/local/apache2/htdocs/ anywhere in the httpd.conf file. I have searched and searched the config file for htdocs and it simply is not there. Any thoughts?
Sam
P.S. Here is my complete httpd.conf file:
ServerRoot /usr/local/apache2 PidFile /usr/local/apache2/logs/httpd.pid
Listen 80 ServerAdmin scarleton@<domain>.com ServerSignature Off User httpd Group httpd HostNameLookups Off TimeOut 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 1000 ServerTokens ProductOnly
LoadModule php5_module modules/libphp5.so
AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php .inc AddHandler application/x-httpd-php .class AddHandler application/x-httpd-php .module
DefaultType text/plain
<IfModule mime_module> TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz </IfModule>
DirectoryIndex index.html index.php
<FilesMatch "(^\.ht|~$|\.bak$|\.BAK$)"> Order Allow,Deny Deny from all </FilesMatch>
<DirectoryMatch /CVS/> Order Allow,Deny Deny from all </DirectoryMatch>
<Directory /> Order Deny,Allow Deny from all Options None AllowOverride None </Directory>
<Directory /home/www/mainroot> Order Allow,Deny Allow from all </Directory>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog /var/log/httpd/access_log combined
LogLevel info ErrorLog /var/log/httpd/error_log
<VirtualHost *:80> DocumentRoot /home/www/mainroot </VirtualHost>
Listen 443
<IfModule mime.c> AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl </IfModule>
SSLPassPhraseDialog builtin SSLSessionCache shm:/usr/local/apache2/logs/ssl_cache_shm SSLSessionCacheTimeout 600 SSLMutex file:/usr/local/apache2/logs/ssl_mutex SSLRandomSeed startup file:/dev/urandom 1024 SSLRandomSeed connect file:/dev/urandom 1024
<VirtualHost bv.miltonstreet.com:433> DocumentRoot "/home/www/subversion" ServerName bv.<domain>.com SSLEngine on #SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM #SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCipherSuite HIGH:MEDIUM SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt SSLCertificateKeyFile /usr/local/apache2/conf/ssl.crt/server.key SSLOptions +StrictRequire SSLProtocol -all +TLSv1 +SSLv3 SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </VirtualHost>
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 2 answer | Add comment |
|
| Apache 2.0.58 + Solaris 5.9: status "...reading..." & TCP state "FIN_WAIT_2" Chirouze Olivier 20:18:46 |
| | Hi all,
I'm facing a quite tricky situation with Apache 2.0.58 running on Solaris 5.9.
Apache is running as a reverse proxy (mod_proxy + mod_rewrite). The maximum concurrent connections is set to 150.
Because we reached the maximum a few times and got the reverse proxy saturated, we started monitoring the Apache status page (/status). We noticed that many requests were in the "..reading.." state (up to 40!), and they block a lot of slots.
At first, we upgraded from 2.0.47 to 2.0.58 because it seemed there was a security hole in the earlier, fixed in 2.0.48. I found some explanation here: http://www.monkeybrains.net/~rudy/example/server_busy_state.html.
The thing is, the situation is starting to appear again with 2.0.58.
We've gone down to Unix and found that most of these requests were in "FIN_WAIT_2" TCP state, and for a while (approx. 8min!!).
We found this: http://httpd.apache.org/docs/2.0/misc/fin_wait_2.html. What it says, in a word, is that these things can happen and are "normal": the connection stays in "FIN_WAIT_2" state until the timeout, if clients do not close it properly. They just say it can be a problem on the Unix point of view because. I don't know if this is still true for 2.0 because the article was just copied from 1.3. The thing is, it says that "The connections in FIN_WAIT_2 do not tie up an httpd process". For us, IT DOES! Every "..reading.." request happend to be in the "FIN_WAIT_2" state.
We have contacted Sun to get their opinion. The short answer is "you can change the FIN_WAIT_2 timeout but be careful because wrong tuning will have negative impact. Maybe you should wonder why these connections stay alive". As far as I understood, the connection is not closed by the client. The server (Apache) does nothing wrong. But maybe it does, as it doesn't leave the process free?
My questions are: Does anyone have heard about similar problems? Why do these connections hold a process of Apache while the documentation says it doesn't? Do you recon tuning the Unix timeout would help? (current value of tcp_fin_wait_2_flush_interval: 675000 ms - 11min!! This looks just huge!)
Thanks in advance,
Olivier
Olivier CHIROUZE I&0 Infrastructure Volvo Information Technology
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 3 answer | Add comment |
|
| special chars in URLS Octavian Rasnita 19:58:49 |
| | Hi,
I am trying to make a server side redirect using:
RedirectMatch ^/$ http://www.site.com/index.php/test%C4%83
But the server redirects to another address: http://www.site.com/index.php/test%25C4%2583
So it replaces the % char with %25.
Is it possible to make a server side redirect to an address that contains special chars?
Thanks.
Octavian
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 2 answer | Add comment |
|
| 2007 DST changes, and a "non-issue" statement... Victor J. Orlikowski 18:23:19 |
| | Long time, no speak on my behalf. I hope to be changing that soon.
So - to de-cloak:
I've been getting some questions (from my new employer) on the impact of the upcoming Daylight Saving Time issues for the httpd.
My natural response was: "There are none! It's an OS issue." Whereupon, I was told that upper management would prefer to have something rather more "official" than my word on it.
So - suspecting that this might become something of a FAQ in the coming months, I figured that it might be helpful to post something to the httpd site on the (non)impact to httpd/apr, if only to save headaches.
Thoughts?
Thanks, Victor -- Victor J. Orlikowski <> victor.j.orlikowski@alumni.duke.edu
|
| | 9 answers | Add comment |
|
| is it possible ? (ssl-tunneling) Guest 15:40:16 |
| | Hi,
is it possible to have the connection between the client and the reverse proxy encrypted with ssl and authorization basic ? smth like ssh-tunneling ?
example :
client <---- SSL ---- > Apache <-------------> origin server reversed proxy
thanks, appreciate it. H.T.
--------------------------------------------------------------------- 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@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 3 answer | Add comment |
|
| Apache mod_dbd and Oracle Jeremie Garnier 14:24:42 |
| | Hi all,
I try to use connection pooling in apache using mod_dbd...
I test APR/APU and so the connection with the database is ok but I want to know how use mod_dbd?
I make all configurations in httpd.conf (DBDriver oracle,...). The module mod_dbd is well loaded ...
Now, I will use mod_dbd... Do you know how include mod_dbd API in a cgi script (or C program) as there no example or documentation of mod_dbd...
Thanks all for your help...
JИrИmie
*********************************************************************************** Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@nds.com and destroy the original message. ***********************************************************************************
|
| | Add comment |
|