0

I have experience setting up virtual hosts with Apache2 on Ubuntu, but recently I started using Manjaro, when I tried to set up multiple virtual hosts I had to put the configuration into the httpd-vhosts.conf file.

I have 30 + virtual hosts configured so having this all in one file doesn't seem very clear. How would I split this up into multiple files and get Apache2 to read them all?

4

1 回答 1

1

你可以在 Arch wiki 上找到相关信息。您可以自己创建文件夹并将配置文件添加到 httpd.conf 使用Include <confFile>

https://wiki.archlinux.org/index.php/Apache_HTTP_Server#Managing_many_virtual_hosts

于 2019-06-07T08:18:31.617 回答