Skip to content

Instantly share code, notes, and snippets.

@rdeguzman
Last active December 24, 2015 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdeguzman/6875793 to your computer and use it in GitHub Desktop.
Save rdeguzman/6875793 to your computer and use it in GitHub Desktop.
Sample apache2.conf with multiple subdomains pointing to a php or rails. Note, these are includes in httpd.conf
ServerRoot "/usr/local"
..
..
..
Include etc/apache22/Includes/*.conf
<VirtualHost 192.168.4.11:80>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://station.datalink.loc:8080/
ProxyPassReverse / station.datalink.loc:8080/
ServerName jira.datalink.loc
CustomLog /var/log/httpd/jira.log combinedio
LogLevel warn
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment