mydomain.com에, 나는 현재 내 아파치의 conf 파일을 모두 유지 : 나는 alwaysHttps.conf라는 파일이 거기에아파치 재 작성이 : 항상 HTTPS 사용 (예외를 추가하는 방법)
/etc/httpd/conf.d/
그 포함
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
나는 버추얼 호스트의 무리가 있고, 사이트에서 하나 개의 도메인 : myotherdomain.com 나는 자동 재 지정을 해제하고 싶습니다. 글로벌 alwaysHttps.conf를 제거하지 않고 https로 리디렉션 예외를 설정할 수 있습니까?
<VirtualHost *:80>
DocumentRoot /home/webadmin/myotherdomain.com/html
ServerName myotherdomain.com
CustomLog "/home/webadmin/myotherdomain.com/access_log" "combined"
ErrorLog "/home/webadmin/myotherdomain.com/error_log"
<Directory /home/webadmin/myotherdomain.com/html>
Options Includes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
확인 - 완벽! 감사합니다 ... 그게 리디렉션 문제를 해결하지만, 지금 나는 404를 얻고 있습니다. 도메인에 대한 내 conf 파일은 다음과 같습니다. 수정 프로그램을 종료하고 80 : 443 페이지를 변경하면 페이지가로드됩니다. 하지만 지금은 그런 식으로하지 않습니다. 빨리 생각해? – NinjaCat
설정에 어딘가에'NameVirtualHost * : 80'과'Listen 80'을 모두 가지고 있습니까? – Wrikken