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

SF.net SVN: ledger-smb:[6419] branches/1.3/contrib



Revision: 6419
          http://sourceforge.net/p/ledger-smb/code/6419
Author:   pongracz
Date:     2014-01-07 15:32:04 +0000 (Tue, 07 Jan 2014)
Log Message:
-----------
Add a sample Nginx+fcgiwrap configuration to the contrib directory. It is handy for those, who would like to run ledgersmb on nginx webserver. Anyway, just google for nginx + fcgiwrap + perl for more up to date documents.

Added Paths:
-----------
    branches/1.3/contrib/nginx-fcgiwrap/
    branches/1.3/contrib/nginx-fcgiwrap/README
    branches/1.3/contrib/nginx-fcgiwrap/nginx-config/
    branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d/
    branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d/lsmb.conf
    branches/1.3/contrib/nginx-fcgiwrap/nginx-config/fastcgi_params
    branches/1.3/contrib/nginx-fcgiwrap/nginx-config/nginx.conf

Property Changed:
----------------
    branches/1.3/contrib/

Index: branches/1.3/contrib
===================================================================
--- branches/1.3/contrib	2014-01-07 11:00:27 UTC (rev 6418)
+++ branches/1.3/contrib	2014-01-07 15:32:04 UTC (rev 6419)

Property changes on: branches/1.3/contrib
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-01-07T15:06:10.173459Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0700
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Index: branches/1.3/contrib/nginx-fcgiwrap
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap	2014-01-07 11:00:27 UTC (rev 6418)
+++ branches/1.3/contrib/nginx-fcgiwrap	2014-01-07 15:32:04 UTC (rev 6419)

Property changes on: branches/1.3/contrib/nginx-fcgiwrap
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-01-07T15:27:16.994068Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0755
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: branches/1.3/contrib/nginx-fcgiwrap/README
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap/README	                        (rev 0)
+++ branches/1.3/contrib/nginx-fcgiwrap/README	2014-01-07 15:32:04 UTC (rev 6419)
@@ -0,0 +1,66 @@
+Author:       Istvan Pongracz
+email:        ..hidden..
+1st release:  7th Jan, 2014
+
+Contents:
+  nginx and fcgiwrap configuration files for Debian wheezy
+  README (this file)
+
+About
+  If you like to use nginx instead of other popular webservers, 
+  here you can find the sample configuration for nginx.
+
+  You can adjust the setup to your needs.
+
+  This is a very very basic howto, jut a guied for experts.
+
+HowTo
+
+  Nginx and fcgiwrap
+    Sorry, I assume you already installed nginx and fcgiwrap.
+    If not, just install them using your package manager.
+    Please do not install other webservers, except you know
+    what are you doing.
+ 
+  Ledgersmb
+    I assume you already installed all dependencies, you
+    haver working postgresql etc., and you are in the final
+    step to start the webserver.
+
+    Copy the ledgersmb files under /opt/ledgersmb
+    Check the owner: www-data:www-data
+    Check the permissions: 0775 just fine to start quickly.
+    
+    Check the nginx config files, adjust and copy them 
+    into /etc/nginx/
+
+  Start the system
+    Now you can start nginx and fcgiwrap as follows:
+    service fcgiwrap start
+    service nginx    start
+  
+    If you were lucky enough, now you are able to see lsmb in
+    your borwser when you visit your webserver on port 80 (http).
+
+Hints
+
+  How to restart fcgiwrap
+
+    Sometimes when you try to stop fcgiwrap service, you can still
+    see fcgiwrap processess running. Just kill them all.
+    
+    So, in this case the proper way to restart fcgiwrap:
+    service fcgiwrap stop
+    killall fcgiwrap
+    service fcgiwrap start
+
+  Install the latest ang greatest nginx version
+    
+    It is safe to use these repos (I guess :)
+
+    deb http://nginx.org/packages/mainline/debian/ wheezy nginx                                                                                              
+    deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main                                                                                            
+    deb-src http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main                                                                                        
+    deb-src http://nginx.org/packages/mainline/debian/ wheezy nginx      
+
+Good luck!


Property changes on: branches/1.3/contrib/nginx-fcgiwrap/README
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-01-07T15:28:48.442179Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0644
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Index: branches/1.3/contrib/nginx-fcgiwrap/nginx-config
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap/nginx-config	2014-01-07 11:00:27 UTC (rev 6418)
+++ branches/1.3/contrib/nginx-fcgiwrap/nginx-config	2014-01-07 15:32:04 UTC (rev 6419)

