Я хочу, чтобы мои пользователи, которые печатали login.abcde.com
, перенаправлялись на https://client1.abcde.com
и блокировали все другие URL-адреса HTTP. Поэтому, если кто-то типа http://client1.abcde.com/thispage/isawesome.html, он покажет некоторое сообщение об ошибке или 404. До сих пор я пытался добавить следующее в свой httpd.conf, но не имел успеха. Я постоянно получаю страницу изречение Apache: This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly, but has not yet been configured.
Перенаправить страницу входа с HTTP на HTTPS через httpd.conf
RewriteEngine на
RewriteCond% {HTTPS} от
RewriteRule^client1.abcde.com $ https://client1.abcde.com [L, R = 301]
Я использую Apache, кстати, с WSGI. Мой VirtualHost для порта 80 в основном только:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /srv/www/abcde/html
ErrorLog "logs/error_log"
CustomLog "logs/access_log" common
</VirtualHost>