includes with Apache::ASP
authorivan <ivan>
Tue, 23 Mar 2004 03:29:40 +0000 (03:29 +0000)
committerivan <ivan>
Tue, 23 Mar 2004 03:29:40 +0000 (03:29 +0000)
htetc/global.asa
httemplate/docs/install.html
httemplate/docs/upgrade10.html

index bb94b92..193f997 100644 (file)
@@ -197,6 +197,7 @@ sub sprintAutoProfile {
 }
 
 sub include {
+  $_[0] =~ s(^/)();
   $Response->Include(@_);
 }
 
index 0217c90..5f2ca4c 100644 (file)
@@ -131,6 +131,7 @@ cp&nbsp;htetc/global.asa&nbsp;/usr/local/etc/freeside/asp-global/global.asa
       <li>Configure Apache for the Global directory and to execute .cgi files using Apache::ASP.  For example:
 <font size="-1"><pre>
 PerlModule Apache::ASP
+# your freeside document root
 &lt;Directory&nbsp;/usr/local/apache/htdocs/freeside-asp&gt;
 &lt;Files ~ (\.cgi|\.html)&gt;
 SetHandler perl-script
@@ -142,6 +143,8 @@ $MLDBM::RemoveTaint = 1;
 PerlSetVar&nbsp;Global&nbsp;/usr/local/etc/freeside/asp-global/
 PerlSetVar&nbsp;Debug&nbsp;2
 PerlSetVar&nbsp;RequestBinaryRead&nbsp;Off
+# your freeside document root
+PerlSetVar&nbsp;IncludesDir&nbsp;/usr/local/apache/htdocs/freeside-asp
 &lt;/Directory&gt;
 </pre></font>
     </ul></td>
index 6f7924f..14e3085 100644 (file)
@@ -4,7 +4,7 @@ this is incomplete
 install DBD::Pg 1.32 (or, if you're using a Perl version before 5.6, you could try installing DBD::Pg 1.22 with <a href="http://420.am/~ivan/DBD-Pg-1.22-fixvercmp.patch">this patch</a> and commenting out the "use DBD::Pg 1.32" at the top of DBIx/DBSchema/DBD/Pg.pm)
 install DBIx::DBSchema 0.23
 install Net::SSH 0.08
-- If using Apache::ASP, add PerlSetVar RequestBinaryRead Off to your Apache configuration and make sure you are using Apache::ASP minimum version 2.55. 
+- If using Apache::ASP, add PerlSetVar RequestBinaryRead Off and PerlSetVar IncludesDir /your/freeside/document/root/ to your Apache configuration and make sure you are using Apache::ASP minimum version 2.55. 
 
 install NetAddr::IP, Chart::Base, IPC::ShareLite and Locale::SubCountry