Property changes on: branches/1.3/contrib/nginx-fcgiwrap/nginx-config
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-01-07T15:09:21.247068Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0755
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Index: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d	2014-01-07 11:00:27 UTC (rev 6418)
+++ branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d	2014-01-07 15:32:04 UTC (rev 6419)

Property changes on: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-01-07T15:09:13.318665Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0755
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d/lsmb.conf
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d/lsmb.conf	                        (rev 0)
+++ branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d/lsmb.conf	2014-01-07 15:32:04 UTC (rev 6419)
@@ -0,0 +1,40 @@
+server {
+   listen       80;
+   server_name   yourservername.tld ;
+
+   #keepalive_timeout 300;
+
+   #ssl                  on;
+   #ssl_certificate      /etc/ssl/ledger.example.com.crt;
+   #ssl_certificate_key  /etc/ssl/ledger.example.com.key;
+
+   root   /opt/ledgersmb;
+
+   # Serve the login page at the root.
+   location = / {
+    rewrite ^ /login.pl redirect;
+   }
+
+   location ~ \.pl$ {
+    # Fastcgi parameters, include the standard ones                                                                                                                     
+     include /etc/nginx/fastcgi_params; 
+     proxy_set_header Host $http_host;
+     proxy_set_header X-Forwarded-Host $http_host;
+     proxy_set_header X-Real-IP $remote_addr;
+     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+     proxy_set_header X-Forwarded-Port 80; #this is important for Catalyst Apps!
+     fastcgi_pass unix:/run/fcgiwrap.socket;
+     fastcgi_index index.pl;
+     fastcgi_param SCRIPT_FILENAME /opt/ledgersmb$fastcgi_script_name;
+ 
+   }
+
+   # Deny access to configuration and other nasty places.
+   location ~ \.conf$ { deny all; }
+   location /users { deny all; }
+   location /bin { deny all; }
+   location /utils { deny all; }
+   location /spool { deny all; }
+   location /templates { deny all; }
+   location /LedgerSMB { deny all; }
+ }


Property changes on: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/conf.d/lsmb.conf
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-01-07T15:09:06.896149Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0644
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/fastcgi_params
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap/nginx-config/fastcgi_params	                        (rev 0)
+++ branches/1.3/contrib/nginx-fcgiwrap/nginx-config/fastcgi_params	2014-01-07 15:32:04 UTC (rev 6419)
@@ -0,0 +1,24 @@
+
+fastcgi_param  QUERY_STRING       $query_string;
+fastcgi_param  REQUEST_METHOD     $request_method;
+fastcgi_param  CONTENT_TYPE       $content_type;
+fastcgi_param  CONTENT_LENGTH     $content_length;
+
+fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
+fastcgi_param  REQUEST_URI        $request_uri;
+fastcgi_param  DOCUMENT_URI       $document_uri;
+fastcgi_param  DOCUMENT_ROOT      $document_root;
+fastcgi_param  SERVER_PROTOCOL    $server_protocol;
+fastcgi_param  HTTPS              $https if_not_empty;
+
+fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
+fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
+
+fastcgi_param  REMOTE_ADDR        $http_x_real_ip;
+fastcgi_param  REMOTE_PORT        $remote_port;
+fastcgi_param  SERVER_ADDR        $server_addr;
+fastcgi_param  SERVER_PORT        $server_port;
+fastcgi_param  SERVER_NAME        $server_name;
+
+# PHP only, required if PHP was built with --enable-force-cgi-redirect
+fastcgi_param  REDIRECT_STATUS    200;


Property changes on: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/fastcgi_params
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2013-11-23T09:39:51.000000Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0644
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/nginx.conf
===================================================================
--- branches/1.3/contrib/nginx-fcgiwrap/nginx-config/nginx.conf	                        (rev 0)
+++ branches/1.3/contrib/nginx-fcgiwrap/nginx-config/nginx.conf	2014-01-07 15:32:04 UTC (rev 6419)
@@ -0,0 +1,32 @@
+
+user  www-data;
+worker_processes  1;
+
+error_log  /var/log/nginx/error.log warn;
+pid        /var/run/nginx.pid;
+
+
+events {
+    worker_connections  1024;
+}
+
+
+http {
+    include       /etc/nginx/mime.types;
+    default_type  application/octet-stream;
+
+    log_format  main  '$http_x_real_ip - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent"';
+
+    access_log  /var/log/nginx/access.log  main;
+
+    sendfile        on;
+    #tcp_nopush     on;
+
+    #keepalive_timeout  65;
+
+    #gzip  on;
+
+    include /etc/nginx/conf.d/*.conf;
+}


Property changes on: branches/1.3/contrib/nginx-fcgiwrap/nginx-config/nginx.conf
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2013-11-23T09:37:17.000000Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0644
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits