Q&A

CMS/프레임워크 Rhymix 1.9
개발 언어 PHP 7.1

갑자기 504 gateout 오류가 나와서 nginx 설정을 고친 후 재시작을 했는데 제대로 되지 않은 것 같아 원래 설정으로 복구 후 다시 재시작을 눌렸더니

 

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-09-12 14:40:28 KST; 8s ago
  Process: 2026 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Sep 12 14:40:28 fcseoulite systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 12 14:40:28 fcseoulite nginx[2026]: nginx: [emerg] duplicate location "/" in /etc/nginx/conf.d/default.conf:17
Sep 12 14:40:28 fcseoulite nginx[2026]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 12 14:40:28 fcseoulite systemd[1]: nginx.service: Control process exited, code=exited status=1
Sep 12 14:40:28 fcseoulite systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Sep 12 14:40:28 fcseoulite systemd[1]: nginx.service: Unit entered failed state.
Sep 12 14:40:28 fcseoulite systemd[1]: nginx.service: Failed with result 'exit-code'.
 

 

와 같은 오류가 나옵니다.

 

nginx 설정은

server {

    server_name fcseoulite.me; 

    root /usr/share/nginx/html; 

    index index.html index.php;
    
    client_max_body_size 32m;

    location / { 
        index index.php index.html;
    }

    include snippets/rhymix.conf;

    location ~ [^/]\.php(/|$) {
        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        if (!-f $document_root$fastcgi_script_name) { 
            return 404;
        }
        
        fastcgi_pass unix:/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param HTTPS on;
        include fastcgi_params;    
    }

 

로 되어있습니다.

댓글 5