Re: [jira] Created: (MODPYTHON-120) Connection handler test fails on virtual hosting system such as OpenVPS.

2006-02-05 Thread Jorey Bump

Graham Dumpleton (JIRA) wrote:


On a virtual hosting environment such as OpenVPS, localhost does not map to the IP 
address 127.0.0.1 but the actual IP of the host.

   import socket
   socket.gethostbyname(localhost)
  '207.126.122.36'

This fact causes the connection handler test to fail because it sets up the 
virtual host listener definition as something like:

  Listen 59180
  VirtualHost 127.0.0.1:59180
SetHandler mod_python
PythonPath [r'/home/grahamd/mod_python-3.2.7/test/htdocs']+sys.path
PythonConnectionHandler tests::connectionhandler
  /VirtualHost 


In this case it really needs to be:

  Listen 59180
  VirtualHost 207.126.122.36:59180
SetHandler mod_python
PythonPath [r'/home/grahamd/mod_python-3.2.7/test/htdocs']+sys.path
PythonConnectionHandler tests::connectionhandler
  /VirtualHost 



I'd never do it in production, but, for testing purposes, wouldn't it be 
easier to use localhost directly?


   Listen 59180
   VirtualHost localhost:59180
 SetHandler mod_python
 PythonPath [r'/home/grahamd/mod_python-3.2.7/test/htdocs']+sys.path
 PythonConnectionHandler tests::connectionhandler
   /VirtualHost

This should be portable across platforms.



mod_python 3.2.7 available for testing

2006-02-05 Thread Jim Gallacher
Mod_python 3.2.7 tarball is available for test. Here's hoping this will 
be to final time we need your help testing before the official release.


3.2.7 adds a fix for the connection read issue that was causing problems 
on FreeBSD.


Here are the rules:

In order for a file to be officially announced, it has to be tested by
developers on the dev list. Anyone subscribed to this list can (and
should feel obligated to :-) ) test it, and provide feedback *to _this_
 list*! (Not the [EMAIL PROTECTED] list, and preferably not me
personally).

The files are (temporarily) available here:

http://www.modpython.org/dist/

Please download it, then do the usual

$ ./configure --with-apxs=/wherever/it/is
$ make
$ (su)
# make install

Then (as non-root user!)

$ cd test
$ python test.py

And see if any tests fail. If they pass, send a +1 to the list, if they
fail, send the details (the versions of OS, Python and Apache, the test
output, and suggestions, if any).

Thank you for your assistance,
Jim Gallacher



Re: mod_python 3.2.7 available for testing

2006-02-05 Thread Jim Gallacher

+1 Debian (sid), Apache 2.0.55-prefork, Python 2.3.5
+1 Debian (sarge), Apache 2.0.54-worker, Python 2.3.5
+1 Debian (sarge), Apache 2.0.54-prefork, Python 2.3.5

Jim

Jim Gallacher wrote:
Mod_python 3.2.7 tarball is available for test. Here's hoping this will 
be to final time we need your help testing before the official release.


3.2.7 adds a fix for the connection read issue that was causing problems 
on FreeBSD.


Here are the rules:

In order for a file to be officially announced, it has to be tested by
developers on the dev list. Anyone subscribed to this list can (and
should feel obligated to :-) ) test it, and provide feedback *to _this_
 list*! (Not the [EMAIL PROTECTED] list, and preferably not me
personally).

The files are (temporarily) available here:

http://www.modpython.org/dist/

Please download it, then do the usual

$ ./configure --with-apxs=/wherever/it/is
$ make
$ (su)
# make install

Then (as non-root user!)

$ cd test
$ python test.py

And see if any tests fail. If they pass, send a +1 to the list, if they
fail, send the details (the versions of OS, Python and Apache, the test
output, and suggestions, if any).

Thank you for your assistance,
Jim Gallacher






Re: APR cross-platform signal semantics

2006-02-05 Thread Nick Kew
On Sunday 05 February 2006 06:12, Garrett Rooney wrote:

  Is the following correct and complete for APR signals
  to function across platforms?
 
  static void my_handler(int signum) {
apr_signal_block(signum) ;
/* do things */
apr_signal_unblock(signum) ;
  }
 
  static void my_child_init(args) {
apr_signal(MY_SIGNAL, my_handler);
  }

 That seems reasonable to me, although I suspect the behavior with
 regard to how signals interact with threads will vary from system to
 system, although apr_setup_signal_thread seems relevant to that part
 of the problem...

