I have a server with debian 7.4 and apache2 installed. I have setup virtual hosts and all works well. Now instead of pointing the virtual host to a documentroot I need it to point to a port on the same server. "Java app running a jetty server"
--- EDIT --- Down votes... I have been an iis user for years and only this week started using linux
My current virtualhost file is as follows
<VirtualHost *:80>
ServerAdmin ******@****.**
ServerName ****.***
ServerAlias ***.*******.***
ProxyPass / http://localhost:8080/
</VirtualHost>
proxy.conf
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Proxy>
ProxyVia On
</IfModule>
---Another EDIT--- Getting internal server error with the following conf I did see those post mentioned in the comment yet still cnt get this going.....
<VirtualHost *:80>
ProxyPreserveHost Off
ProxyRequests On
ServerAdmin webmaster@+++.***
ServerName ***.***
ServerAlias www.***.***
ProxyPass / http://localhost:6666/
ProxyPassReverse / http://localhost:6666/
</VirtualHost>
---AND THE FIX---- I fixed the problem by enabling proxy_http aswel... a2enmod proxy_http service apache2 restart