logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Setup Reverse Proxy and SSL Questions
Author
jhwatts2010



Joined: 17 Jun 2015
Posts: 2
Location: Knoxville, Tennessee

PostPosted: Mon 22 Jun '15 16:53    Post subject: Setup Reverse Proxy and SSL Questions Reply with quote

I have several questions here.


My system consist of Ubuntu 14.04 server running LAMP. I am running Apache 2. On the same machine I am running Shiny server and running my apps through port 4949.

http://www.rstudio.com/products/shiny/download-server/

I also am running an additional Shiny server copy on a virtual box through port 3838. All is running very good. I have an html web page running on Apache 2. I can view it and all my apps running on both Shiny servers from any place on the web.

My concern, however is security. I have port 3838, 4949, and 80 open. How can I set up Apache to run as a reverse proxy for my both of my Shiny servers (ports 4949, and 3838) and also continue to host my web page securely.

I have also attempted to set up a self-signed certificate using the following procedure but it is not working. I used the following instructions and followed them verbatim.
https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04

Can anybody offer troubleshooting tips for me here, or how to set up a reverse proxy for my Shiny servers?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Jun '15 17:35    Post subject: Reply with quote

you need

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

inside a ssl vhost you can have


ProxyPass / http://localhost:3838/
ProxyPassReverse / http://localhost:3838/

and in another vhost you can have

ProxyPass / http://localhost:4949/
ProxyPassReverse / http://localhost:4949/
Back to top
jhwatts2010



Joined: 17 Jun 2015
Posts: 2
Location: Knoxville, Tennessee

PostPosted: Mon 22 Jun '15 23:50    Post subject: Reply with quote

I need more detail. I open a shell and typed

LoadModule proxy_module modules/mod_proxy.so .

It yelled at me.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 23 Jun '15 10:50    Post subject: Reply with quote

If I remember correctly there is a folder with mod-available and mod-enabled in in /etc/apache or /etc/apache2 folder

However remove that line and run

Code:
sudo a2enmod proxy_http


Sorry that I didn't think of that, but this is a forum for apache on windows and things often a bit different Wink
Back to top


Reply to topic   Topic: Setup Reverse Proxy and SSL Questions View previous topic :: View next topic
Post new topic   Forum Index -> Apache