-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple virtual host configuration files #895
Comments
Hi there @2case , you should be able to use several virtual hosts config files using a slightly different structure within the XML file. <virtualHosts>
<!-- include of virtual host configurations -->
<xi:include href="conf.d/virtual-hosts-1.xml"/>
<xi:include href="conf.d/virtual-hosts-2.xml"/>
<!-- .... -->
</virtualHosts> With your virtual host configurations only wrapped in a single This might get a little clunky as the wildcard based syntax you would like is not supported by Regards, Bernhard |
This is good to know! (and something else to add to the docs.) 😄 Scott |
I tried that, but the XML Parser did not allowed the xi:include inside the virtualHosts node! |
Hehe ^^ @2case , oh! Might be we restrict the type of the child nodes, I will check the schema. Sorry about that. |
Hm missing the like button on your post... ah found the 👍 |
Works as explained above in a local test with appserver version 1.1.0 "Iron Knight". Example for appserver config in <!-- include of virtual host configurations -->
<virtualHosts>
<xi:include href="conf.d/virtual-hosts-1.xml"/>
<xi:include href="conf.d/virtual-hosts-2.xml"/>
</virtualHosts> Example for virtual host configs. <?xml version="1.0" encoding="UTF-8"?>
<virtualHost xmlns="http://www.appserver.io/appserver" name="test.dev">
<!-- -->
</virtualHost> Have a try with the current version. :) |
If I have some time, I'll play with this. I already have several virtual hosts set up for testing different things. Since I've started working with appserver, I haven't used any other server stack. LOL! The only thing missing is PHP debugging facilities. Once they are in, I'll be server in heaven! 😃 Scott |
Currently it seems not possible to setup multiple virtual hosts configuration files. They will overwrite each other. Handling all virtual hosts configurations in one large file is not very organized.
I would also like something like
<xi:include href="conf.d/*"/>
to load all files in that directory.The text was updated successfully, but these errors were encountered: