###エラー内容
PHPファイルにアクセスすると、502 Bad Gatewayと表示されます。
サーバーはCentOs7です。
よろしくお願いします。
###コード
www.conf
user = nginx ; RPM: Keep a group allowed to write in log dir. group = nginx listen.owner = nginx listen.group = nginx ;listen.mode = 0660 php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/session php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache ;php_value[opcache.file_cache] = /var/lib/php/opcache
default.conf
upstream api { server 127.0.0.1:8080; } server { server_name test; listen 80 default_server; listen [::]:80 default_server; root /home/web/open-nekonium-pool/www/dist; index index.html index.htm index.nginx-debian.html; location / { index index.html; try_files $uri $uri/ index.html =404; } location /api { proxy_pass http://api/; } location ~ .php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:8998; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。