티스토리 뷰
server {
listen 80;
server_name host;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
root /home/Host;
index index.php index.html index.htm;
location ~ \.php$ {
try_files $uri $uri/ /index.php;
if (!-f $request_filename) { return 403; }
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
'Centos7' 카테고리의 다른 글
[Centos7] SELinux 환경에서 호스팅 폴더 설정 (0) | 2017.02.23 |
---|---|
[Nginx] SSH보안 인증서 설정 (0) | 2017.02.23 |
[Nginx] Alias 설정 (0) | 2017.02.23 |
[Nginx] Redirect 설정 (0) | 2017.02.23 |
[Centos7] PHP7 설치 (0) | 2017.02.23 |