123456789101112131415161718192021222324252627 |
- server {
- listen 80;
- root /data/www;
- index index.php index.html index.htm;
- server_name milkyway.guern.eu;
- # add locations for static files to not forward these requests to PHP
- location /images {
- try_files $uri $uri/ =404;
- }
- location /scripts {
- try_files $uri $uri/ =404;
- }
- location /api {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /data/www/api/index.php;
- fastcgi_pass php-upstream;
- }
- location / {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /data/www/index.php;
- fastcgi_pass php-upstream;
- }
- }
|