auto-ssl/lua-resty-auto-ssl

PHP FMP not working

Closed this issue · 1 comments

Hey,

I am using php fpm, I have already installed the openresty successfully. But there is issue, I think my php fpm fastcgi params not working. Its always redirect to one of my index.html page.
My url like:
https://sub.domain.com/x/xxx/xxx/xxx

I think my param not working.

I am using slim framework.

My openresy nginx.conf file configuration like below:
```
server_name ~.;

    index my_file.php;
    root my_path_to_directory;

    error_log /var/log/nginx/my-error.log;
    access_log /var/log/nginx/my-access.log;

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri /my_file.php$is_args$args;
     }

     location ~ \.php {
         try_files $uri =404;
         fastcgi_split_path_info ^(.+\.php)(/.+)$;
         fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

         include fastcgi_params;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         fastcgi_param SCRIPT_NAME $fastcgi_script_name;
         fastcgi_index my_file.php;
    }

Please help me, it should be work using fastcgi param.

Sorry. Now its working fine! It was some issue my code related.
Thanks.