For production environments it is highly advised to run the Elvis server on a dedicated machine. For demo machines or small setups, Elvis may have to be installed on an existing machine that is already running an Apache web server. To prevent having to access the Elvis server with an additional port number you can setup a "reverse proxy" configuration in Apache to forward requests to the Elvis server.
To make this work, configure the serverPath property in the Elvis configuration file.
serverPath=/elvis
Then add a proxy config to Apache. On a standard Mac OS X machine you can use or create a proxy.conf file in /private/etc/apache2/other and put in something similar to this:
<IfModule proxy_module>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass /elvis http://localhost:8080/elvis
ProxyPassReverse /elvis http://localhost:8080/elvis
</IfModule>
Comments
Do you have corrections or additional information about this article? Leave a comment!
Do you have a question about what is described in this article? Please contact support here.
0 comments
Please sign in to leave a comment.