12345678910111213141516171819202122232425262728 |
- server {
- listen 80 default_server;
- root /app/public;
- client_max_body_size 50M;
- index index.php index.html index.htm default.php default.htm default.html;
- location ~ [^/]\.php(/|$) {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-74.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- location / {
- if (!-e $request_filename){
- rewrite ^(.*)$ /index.php?s=$1 last;
- break;
- }
- }
- location = /404.html {
- internal;
- }
- }
|