小编Nov*_*mer的帖子

Apache 可在本地主机上运行,​​但不能在服务器名称上运行

正如我的用户 ID 所示,我是一名新手程序员。

我正在 ubuntu 中尝试一个简单的 Apache 服务器配置,

我使用以下代码在 /etc/apache2/sites-available/awesome.conf 中创建了以下 .conf 文件。我还在 /etc/apache2/sites-enable 中创建了一个符号链接并重新启动了 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 …
Run Code Online (Sandbox Code Playgroud)

apache localhost

2
推荐指数
1
解决办法
3022
查看次数

标签 统计

apache ×1

localhost ×1