各位好
請教:
萬用 SSL 憑證 (Wildcard SSL) 的網站能與其他網域共用一個IP嗎?
(舊版本: 萬用 SSL 憑證 (Wildcard SSL) 的網站只能架在獨立IP?)
環境是 Amazon Linux (1個IP )
找到問題點了,
錯誤是 b.com.conf 的
正確是 <VirtualHost *:80>
謝謝!
現有 https://*.domain.com (萬用 SSL / DNS 給AWS託管)
設定中 http://www.a.com (DNS 給AWS託管 / 將申請SSL)
未來 http://www.b.com .... n個
在建置中 http://www.a.com 發生一些問題, 網頁出現 "Amazon Linux AMI Test Page" , 沒有出現網站首頁內容, 請大家幫忙 , 我該如何解決問題?
先謝謝大家!!!
我的處理 :
a. 已修改 /etc/httpd/conf/httpd.conf
>註解 #DocumentRoot "/var/www/html"
>增加 IncludeOptional conf.d/*.conf
IncludeOptional sites-enabled/*.conf
b. /etc/httpd/sites-enabled/
domain.com-le-ssl.conf (萬用 SSL)
b.com.conf (目前)
domain.com-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName mysql.domain.com
DocumentRoot /var/www/html/phpMyAdmin
ServerAlias mysql.domain.com
<Directory /var/www/html/phpMyAdmin>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mysql.domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mysql.domain.com/privkey.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName a01.domain.com
DocumentRoot /var/www/html/web/mysite
ServerAlias *.domain.com
<Directory /var/www/html/web/mysite>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.
# RewriteCond %{SERVER_NAME} =a01.domain.com
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
b.com.conf
<VirtualHost www.a.com:80>
ServerName www.a.com
DocumentRoot /var/www/html/web/asite
ServerAlias www.a.com
<Directory /var/www/html/web/asite>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
#RewriteEngine on
#RewriteCond %{SERVER_NAME} =a.com
#RewriteRule ^ http://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
https://www.asianmaterials.net/