[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5194] addons/1.3



Revision: 5194
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5194&view=rev
Author:   einhverfr
Date:     2012-11-14 13:01:37 +0000 (Wed, 14 Nov 2012)
Log Message:
-----------
fcgi configuration template for mod_fastcgi

Modified Paths:
--------------
    addons/1.3/plack-starlet/trunk/tools/ledgersmb.psgi

Added Paths:
-----------
    addons/1.3/plack-fcgi/trunk/lsmb_13.conf

Added: addons/1.3/plack-fcgi/trunk/lsmb_13.conf
===================================================================
--- addons/1.3/plack-fcgi/trunk/lsmb_13.conf	                        (rev 0)
+++ addons/1.3/plack-fcgi/trunk/lsmb_13.conf	2012-11-14 13:01:37 UTC (rev 5194)
@@ -0,0 +1,63 @@
+# This file must be edited to substitute the current path with WORKING_DIR
+
+Alias /ledgersmb_1.3 WORKING_DIR/
+LoadModule fastcgi_module modules/mod_fastcgi.so
+
+LogLevel debug
+
+FastCgiExternalServer WORKING_DIR/ledgersmb.fcgi -socket /var/run/httpd/fastcgi/lsmb.sock -pass-header Authorization
+
+<Directory WORKING_DIR>
+
+  # Rewrite rule to allow HTTP Authorization information to the scripts only
+  # from this directory.
+  RewriteEngine On
+  RewriteBase /ledgersmb_1.3/
+  RewriteRule ^([^/]*\.pl) ledgersmb.fcgi/$0 
+
+
+  AllowOverride All
+  Options Includes FollowSymlinks +ExecCGI
+
+
+  # By default, only allow from localhost.  If you change this, please be
+  # advised that you should use SSL protection on any and all network
+  # connections that access this application in order to protect usernames and
+  # passwords.
+
+  # The rest of this file just tightens up security.
+  <Files ~ "\.conf$">
+    Order Deny,Allow
+    Deny from All
+  </Files>
+</Directory>
+
+<Directory WORKING_DIR/users>
+  Order Deny,Allow
+  Deny from All
+</Directory>
+
+<Directory WORKING_DIR/bin>
+  Order Deny,Allow
+  Deny from All
+</Directory>
+
+<Directory WORKING_DIR/utils>
+  Order Deny,Allow
+  Deny from All
+</Directory>
+
+<Directory WORKING_DIR/spool>
+  Order Deny,Allow
+  Deny from All
+</Directory>
+
+<Directory WORKING_DIR/templates>
+  Order Deny,Allow
+  Deny from All
+</Directory>
+
+<Directory WORKING_DIR/LedgerSMB>
+  Order Deny,Allow
+  Deny from All
+</Directory>

Modified: addons/1.3/plack-starlet/trunk/tools/ledgersmb.psgi
===================================================================
--- addons/1.3/plack-starlet/trunk/tools/ledgersmb.psgi	2012-11-14 09:56:04 UTC (rev 5193)
+++ addons/1.3/plack-starlet/trunk/tools/ledgersmb.psgi	2012-11-14 13:01:37 UTC (rev 5194)
@@ -4,18 +4,18 @@
 
   use Plack::App::CGIBin;
   use Plack::Builder;
-  #use LedgerSMB;
-  #use LedgerSMB::Form;
-  #use CGI::Simple;
-  #$CGI::Simple::DISABLE_UPLOADS = 0;
-  #use Data::Dumper;
-  #use LedgerSMB::Template;
-  #use LedgerSMB::Template::HTML;
-  #use LedgerSMB::Template::LaTeX;
-  #use LedgerSMB::User;
-  #use LedgerSMB::Locale;
-  #use Try::Tiny;
-  #use Log::Log4perl;
+  use LedgerSMB;
+  use LedgerSMB::Form;
+  use CGI::Simple;
+  $CGI::Simple::DISABLE_UPLOADS = 0;
+  use Data::Dumper;
+  use LedgerSMB::Template;
+  use LedgerSMB::Template::HTML;
+  use LedgerSMB::Template::LaTeX;
+  use LedgerSMB::User;
+  use LedgerSMB::Locale;
+  use Try::Tiny;
+  use Log::Log4perl;
 
   my $app = Plack::App::CGIBin->new(root => "$path")->to_app;
   builder {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.