403修补Apache,SHELL,Certbot后域上的禁止错误

时间:2018-04-30 12:28:21

标签: macos shell terminal apache2

我试图通过使用Certbot加密来弄清楚如何在我的网站上安装SSL。我的主机是BlueHost,不受支持。在安装certbot的过程中,修改Apache文件(启用/设置虚拟主机),通过SHELL连接(有一些身份验证问题),我的域名现在是403禁止从我的笔记本电脑上的所有浏览器(MacOS /终端)(但不是来自我网络上的任何其他计算机/设备)。我仍然可以从终端成功ping我的域名。我重新禁用了虚拟主机,删除了我的虚拟主机信息,并联系了BlueHost,看看我的IP是否因认证失败而被列入黑名单而无济于事。我真的不知道现在在哪里开始排除故障。

编辑: httpd-vhosts.conf的内容

 # Virtual Hosts
 #
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
 # machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "/usr/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" 
common
</VirtualHost>

1 个答案:

答案 0 :(得分:0)

我对/ etc / hosts进行了修改(我不确定哪个指南告诉我这样做)。无论如何,一旦我解决了这个问题,一切都解决了。感谢Dave Carruthers的帮助。