Use HTTP Auth only if accessing a specific domain

前端 未结 5 1424
青春惊慌失措
青春惊慌失措 2020-12-30 06:02

I\'ve got several sites: example.com, example1.com, and example2.com. All of them point to my server\'s /public_html fo

5条回答
  •  旧巷少年郎
    2020-12-30 06:54

    You shouldn't be putting per-vhost configuration into .htaccess. Instead, put the config block in the VirtualHost block in the proper config file in /etc/apache/sites-enabled/*.

提交回复
热议问题