【发布时间】:2019-04-13 00:17:01
【问题描述】:
我有一个在 Windows 7 上运行的 Apache 2.4 服务器。 它已经运行了很多年,但现在我正在尝试实现 ssl。 事实上,我做到了,它可以从本地网络完美运行,但是当我想从外部网络(通过 no-ip)进入时,我得到图例“404 page not found”。 这是我的虚拟主机:
<VirtualHost *:80>
ServerAdmin sistemas@clinica25demayo.com.ar
DocumentRoot "C:/Apache24/htdocs"
ServerName localhost
ErrorLog logs/localhost.com-error.log
CustomLog logs/localhost-access.log common
<Directory "C:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile "C:/Apache24/certificados/cl25demayo.crt"
SSLCertificateKeyFile "C:/Apache24/certificados/cl25demayo.key"
ServerAdmin sistemas@clinica25demayo.com.ar
DocumentRoot "C:/Apache24/htdocs"
ServerName localhost
ErrorLog logs/localhost.com-error.log
CustomLog logs/localhost-access.log common
<Directory "C:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
有没有可能,因为我的 ssl 证书是临时的?我自己生成的。
【问题讨论】:
-
如果您尝试在不使用 SSL 的情况下连接会发生什么?
-
使用 http: 而不是 https: 完美运行
标签: php apache ssl virtualhost noip