So it would seem.  The worker and event MPMs both use that, and block
signals set up in a child_init hook.  Looks like I can't do this in a 
module:-(

The underlying problem is to implement graceful-stop of a single child
process.  It seems I can't do that using the pod, because I can't select
a child process, so I'm trying to signal.  The idea is;

* graceful signal --  close listeners
   ... delay ...
* TERM signal -- destroy pchild, apr_terminate, exit
   ... delay ...
* KILL signal as a last resort

I thought I had it wrapped up, but the IPC for the above eludes me.
Communicating by HTTP has the same problem as the pod: I don't
get to choose which child gets signalled, and it also has MPM issues.

Any alternative suggestions?  Preferably without touching the core
code and (especially) the individual MPMs?  Or do I need to do something
drastic like fork a new supervised MPM from worker?

-- 
Nick Kew


mod_ssl 5s delay

2006-02-05 Thread Oden Eriksson
Hello.

For some reason I get a 5 seconds delay for each ssl access, I get it with 
2.2.0 and 2.2.x head. I just can't figure out what is wrong. It worked fine 
with 2.0.x.

-- 
Regards // Oden Eriksson
Mandriva: http://www.mandriva.com
NUX: http://li.nux.se


Re: svn commit: r375083 - in /httpd/httpd/trunk/docs/manual/faq: background.html.en background.xml

2006-02-05 Thread Joshua Slive
On 2/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Author: niq
 Date: Sun Feb  5 11:30:29 2006
 New Revision: 375083

 URL: http://svn.apache.org/viewcvs?rev=375083view=rev
 Log:
 PR#38521 - fix link.

 -liYou may use the a 
 href=http://httpd.apache.org/docs/apache_pb.gif;'Powered by Apache'
 +liYou may use the a href=/apache_pb.gif'Powered by Apache'

If you are pointing outside the current docset, you should use an
absolute URL to make sure it works for people who install the docs
locally.

joshua.


Re: svn commit: r375083 - in /httpd/httpd/trunk/docs/manual/faq: background.html.en background.xml

2006-02-05 Thread André Malo
* [EMAIL PROTECTED] wrote:

 Author: niq
 Date: Sun Feb  5 11:30:29 2006
 New Revision: 375083

 URL: http://svn.apache.org/viewcvs?rev=375083view=rev
 Log:
 PR#38521 - fix link.

 Modified:
 httpd/httpd/trunk/docs/manual/faq/background.html.en
 httpd/httpd/trunk/docs/manual/faq/background.xml

 Modified: httpd/httpd/trunk/docs/manual/faq/background.html.en
 URL:
 http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/manual/faq/backgroun
d.html.en?rev=375083r1=375082r2=375083view=diff
 =
= --- httpd/httpd/trunk/docs/manual/faq/background.html.en (original)
 +++ httpd/httpd/trunk/docs/manual/faq/background.html.en Sun Feb  5
 11:30:29 2006 @@ -98,10 +98,10 @@
Software Foundation, nor make or use modified versions of such
artwork, except under the following conditions:/p
ul
 -liYou may use the a
 href=http://httpd.apache.org/docs/apache_pb.gif;'Powered by Apache' +  
  liYou may use the a href=/apache_pb.gif'Powered by Apache'
 graphic/a on a Web site that is being served by the Apache HTTP server
 software./li

This doesn't work, because the docs are also delivered offline. Please use 
relative links or just fix the absolute one.

nd
-- 
Solides und umfangreiches Buch
  -- aus einer Rezension

http://pub.perlig.de/books.html#apache2


Bug report for Apache httpd-1.3 [2006/02/05]

2006-02-05 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 8329|New|Nor|2002-04-20|mime_magic gives 500 and no error_log on Microsoft|
| 8372|Ass|Nor|2002-04-22|Threadsaftey issue in Rewrite's cache [Win32/OS2/N|
| 8849|New|Nor|2002-05-07|make install errors as root on NFS shares |
| 8882|New|Enh|2002-05-07|[PATCH] mod_rewrite communicates with external rew|
| 9037|New|Min|2002-05-13|Slow performance when acessing an unresolved IP ad|
| 9126|New|Blk|2002-05-15|68k-next-openstep v. 4.0  |
| 9726|New|Min|2002-06-09|Double quotes should be flagged as T_HTTP_TOKEN_ST|
| 9894|New|Maj|2002-06-16|getline sub in support progs collides with existin|
| |New|Nor|2002-06-19|Incorrect default manualdir value with layout.|
|10038|New|Min|2002-06-20|ab benchmaker hangs on 10K https URLs with keepali|
|10073|New|Maj|2002-06-20|upgrade from 1.3.24 to 1.3.26 breaks include direc|
|10169|New|Nor|2002-06-24|Apache seg faults due to attempt to access out of |
|10178|New|Maj|2002-06-24|Proxy server cuts off begining of buffer when spec|
|10195|New|Nor|2002-06-24|Configure script erroneously detects system Expat |
|10199|New|Nor|2002-06-24|Configure can't handle directory names with unders|
|10243|New|Maj|2002-06-26|CGI scripts not getting POST data |
|10354|New|Nor|2002-06-30|ErrorDocument(.htaccess) fails when passed URL wit|
|10446|Opn|Blk|2002-07-03|spaces in link to http server seen as foreign char|
|10666|New|Enh|2002-07-10|line-end comment error message missing file name  |
|10744|New|Nor|2002-07-12|suexec might fail to open log file|
|10747|New|Maj|2002-07-12|ftp SIZE command and 'smart' ftp servers results i|
|10760|New|Maj|2002-07-12|empty ftp directory listings from cached ftp direc|
|10939|New|Maj|2002-07-18|directory listing errors  |
|11020|New|Maj|2002-07-21|APXS only recognise tests made by ./configure |
|11236|New|Min|2002-07-27|Possible Log exhaustion bug?  |
|11265|New|Blk|2002-07-29|mod_rewrite fails to encode special characters|
|11765|New|Nor|2002-08-16|.apaci.install.tmp installs in existing httpd.conf|
|11986|New|Nor|2002-08-23|Restart hangs when piping logs on rotation log pro|
|12096|New|Nor|2002-08-27|apxs does not handle binary dists installed at non|
|12574|New|Nor|2002-09-12|Broken images comes from mod_proxy when caching ww|
|12583|New|Nor|2002-09-12|First piped log process do not handle SIGTERM |
|12598|Opn|Maj|2002-09-12|Apache hanging in Keepalive State |
|12770|Opn|Nor|2002-09-18|ErrorDocument fail redirecting error 400  |
|13188|New|Nor|2002-10-02|does not configure correctly for hppa64-hp-hpux11.|
|13274|Ass|Nor|2002-10-04|Subsequent requests are destroyed by the request e|
|13607|Opn|Enh|2002-10-14|Catch-all enhancement for vhost_alias?|
|13687|New|Min|2002-10-16|Leave Debug symbol on Darwin  |
|13822|New|Maj|2002-10-21|Problem while running Perl modules accessing CGI::|
|14095|Opn|Nor|2002-10-30|Change default Content-Type (DefaultType) in defau|
|14250|New|Maj|2002-11-05|Alternate UserDirs don't work intermittantly  |
|14443|New|Maj|2002-11-11|Keep-Alive randomly causes TCP RSTs   |
|14448|Opn|Cri|2002-11-11|Apache WebServer not starting if installed on Comp|
|14518|Opn|Nor|2002-11-13|QUERY_STRING parts not incorporated by mod_rewrite|
|14670|New|Cri|2002-11-19|Apache didn't deallocate unused memory|
|14748|New|Nor|2002-11-21|Configure Can't find DBM on Mac OS X  |
|15011|New|Nor|2002-12-03|Apache processes not timing out on Solaris 8  |
|15028|New|Maj|2002-12-03|RedirectMatch does not escape properly|
|16013|Opn|Nor|2003-01-13|Fooling mod_autoindex + IndexIgnore   |
|16236|New|Maj|2003-01-18|Include directive in Apache is not parsed within c|
|16241|New|Maj|2003-01-19|Apache processes takes 100% CPU until killed manua|
|16492|New|Maj|2003-01-28|mod_proxy doesn't correctly retrieve values from C|

Bug report for Apache httpd-2 [2006/02/05]

2006-02-05 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 7483|Ass|Enh|2002-03-26|Add FileAction directive to assign a cgi interpret|
| 7741|Ass|Nor|2002-04-04|some directives may be placed outside of proper co|
| 7862|New|Enh|2002-04-09|suexec never log a group name.|
| 8483|Inf|Min|2002-04-24|apache_2.0 .msi installer breaks .log and .conf fi|
| 8713|New|Min|2002-05-01|No Errorlog on PROPFIND/Depth:Infinity|
| 8925|New|Cri|2002-05-09|Service Install (win32 .msi/.exe) fails for port i|
| 9727|New|Min|2002-06-09|Double quotes should be flagged as T_HTTP_TOKEN_ST|
| 9903|Opn|Maj|2002-06-16|mod_disk_cache does not remove temporary files|
| 9945|New|Enh|2002-06-18|[PATCH] new funtionality for apache bench |
|10114|Ass|Enh|2002-06-21|Negotiation gives no weight to order, only q value|
|10154|Ass|Nor|2002-06-23|ApacheMonitor interferes with service uninstall/re|
|10722|Opn|Nor|2002-07-12|ProxyPassReverse doesn't change cookie paths  |
|10775|Ass|Cri|2002-07-13|SCRIPT_NAME wrong value   |
|10932|Opn|Enh|2002-07-18|Allow Negative regex in LocationMatch |
|11035|New|Min|2002-07-22|Apache adds double entries to headers generated by|
|11294|New|Enh|2002-07-30|desired vhost_alias option|
|11427|Opn|Maj|2002-08-02|Possible Memory Leak in CGI script invocation |
|11540|Opn|Nor|2002-08-07|ProxyTimeout ignored  |
|11580|Opn|Enh|2002-08-09|generate Content-Location headers |
|11971|Opn|Nor|2002-08-23|HTTP proxy header Via with wrong hostname if Ser|
|11997|Opn|Maj|2002-08-23|Strange critical errors possibly related to mpm_wi|
|12033|Opn|Nor|2002-08-26|Graceful restart immidiately result in [warn] long|
|12340|Opn|Nor|2002-09-05|WindowsXP proxy, child process exited with status |
|12680|New|Enh|2002-09-16|Digest authentication with integrity protection   |
|12885|New|Enh|2002-09-20|windows 2000 build information: mod_ssl, bison, et|
|13029|New|Nor|2002-09-26|Win32 mod_cgi failure with non-ASCII characters in|
|13101|Inf|Cri|2002-09-27|Using mod_ext_filter with mod_proxy and http/1.1 c|
|13599|Ass|Nor|2002-10-14|autoindex formating broken for multibyte sequences|
|13603|New|Nor|2002-10-14|incorrect DOCUMENT_URI in mod_autoindex with Heade|
|13661|Ass|Enh|2002-10-15|Apache cannot not handle dynamic IP reallocation  |
|13946|Inf|Nor|2002-10-24|reverse proxy errors when a document expires from |
|13986|Ass|Enh|2002-10-26|remove default MIME-type  |
|14016|Inf|Nor|2002-10-28|Problem when using mod_ext_filter with ActivePerl |
|14090|New|Maj|2002-10-30|mod_cgid always writes to main server error log   |
|14104|Opn|Enh|2002-10-30|not documented: must restart server to load new CR|
|14206|New|Nor|2002-11-04|DirectoryIndex circumvents -FollowSymLinks option |
|14227|Ass|Nor|2002-11-04|Error handling script is not started (error 500) o|
|14496|New|Enh|2002-11-13|Cannot upgrade 2.0.39 - 2.0.43. Must uninstall fi|
|14556|Inf|Nor|2002-11-14|mod_cache with mod_mem_cache enabled doesnt cash m|
|14858|New|Enh|2002-11-26|mod_cache never caches responses for requests requ|
|14922|Ass|Enh|2002-11-28|target is currently hardcoded to 'apache2'  |
|15045|Ass|Nor|2002-12-04|addoutputfilterbytype doesn't work for defaulted t|
|15233|Opn|Nor|2002-12-10|move AddType application/x-x509-ca-cert from ssl.c|
|15235|New|Nor|2002-12-10|add application/x-x509-email-cert, application/x-x|
|15625|New|Nor|2002-12-23|mention mod_ssl in http://nagoya.apache.org/dist/h|
|15626|New|Nor|2002-12-23|mention which modules are part of the (binary) dis|
|15631|New|Nor|2002-12-23|mention in httpd.conf that mod_ssl is not included|
|15719|Inf|Nor|2002-12-30|WebDAV MOVE to destination URI which is content-ne|
|15757|Opn|Nor|2003-01-02|Assumption of sizeof (void*)/int begin equal (64-b|
|15857|Opn|Nor|2003-01-07|MUST handle chunked response with a 16385Byte-lo|
|15859|Opn|Nor|2003-01-07|wrong Content-Length header is forwarded when de-c|

[EMAIL PROTECTED]

2006-02-05 Thread sachin sachin
Hi,

In proxy_html module, I configured proxyHTMLURLMap value like below

ProxyHTMLURLMap (.*) http://192.168.112.53:8080/${TARGET_SERVER}/$1 RXi

Here i would try to get value of TARGET_SERVER value dynamically from the request structure (recquest_rec *).

How to store value in request_rec ?
Is there any way to get the value from the request_rec and configured dynamically in proxyHTMLURLMap ?

Thanks,
sachin