User Tools

Site Tools


linux:nginx

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
Next revisionBoth sides next revision
linux:nginx [2014/07/06 10:08] – [Enable directory list] percylinux:nginx [2014/07/11 01:52] – external edit 127.0.0.1
Line 43: Line 43:
                 deny all;                 deny all;
         }         }
 +}
 +
 +</code>
 +
 +===== Enable php =====
 +   apt-get install php5-fpm
 +  /etc/init.d/php5-fpm restart
 +
 +<code>
 + grep -v -E "#|^$" /etc/nginx/sites-available/ef.pjq.me.conf 
 +server {
 + listen 80;
 + root /var/www/ef/;
 + index index.html index.htm;
 + server_name  ef.pjq.me;
 + location / {
 + try_files $uri $uri/ =404;
 +                autoindex on;
 + }
 + location ~ \.php$ {
 + fastcgi_split_path_info ^(.+\.php)(/.+)$;
 + fastcgi_pass unix:/var/run/php5-fpm.sock;
 + fastcgi_index index.php;
 + include fastcgi_params;
 + }
 } }
  
 </code> </code>
  
/var/www/dokuwiki/wiki/data/pages/linux/nginx.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1