Skip to content

Instantly share code, notes, and snippets.

@imageaid
Created December 4, 2010 16:32
Show Gist options
  • Save imageaid/728301 to your computer and use it in GitHub Desktop.
Save imageaid/728301 to your computer and use it in GitHub Desktop.
A virtual host declaration for Railo running on Tomcat and Apache HTTPD
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
DocumentRoot "C:/dev/Clients/mydomain.com/"
ServerName mydomain.com
ErrorLog "logs/app.local-error.log"
CustomLog "logs/app.local-access.log" common
DirectoryIndex index.html, index.cfm
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass / ajp://mydomain.com:8009/
ProxyPassReverse / ajp://mydomain.com:8009/
RewriteEngine On
RewriteRule ^/(.*\.cf[cm]/?.*)$ ajp://%{HTTP_HOST}:8009/$1 [P]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment