Loading ...
Sorry, an error occurred while loading the content.
 

Fix for Apache::ASP with Apache 2.4

Expand Messages
  • Josh Chamas
    Hi! I have a fix for running Apache::ASP under Apache 2.4, at least as is patched under Ubuntu and likely other platforms where mod_perl and Apache 2.4
    Message 1 of 1 , May 20 3:19 PM
      Hi!

      I have a fix for running Apache::ASP under Apache 2.4, at least as is patched
      under Ubuntu and likely other platforms where mod_perl and Apache 2.4 co-exist.
      We are considering this fix and some other changes for an upcoming Apache::ASP
      2.63 release.

      --- lib/Apache/ASP/StateManager.pm (revision 30)
      +++ lib/Apache/ASP/StateManager.pm (revision 31)
      @@ -82,7 +82,8 @@
      $self->{cookie_path} = &config($self, 'CookiePath', undef, '/');
      $self->{cookie_domain} = &config($self, 'CookieDomain');
      $self->{paranoid_session} = &config($self, 'ParanoidSession');
      - $self->{remote_ip} = $r->connection()->remote_ip();
      + $self->{remote_ip} = eval { $r->connection()->remote_ip() }; # may
      not exist in Apache 2.4
      + $self->{remote_ip} ||= eval { $r->connection()->client_ip() }; #
      should exist in Apache 2.4
      $self->{session_count} = &config($self, 'SessionCount');

      The latest trunk tarball for Apache::ASP can be downloaded from here:

      http://sourceforge.net/p/apache-asp/code/HEAD/tarball

      General changes for Apache::ASP 2.63 so far include:

      $MODULE=Apache::ASP; $VERSION = 2.63; $DATE="2014/05/20"

      + fixed $r->connection()->remote_ip() to use client_ip() access for Apache 2.4

      + Added section ``raw'' to MailErrors.inc to debug POSTs without
      form fields

      - MailErrorsHTML now uses monospaced fonts for errors. Easier on
      the eyes and more informative

      - Added a clumsy regex to avoid header longer than 70 chars

      - removed deprecated "Extra" module references from Makefile.PL and
      Bundle::Apache::ASP::Extra,
      including Apache::Filter, Apache::SSI, Bundle::XML, XML::Sablotron, and
      Tie::TextDir

      Regards,

      Josh



      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    Your message has been successfully submitted and would be delivered to recipients shortly.