gpt4 book ai didi

azure - 新的 Azure VM 显示 InvalidQueryParameterValue comp

转载 作者:行者123 更新时间:2023-12-01 23:07:03 27 4
gpt4 key购买 nike

我创建了一个新的 Azure VM,安装了 LAMP 堆栈,当我在浏览器中访问该域名时,出现以下错误,我无法通过 Google 或 Stack Overflow 找到任何相关信息:

<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidQueryParameterValue</Code><Message>Value for one of the query parameters specified in the request URI is invalid.
RequestId:45ba52f4-0001-0086-13ed-e545cf000000
Time:2015-09-03T02:07:58.4816344Z</Message><QueryParameterName>comp</QueryParameterName><QueryParameterValue /><Reason /></Error>

当我使用 wget http://localhost 时通过 SSH 登录时,我收到此错误:

--2015-09-03 02:05:57--  http://localhost/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65 [text/html]
index.html: Permission denied

Cannot write to ‘index.html’ (Permission denied).

默认站点的 apache 配置很简单:

<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 webmaster@localhost
DocumentRoot /var/www/html

# 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
</VirtualHost>

如何让该虚拟机开始使用 Apache 提供服务?

最佳答案

这可能发生在“Static Website hosting”上' 如果您将 CNAME 指向错误的 Azure 服务器,则会出现此功能。

您必须使用名称中包含 web 而不是 blob 的服务器 DNS 名称。

关于azure - 新的 Azure VM 显示 InvalidQueryParameterValue comp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32365949/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com