nginx 설정 - /etc/nginx/conf.d/default.conf

불당   
   조회 4846  

root만 수정하면 됩니다.

 

server {
    listen       80;
    server_name  localhost;

    port_in_redirect off;
    server_tokens off;
    autoindex off;
    client_max_body_size 20m;
    client_body_buffer_size 128k;
    # Define default caching of 24h
    #expires 86400s;
    #add_header Pragma public;
    #add_header Cache-Control "max-age=86400, public, must-revalidate, proxy-revalidate";
    root   /home/opencode/public_html/;
    #root   /usr/share/nginx/html;
    index  index.php index.html index.htm;
    #charset koi8-r;
    #access_log  /var/log/nginx/log/host.access.log  main;
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    #error_page  404              /404.html;
    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\. {
        deny  all;
    }
}

 

- opencode.co.kr -


제목Page 1/22
     
2014-06   116390   불당
2015-05   83305   불당
2015-10   67616   불당
2015-09   63497   불당
2015-11   49841   불당
06-06   607   불당
06-02   703   불당
05-29   755   불당
05-29   562   불당
2017-08   1229   불당
2017-08   1274   불당
2016-10   2924   불당
2016-10   3169   불당
2016-06   3211   불당
2016-06   7069   불당
2016-06   7030   불당
2016-06   3085   불당
2016-05   3150   불당
2016-04   3571   불당
2016-03   4349   불당
2016-04   4847   불당
2016-04   3995   불당
2016-03   3843   불당
2016-03   3664   불당
2016-03   3133   불당