Demo entry 6640936

nginx

   

Submitted by anonymous on Sep 14, 2017 at 10:59
Language: C. Code size: 1.2 kB.

    server {
        listen       80; 
    
        listen 443 ssl;
        ssl_certificate     /home/work/software/nginx/ca/www.iqingyi.com.crt;
        ssl_certificate_key /home/work/software/nginx/ca/www.iqingyi.com.key;

        server_name  localhost;
        index index.php;
        root          /home/work/Qingyi/web/trunk/; 
          
        location / { 
            if (-e $request_filename) {
                break;
            }   
            if (!-e $request_filename) {
                rewrite ^/(.*)$ /index.php/$1 last;
            }   
        }   

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }   

        location ~ /index.php/ {
            fastcgi_pass    127.0.0.1:9000;
            fastcgi_index   index.php;
            include         fastcgi_params;
            fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }   
        location ~ .*\.php {
            fastcgi_pass    127.0.0.1:9000;
            fastcgi_index   index.php;
            include         fastcgi_params;
            fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }   
    }   

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).