微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Apache2 vhost 显示 apache 手册

如何解决Apache2 vhost 显示 apache 手册

我错过了什么?我有以下 vhost 设置,当站点工作时,我还可以输入 apache2 手册的 url。我如何关闭它? 我已经禁用了 000-default。

例如以下网址有效

https://example.net/manual/en/mod/mod_vhost_alias.html


<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName example.net
ServerAlias www.example.net
DocumentRoot /var/www/example.net/html

<Directory /var/www/example.net/html>
    Options -Indexes +FollowSymLinks
    AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/example.net-error.log
CustomLog ${APACHE_LOG_DIR}/example.net-access.log combined

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/example.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.net/privkey.pem
</VirtualHost>
</IfModule>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。