From b230bf207df576fa2ad165702184edf21f674ce7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 May 2017 18:44:05 +0200 Subject: Bump version to v0.9.0 Signed-off-by: ArthurHoaro --- doc/Server-configuration.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/Server-configuration.html') diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html index 2f1c25b5..0e6b220a 100644 --- a/doc/Server-configuration.html +++ b/doc/Server-configuration.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To
      @@ -87,6 +88,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • @@ -196,6 +198,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf

      .htaccess

      Shaarli use .htaccess Apache files to deny access to files that shouldn't be directly accessed (datastore, config, etc.). You need the directive AllowOverride All in your virtual host configuration for them to work.

      Warning: If you use Apache 2.2 or lower, you need mod_version to be installed and enabled.

      +

      Apache module mod_rewrite must be enabled to use the REST API. URL rewriting rules for the Slim microframework are stated in the root .htaccess file.

      LightHttpd

      Nginx

      Foreword

      @@ -296,11 +299,14 @@ http { error_log /var/log/nginx/error.log; location /shaarli/ { + try_files $uri /shaarli/index.php$is_args$args; access_log /var/log/nginx/shaarli.access.log; error_log /var/log/nginx/shaarli.error.log; } location ~ (index)\.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; include fastcgi.conf; @@ -335,6 +341,10 @@ location ~ ~$ { }
      # /etc/nginx/php.conf
       location ~ (index)\.php$ {
      +    # Slim - split URL path into (script_filename, path_info)
      +    try_files $uri =404;
      +    fastcgi_split_path_info ^(.+\.php)(/.+)$;
      +
           # filter and proxy PHP requests to PHP-FPM
           fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
           fastcgi_index  index.php;
      @@ -367,6 +377,9 @@ http {
               server_name  my.first.domain.org;
       
               location /shaarli/ {
      +            # Slim - rewrite URLs
      +            try_files $uri /shaarli/index.php$is_args$args;
      +
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
      @@ -425,6 +438,9 @@ http {
               ssl_certificate_key  /home/john/ssl/localhost.key;
       
               location /shaarli/ {
      +            # Slim - rewrite URLs
      +            try_files $uri /index.php$is_args$args;
      +
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
      -- 
      cgit v1.2.3