Chrome을 사용하면 하나의 서버 이름만 https로 리디렉션되는 이유는 무엇입니까?

Chrome을 사용하면 하나의 서버 이름만 https로 리디렉션되는 이유는 무엇입니까?

나는 apache2.4(debian)를 사용하는 두 개의 가상 호스트를 가지고 있습니다.

cat   /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
    ServerName www.hwy.local
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error_hwy.log
    CustomLog ${APACHE_LOG_DIR}/access_hwy.log combined
        <Directory /var/www/html>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName www.test.app
    ServerAdmin webmaster@localhost
    DocumentRoot  /home/debian9/app
    ErrorLog ${APACHE_LOG_DIR}/error_hwy.log
    CustomLog ${APACHE_LOG_DIR}/access_hwy.log combined
        <Directory /home/debian9/app>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Require all granted
        </Directory>
</VirtualHost>

입력하면 www.hwy.local리디렉션되지 않습니다 https://www.hwy.local. 입력하면 www.test.app리디렉션됩니다 https://www.test.app. 이유는 무엇입니까?

답변1

Michael Hampton에 따르면 www.test.app에 대한 리디렉션이 Apache 구성 파일에서 나오지 않는다고 말합니다. 앱의 루트 디렉토리에 .htaccess 파일이 있습니까? 리디렉션을 구성할 수 있습니다!

관련 정보