Please document how to run it under nginx
Closed, InvalidPublic

Description

nginx                           
server {
   #                                                                         
   # […] blablabla, misc config […]    
   #

    location ~ /(data|conf|bin|inc|install\.php)/ { deny all; }                  
                                                                                 
    location / { try_files $uri $uri/ @dokuwiki; }                               
                                            
    location @dokuwiki {                                                         
        rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;                  
        rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;                
        rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;        
        rewrite ^/(.*) /doku.php?id=$args last;                                  
    }                                                                            
                                                                                 
    location ~ ^/lib/plugins/davcal/ics.php/(.*)$ {                              
        include fastcgi_params;                                                  
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        
        fastcgi_param REDIRECT_STATUS 200;                                       
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;                          
                                                                                 
        fastcgi_split_path_info ^(.+\.php)(.*)$;                                 
        fastcgi_param PATH_INFO $fastcgi_path_info;                              
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;          
    }                                                                            
                                                                                 
    location ~ \.php$ {                                                          
        try_files $uri $uri/ /doku.php =404;                                     
        include fastcgi_params;                                                  
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        
        fastcgi_param REDIRECT_STATUS 200;                                       
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;                          
    }                                                                            
}

Notice the /lib/plugins/davcal/ics.php/(.*) block.
This should be documented, because without it, this plugin doesn't work.

(as a side-note, it would be great to be able to pass the .ics file as a *GET* or *POST* parameter instead.)

jvoisin created this task.Jun 19 2017, 11:34 PM
andreas closed this task as Invalid.Jun 20 2017, 7:57 AM
andreas added a subscriber: andreas.

Thanks for the documentation, please feel free to add it to the Wiki at www.dokuwiki.org/plugin:davcal

Regarding GET or POST: Please open a separate issue and provide a patch as I do not know when I'll have the time to work on that.