我正在尝试创建一个带有域名的网站。我在 Ubuntu 20.04 上使用 Apache 网络服务器。我可以从我的网络内部访问它,如下所示https://advice.hopto.org,但无法从同一网络中的其他 PC 访问它。网站配置中有以下几行:
<VirtualHost *:443>
ServerName advice.hopto.org
ServerAlias www.advice.hopto.org
DocumentRoot /var/www/advice.hopto.org
SSLEngine on
SSLCertificateFile /home/dell/advicehopto.crt
SSLCertificateKeyFile /home/dell/advicehopto.key
</VirtualHost>
<VirtualHost *:80>
DirectoryIndex index.php index.html
ServerAdmin [email protected]
ServerName advice.hopto.org
ServerAlias www.advice.hopto.org
DocumentRoot /var/www/advice.hopto.org
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *>
DocumentRoot /var/www/advice.hopto.org
ServerName advice.hopto.org
<Directory /var/www>
allow from all
Options None
</Directory>
ServerName advice.hopto.org
<Directory /var/www/advice.hopto.org>
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
</VirtualHost>
我的路由器是tp-link的,我把80和443端口都转发了,还有NoIP(DNS提供商)提供的域名,下面是防火墙状态的输出:
To Action From
-- ------ ----
9042 ALLOW Anywhere
3000 ALLOW Anywhere
9092 ALLOW Anywhere
9999 ALLOW Anywhere
1883 ALLOW Anywhere
8883/tcp ALLOW Anywhere
192.168.43.128 8883/tcp ALLOW Anywhere
8883 ALLOW Anywhere
8880 ALLOW Anywhere
8884 ALLOW Anywhere
22/tcp ALLOW Anywhere
8080 ALLOW Anywhere
443 ALLOW 192.168.0.2
8883 ALLOW 192.168.0.2
443 ALLOW Anywhere
443/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
8083/tcp ALLOW Anywhere
443 ALLOW 13.234.210.38
443/tcp ALLOW 13.234.210.38
80 ALLOW Anywhere
Apache Full ALLOW Anywhere
192.168.0.2 443/tcp ALLOW Anywhere
192.168.0.2 443 ALLOW Anywhere
192.168.0.2 ALLOW Anywhere
192.168.0.2 80 ALLOW Anywhere
192.168.0.2 8883 ALLOW Anywhere
44 ALLOW Anywhere
Bind9 ALLOW Anywhere
Apache ALLOW Anywhere
40 ALLOW Anywhere
80 ALLOW 192.168.0.0/24
80 ALLOW 192.168.0.0
3000:9000/tcp ALLOW Anywhere
9042 (v6) ALLOW Anywhere (v6)
3000 (v6) ALLOW Anywhere (v6)
9092 (v6) ALLOW Anywhere (v6)
9999 (v6) ALLOW Anywhere (v6)
1883 (v6) ALLOW Anywhere (v6)
8883 (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)
8883/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
Bind9 (v6) ALLOW Anywhere (v6)
Apache (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
40 (v6) ALLOW Anywhere (v6)
3000:9000/tcp (v6) ALLOW Anywhere (v6)
请帮助我使域名在我的网络内可用。