티스토리 뷰

Centos7

[Nginx] Conf 기본 설정

은후아빠곰 2017. 2. 23. 16:43

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
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함