Package: dotclear
Version: 2.6.4+dfsg-1
Severity: wishlist

Dear Dario Minnucci,

thanks for maintaining this nice blog software.

I've setup a weblog with dotclear served by nginx and would like to
tell you how I configured nginx, maybe, to include it in the package as a
suggestion for others.

So here's the nginx configuration for running the blog in the sub-URI
/weblog:

  location ^~ /weblog {
      alias /usr/share/dotclear/web;
      index index.php;
      location ~ \..*/.*\.php$ { return 403; }  # For security
      location ~ .+\.php {
          include  /etc/nginx/fastcgi_params;
          fastcgi_split_path_info  ^/weblog(.+\.php)(.*)$;
          fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
          fastcgi_param  PATH_INFO       $fastcgi_path_info;
          fastcgi_param  SCRIPT_NAME     $document_uri;
          fastcgi_pass  unix:/run/www/php-cgi.sock;
      }
  }

This location block has to be put into an appropriate server section of
the nginx configuration file.
And, it of course needs a running php-cgi server listening at the socket
"/run/www/php-cgi.sock". I manage that with the package php5-cgi and a
self-written init script.
The tricky part are the lines beginning with "fastcgi".

If interested I'm glad to give further informations.
--
Regards,
jvp.


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'unstable'), (5, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages dotclear depends on:
ii  dbconfig-common                  1.8.47+nmu3
ii  debconf [debconf-2.0]            1.5.56
ii  libjs-jquery                     1.7.2+dfsg-3.2
ii  libjs-jquery-cookie              10-2
ii  libjs-jquery-ui                  1.10.1+dfsg-1
ii  mysql-client                     5.5.43-0+deb8u1
ii  mysql-client-5.5 [mysql-client]  5.5.43-0+deb8u1
ii  nginx-light [httpd]              1.6.2-5
ii  php5-cgi                         5.6.7+dfsg-1
ii  php5-cli                         5.6.7+dfsg-1
ii  php5-sqlite                      5.6.7+dfsg-1
ii  sqlite3                          3.8.7.4-1

Versions of packages dotclear recommends:
ii  mysql-server         5.5.43-0+deb8u1
ii  nginx-light [httpd]  1.6.2-5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to