대문 최근 변경 모든 문서

NGINX

NGINX 설정 예제

server {
    listen 80;
    server_name modernpug.org qna.9cells.com;
    return 301 $scheme://www.modernpug.org$request_uri;
}

server {
    listen 80;
    index index.php index.html;
    server_name www.modernpug.org;
    error_log  /var/log/nginx/error.log;
    access_log /var/log/nginx/access.log;
    root /var/www/www.modernpug.org/site/public;

    location / {
        try_files $uri /index.php?$args;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass php-modernpug:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}