为什么apache在评论HTTPS / SSL后开始指向不同的文档根目录?

时间:2017-02-01 16:43:55

标签: apache2 apache-config

我在我的可用站点config cloud.conf 中注释了HTTP到HTTPS URL ReWrite,并且在我之前指向{{1}时,它没有指向/var/www/html/ }! 配置中唯一存在的是下面的内容。

cloud.conf

/var/www/php/

如果我尝试启用网站:

<VirtualHost *:80>
      ServerName     192.168.1.3
      DocumentRoot   /var/www/php/

      <Directory /var/www/php/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                order allow,deny
                allow from all
      </Directory>

</VirtualHost>

它说它已经启用了。

在默认的apache2.conf中我有

$ sudo a2ensite cloud
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Site cloud already enabled

即使在<Directory /> Options FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> <Directory /var/www/php/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> sudo systemctl restart apache2之后! 我注意到HTTP仍然在重定向到HTTPS,并且不知道是什么驱动我必须禁用任何模块?

0 个答案:

没有答案