我想在某个域名上启用 SSL,但上面什么都看不到。该域名是 api.conoform.com。
` # 修复 MIME 类型 AddType text/css .css AddType text/html .php AddType text/html .htm AddType text/html .html AddType text/javascript .js AddType text/cache-manifest *.manifest *.manifest.php
<FilesMatch "\.manifest|\.manifest\.php$">
ExpiresActive on
ExpiresDefault "access"
</FilesMatch>
# Compress some files
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php application/x-httpd-php5 text/css application/x-javascript text/javascript application/javascript application/ecmascript
# Enable rewrite engine
RewriteEngine on
ErrorLog /var/www/.log/error-ssl
LogLevel debug
LimitInternalRecursion 50
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/api.conoform.com/
`
我做错了什么?我访问时收到“此页面不可用”消息https://api.conoform.com/。
问候,凯文
答案1
看起来 SSH 接管了端口。这是我从 Wireshark 转储的:
...........R..{UXSj....x..L]....H...5....$.+./..... ...9.5.........3.2...../. .............api.conoform.com...... .................#..3t....."。spdy/2.spdy/3.spdy/3.1.http/1.1uO............ ....................SSH-2.0-OpenSSH_6.0p1 Debian-3ubuntu1
如您所见,它发出了一个 SSH 标头。Putty(我的 SSH 客户端)在端口 443 上运行。您可能需要查看您的 SSH 配置。