【发布时间】:2021-07-30 14:14:26
【问题描述】:
我已经有 2 个环境设置和工作,我试图创建第三个类似于已经创建的环境。但对于后端,我认为与代理相关的错误。
这是错误日志:
[proxy:error] [pid 2814] (111)Connection refused: AH00957: HTTP: attempt to connect to 178.62.203.15:8990 (testing.api.requests.tarbeeta.com) failed
[proxy:error] [pid 2814] AH00959: ap_proxy_connect_backend disabling worker for (testing.api.requests.tarbeeta.com) for 60s
[proxy_http:error] [pid 2814] [client 41.44.42.14:64296] AH01114: HTTP: failed to make connection to backend: testing.api.requests.tarbeeta.com, referer: http://testing.api.r$
这是我的虚拟主机的设置
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin admin@tarbeeta.com
ServerName testing.api.requests.tarbeeta.com
ServerAlias testing.api.requests.tarbeeta.com
DocumentRoot /var/www/testing.requests.tarbeeta.com/server/public_html
ProxyPass / http://testing.api.requests.tarbeeta.com:8990/
ProxyPassReverse / http://testing.api.requests.tarbeeta.com:8990/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
RewriteEngine on
RewriteCond %{SERVER_NAME} =testing.api.requests.tarbeeta.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
这与其他两个虚拟主机的配置相同,但它们使用不同的端口。我不知道我是否必须在其他地方配置端口才能完成这项工作。
谢谢。
【问题讨论】:
标签: apache2 digital-ocean http-status-code-503