I have one one http server running on 1337.
and another http server running on 4040.
Requirment: I am trying to tunnel them both through https on port 443 using apache2
I have already succeeded (I think) in tunneling the server on port 1337, and i can see the content with no issue.
the following is my vhost configuration
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName 127.0.0.1
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
ProxyPreserveHost On
ProxyPass /parse http://localhost:1337/
ProxyPassReverse / http://localhost:1337/
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
now I want to add 4040 as well, so it would be secured, how ever when I add another
proxyPass /dashboard http://127.0.0.1:4040/
PROBLEM It does not properly work. and it only renders the page title and the icon.
I might be doing this whole reverse proxy thing incorrectly, kindly any explanation is appreciated!
(OS: Ubuntu 14.04)