: Configuring `mod_vhost_alias` to server subdomain-based websites I am currently in the process of setting up an Apache server that will be hosting projects built from SVN using a continuous integration
I am currently in the process of setting up an Apache server that will be hosting projects built from SVN using a continuous integration server. The problem is, however, that while I've managed to configure the build server to output the revisions of a project to a directory, I'm stumped as to how to actually configure Apache using mod_vhost_alias to serve the different projects.
The directory structure is generated using the following pattern:
/usr/share/Projects/r[revision]
Inside, there are two directories which I'd like to configure access via a subdomain:
api.r[revision].testserver.local -> ./server
r[revision].testserver.local -> ./web
There is already a local DNS server that serves the wildcards on *.testserver.local and already resolves them to the correct IP, but Apache needs to resolve the correct DocumentRoot for the different subdomains.
The end result I'm hoping for is that as long as the build server outputs and configures the projects inside /usr/share/Projects/r*, Apache will know how to resolve these subdomains without the need to write conf files and reloading configurations each time a new revision is fetched and built from SVN.
More posts by @Merenda212
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.