3
모든 foo.mydomain.com 요청을 https://foo.mydomain.com으로 리디렉션하려고합니다.http를 사용할 때 Apache가 https 대신 기본 페이지를 표시합니다.
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://foo.mydomain.com
사람이 무엇을 알고 있습니까 :이 htaccess로 파일에서 mod_rewrite를 함께 HTTPS로 모든 HTTP 요청을 리디렉션하기 위해 노력하고있어 그래서 지금
<VirtualHost *:443>
ServerName foo.mydomain.com
# Indexes + root dir
DirectoryIndex index.html
DocumentRoot /home/web/foo.mydomain.com/htdocs
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
SSLVerifyClient none
<IfModule mime.c>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfModule>
# Logfiles
ErrorLog /home/web/foo.mydomain.com/logs/error.log
CustomLog /home/web/foo.mydomain.com/logs/access.log combined
</VirtualHost>
:
내 VirtualHost 항목이 포함 내가 잘못하고있어? 미리 감사드립니다.
...
가 알려줘 ... '기본 페이지'가 아니라 제목과 덧글을 남길 너무 낮은 담당자에 의미건배
무엇인지 확실하지가 http을 수행하고 https vhosts는 동일한 문서 루트를 사용합니까? –