新的Azure VM说InvalidQueryParameterValue comp

Sma*_*ack 2 lamp azure azure-virtual-machine

我创建了一个新的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>
Run Code Online (Sandbox Code Playgroud)

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

--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).
Run Code Online (Sandbox Code Playgroud)

默认站点的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>
Run Code Online (Sandbox Code Playgroud)

如何让这个VM开始使用Apache服务?

Sim*_*ver 12

如果您将CNAME指向错误的Azure服务器,则可能会在新的" 静态网站托管 "功能上发生这种情况.

您必须使用包含"web"的服务器名称而不是"blob".

我错误地这样做了,因为它说"在这里或在这里指出",我认为它们是等同的,而不是用于完全不同的目的.