Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[fotobilder] r1432: Last changes for Apache2 migration

Committer: gariev
Last changes for Apache2 migration
U   trunk/lib/startup.pl
Modified: trunk/lib/startup.pl
===================================================================
--- trunk/lib/startup.pl	2010-09-07 07:18:30 UTC (rev 1431)
+++ trunk/lib/startup.pl	2010-09-10 17:07:54 UTC (rev 1432)
@@ -20,16 +20,18 @@
 LJ::Request->add_httpd_conf("ServerAdmin $FB::ADMIN_EMAIL")
     if $FB::ADMIN_EMAIL;
 
-LJ::Request->add_httpd_conf(qq{
-PerlInitHandler +Apache::FotoBilder
-DirectoryIndex index.html index.bml
+if (!LJ::Request::MP2()) {
+    ## This section is needed for old Apache/mod_perl 1 code.
+    LJ::Request->add_httpd_conf(qq{
+        PerlInitHandler +Apache::FotoBilder
+        DirectoryIndex index.html index.bml
 
-# BML support:
-<FilesMatch "\\.bml\$">
-  SetHandler perl-script
-  PerlHandler +Apache::BML
-</FilesMatch>
+        # BML support:
+        <FilesMatch "\\.bml\$">
+          SetHandler perl-script
+          PerlHandler +Apache::BML
+        </FilesMatch>
+    });
+}
 
-});
-
 1;

Tags: fotobilder, gariev, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments