私は以下の指示に従った:virtual host、https。apache 2.4仮想ホストが私の "Index of /"に来る
私ロカズがwebsideを主催するために、私はDynDNSのを使用するように、私の最後の000-default.conf
は、次のようになります。
<VirtualHost *:443>
ServerName www.mydomain.dyndns.xx
ServerAdmin [email protected]
DocumentRoot /var/www/html/mydomain.dyndns.xx/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ca.crt
SSLCertificateKeyFile /etc/apache2/ssl/ca.key
ErrorLog ${APACHE_LOG_DIR}/www.virtualhost1.com_error.log
CustomLog ${APACHE_LOG_DIR}/www.virtualhost1.com_access.log combined
</VirtualHost>
私はadditionaly follwoing /etc/apache2/apache.conf
で設定:
<Directory /var/www/html/mydomain.dyndns.xx>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
と/etx/host
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
192.168.x.x www.mydomain.dyndns.xx
開こうとするとポート80の「Indes of /」のページURL、これらのファイルをクリックすると、http:// mydomain.dyndns.xx/mydomain.dyndns.xx.index.phpが表示されます
https://を呼び出すと、ブラウザにERR_CONNECTION_REFUSEDが表示されます。
ありがとうございました!