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: setting up apache as proxy
Author
casey45



Joined: 29 Aug 2017
Posts: 1
Location: England, St Albans

PostPosted: Tue 29 Aug '17 12:57    Post subject: setting up apache as proxy Reply with quote

Hello,
I am new here and looking for some direction, please.
I suspect the info is already on the site. Somewhere.
But getting a bit lost in the huge amount of info already published.
What I am trying to do is to setup Apache Webserver to direct users to an application I have running on tomcat. I have done this before with IIS (ahem) and tomcat. But that is all done through an interface.
My understanding is I need to modify a number of files in Apache.
but getting lost in the forest of data published
A bit of guidance as to where to start would be very much appreciated.

I have apache installed and running as a service and verified it is running cleanly by going to http://localhost:
https://localhost
Back to top
James Blond
Moderator


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

PostPosted: Tue 31 Oct '17 18:38    Post subject: Reply with quote

It is called reverse proxy. To tomcat you can use the ajp protocol or plain http

Code:

<VirtualHost *:80>
    ServerName jenkins
    DocumentRoot "/mario/Apache24/htdocs"
    <Directory "/mario/Apache24/htdocs">
        Options Indexes Includes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    <Location />
        ProxyPass ajp://localhost:8009/
        ProxyPassReverse ajp://localhost:8009/
    </Location>
</virtualhost>


The proxy pass could also co to https

Code:
        ProxyPass https://localhost:8009/
        ProxyPassReverse https://localhost:8009/
Back to top


Reply to topic   Topic: setting up apache as proxy View previous topic :: View next topic
Post new topic   Forum Index -> Apache