NgInx: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 3: | Zeile 3: | ||
= Installation = | = Installation = | ||
<pre> | <pre> | ||
apt-get install php5-cli php5-fpm nginx-full mariadb-server mariadb-client | apt-get install php5-cli php5-fpm nginx-full mariadb-server mariadb-client php5-mysql | ||
</pre> | </pre> | ||
Zeile 15: | Zeile 15: | ||
try_files $uri $uri/ /index.php?q=$uri&$args; | try_files $uri $uri/ /index.php?q=$uri&$args; | ||
} | } | ||
location ~ \.php$ { | |||
try_files $uri =404; | try_files $uri =404; | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | fastcgi_split_path_info ^(.+\.php)(/.+)$; |
Version vom 11. Juli 2015, 21:02 Uhr
Installation
apt-get install php5-cli php5-fpm nginx-full mariadb-server mariadb-client php5-mysql
Konfiguration
server { listen 80; server_name emex; root /home/www/emex; index index.php index.html; location /home/www/emex { try_files $uri $uri/ /index.php?q=$uri&$args; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } }