与Nginx上的其他站点一起运行的Rundeck,其他站点是php

我在RHEL 7.5的nginx中托管了rundeck以及另一个恰好是php的站点。我有rundeck工作,但无法使其他站点工作。我可以将其下载到其他站点,但无法使用php。我已按照以下指示进行操作:

NGINX-multiSite

我确定这与我的位置限制有关,但不能完全避免在非/网站上添加php支持。有人知道吗?这是我的nginx rundeck.conf文件(适用于nginx,其他站点上的502错误网关错误):

server {
listen 8080;
listen [::]:8080;
server_name myServer.myDomain;
access_log  /var/log/nginx/myLogFile.access.log;

location /wiki {
  alias /var/www/wiki/html;
  index index.html index.htm index.php;
}

location ~* \.php$ {
  include /etc/nginx/fastcgi_params;
  fastcgi_pass 127.0.0.1:8080;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

location / {
  proxy_pass http://localhost:4440;
  proxy_set_header X-Forwarded-Host $host:$server_port;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

我在另一个站点(wiki)上所做的所有操作都在抛出一个php版本信息文件。任何帮助,将不胜感激!谢谢!

syl1981 回答:与Nginx上的其他站点一起运行的Rundeck,其他站点是php

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3164232.html

大家都在问