NgInx

Aus Info-Theke
Zur Navigation springen Zur Suche springen


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;
        }
}