| 216 | |
| 217 | Przykładowa konfiguracja dla środowiska linuxowego (Debian jessie, nginx 1.6.2) |
| 218 | {{{ |
| 219 | server { |
| 220 | listen 80 default_server; |
| 221 | listen [::]:80 default_server; |
| 222 | |
| 223 | root /var/www/edokumenty/public_html; |
| 224 | |
| 225 | index index.html index.php engine engine.php; |
| 226 | |
| 227 | server_name _; |
| 228 | |
| 229 | location / { |
| 230 | try_files $uri $uri/ /index.php?$query_string; |
| 231 | } |
| 232 | |
| 233 | location ~ \.php($|/) { |
| 234 | fastcgi_split_path_info ^(.+?\.php)(/.*)$; |
| 235 | fastcgi_pass unix:/var/run/php5-fpm.sock; |
| 236 | fastcgi_index index.php; |
| 237 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
| 238 | fastcgi_param PATH_INFO $fastcgi_path_info; |
| 239 | include fastcgi_params; |
| 240 | } |
| 241 | |
| 242 | location ~ engine { |
| 243 | fastcgi_split_path_info ^(.+engine)(/.*)$; |
| 244 | fastcgi_pass unix:/var/run/php5-fpm.sock; |
| 245 | fastcgi_index engine; |
| 246 | fastcgi_param PATH_INFO $fastcgi_path_info; |
| 247 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
| 248 | include fastcgi_params; |
| 249 | } |
| 250 | } |
| 251 | }}} |