0
我想知道它是如何正確設置「default-ssl.conf」參數,與VPS主域或FQDN相關的(在本例中爲「server.foo.org」 )。Apache2:正確設置FQDN的default-ssl.conf
特別是在「default-ssl.conf」中是否需要指定ServerName和最終的ServerAlias值?
由於
實施例:
服務器名內部消除:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin [email protected]
DocumentRoot /var/www/html
[ETC..]
由ServerName:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName foo.org
ServerAlias server.foo.org www.server.foo.org www.foo.org
DocumentRoot /var/www/html
[ETC..]
你好Tom,福利局網站管理員在這裏。我最近設置了我的apache2站點以使用SSL/HTTPS,並且我的站點得到了滿意的服務,除了*我無法弄清楚如何讓默認站點工作(我得到了禁止的錯誤 - 我懷疑*因爲默認站點可以兌現FQDN的認證)。有沒有一種資源可以指導我在ssl下設置默認網站? – Alexis
@Alexis https://serverfault.com/questions/82306/apache-default-catch-all-virtual-host – Tom