Created
May 25, 2015 19:20
-
-
Save alexklibisz/995d5faf099f7ea10bd9 to your computer and use it in GitHub Desktop.
Apache Port Forward / Reverse Proxy Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Running some application on port 8080, want to make it | |
# available at subdomain.example.com | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName subdomain.example.com | |
ProxyPreserveHost On | |
# setup the proxy | |
<Proxy *> | |
Order allow,deny | |
Allow from all | |
</Proxy> | |
ProxyPass / http://localhost:8080/ | |
ProxyPassReverse / http://localhost:8080/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The file should get saved at /etc/apache2/mysite.conf
Before doing this, you should run:
After doing this, you should run:
$ a2ensite enable mysite
After that, restart the server.