Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Both sides next revision
code:dokuwiki [2015/10/08 00:02]
::ffff:91.102.105.119
code:dokuwiki [2017/11/18 17:00] (current)
::ffff:85.181.5.238
Line 77: Line 77:
    
 ==== php-fpm ==== ==== php-fpm ====
 +for reverse proxy setup see [[.:notes:nginx]] 
 +<file nginx /etc/nginx/sites-available-notomorrow.de> 
 +client_max_body_size 50m; 
 +fastcgi_read_timeout 180; 
 +    
 +## needed because of the reverse proxy 
 +## x_forwarded port ans stuff is set there 
 +       
 +map $http_x_forwarded_port $external_port {  
 +    default $http_x_forwarded_port;  
 +    '' $server_port;  
 +}         
 +map $http_x_forwarded_proto $external_proto {  
 +    '' $https;  
 +    'http' '';  
 +    'https' 'on';  
 +}         
 +          
 +server {  
 +        listen [::]:80 default; 
 +        server_name notomorrow.de *.notomorrow.de; 
 +                                                                                                                                                  
 +        error_log  /var/log/nginx/notomorrow.error.log; 
 +        root   /srv/dokuwiki; 
 +        index  index.php index.html; 
 +          
 +        include        conf.d/status.inc; 
 +        include        conf.d/public.inc; 
 +        include        conf.d/dokuwiki.inc; 
 +        include        conf.d/notomorrow.php.inc; 
 +}  
 +</file> 
 +<file nginx /etc/nginx/conf.d/php.inc> 
 +location ~ \.php$ { 
 +  fastcgi_split_path_info ^(.+\.php)(/.+)$; 
 +  fastcgi_index  index.php;               
 +         
 +  #fastcgi_param  PATH_INFO          $fastcgi_path_info; 
 +  #fastcgi_param  PATH_TRANSLATED    $document_root$fastcgi_path_info; 
 +  #fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; 
 +         
 +  include fastcgi_params;                 
 +         
 +  fastcgi_param  SERVER_PORT          $external_port; 
 +  fastcgi_param  HTTPS                $external_proto;  
 +         
 +  fastcgi_intercept_errors on;            
 +  fastcgi_pass unix:/tmp/php-fpm-notomorrow.de.sock; 
 +           
 +}     
 +</file>
 <file php /etc/php/fpm/pool.d/notomorrow.de.conf> <file php /etc/php/fpm/pool.d/notomorrow.de.conf>
 [notomorrow.de] [notomorrow.de]

Log In