티스토리 뷰
location /sample {
alias /home/sample;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
}
위 처럼 설정을 하며 alias 시킨 곳에서 추가적으로 php가 작동 가능하도록 설정 하였음
'Centos7' 카테고리의 다른 글
[Nginx] SSH보안 인증서 설정 (0) | 2017.02.23 |
---|---|
[Nginx] Conf 기본 설정 (0) | 2017.02.23 |
[Nginx] Redirect 설정 (0) | 2017.02.23 |
[Centos7] PHP7 설치 (0) | 2017.02.23 |
[Centos7] MariaDB 설치 (0) | 2017.02.23 |