[英]apache configuration extension doesn't work with https
I have an extension to httpd.conf. 我有一个httpd.conf扩展名。 I am using it for aliases and changing root: The original root was set to
/data/www/html
and I need it to be /data/www/pages
. 我将其用于别名并更改根:原始根设置为
/data/www/html
,我需要将其设置为/data/www/pages
。 For several reasons I do not want to touch the original httpd.conf
, therefore, I created the custom_config.conf
由于多种原因,我不想触摸原始的
httpd.conf
,因此,我创建了custom_config.conf
custom_config.conf custom_config.conf
<VirtualHost *>
DocumentRoot /data/www/pages
Alias "/blah_blah" "/data/www/blah_blah"
<Directory "/data/www/pages">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
With this, I can access http
but not https
. 这样,我可以访问
http
但不能访问https
。 I tried <VirtualHost *:443>
and restarted the httpd of course, but still not working. 我尝试了
<VirtualHost *:443>
并重新启动了httpd,但是仍然无法正常工作。 I am not an expert with Apache, but I think it has to do something with ssl.conf
that is under conf.d
forlder; 我不是Apache的专家,但是我认为它必须使用
conf.d
forlder下的ssl.conf
来完成某些工作; same place I put my custom_config.conf
我放了
custom_config.conf
地方
Check and make sure the alias extension is enabled: 检查并确保启用了别名扩展名:
LoadModule alias_module modules/mod_alias.so
and then try to set your alias like below: 然后尝试如下设置您的别名:
Alias /blah_blah/ "/data/www/blah_blah"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.