This blog post describes my Apache Archiva setup with nginx on bleibinha.us/archiva . I use it as a build artifact repository for my Scala projects built by sbt . This post also describes how I modify my sbt projects to deploy successfully to Archiva.
This post shows, how a text file can be used to configure the Apache http server dynamically and change its behavior during runtime using text files. To illustrate the behavior with an example, I have written a simple server application in Haskell , which chooses a random port during startup on which it is listening too. It writes this port to a text file, which will be used by the Apache server to forward requests from port 80 to the random port.