Mobile app version of vmapp.org
Login or Join
Merenda212

: 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

@Merenda212

Posted in: #Apache #HttpdConf

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme