'nginx php-fpm'에 해당되는 글 1건

  1. 2014.06.02 :: nginx php-fpm 설정
web server/nginx 2014. 6. 2. 18:46

다음과 같이 nginx.conf 파일에 추가한다.


            location ~ \.(php|c2s|inc|lib)$ {

                    if ( $request_uri ~ "/file.php" ) {

                        access_log off;

                    }

                    root            /var/www/html;

                    fastcgi_pass    unix:/dev/shm/php5-fpm.sock;

                    fastcgi_index   index.php;

                    fastcgi_param   SCRIPT_FILENAME /var/www/html$fastcgi_script_name;

                    include         fastcgi_params;

            }



php 파일 호출 시 다운로드가 된다면 위 설정을 확인

posted by 구닥다리 엔지니어
: