Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to configure apache reverese proxy


    i have an apache that serves as a reverse proxy for a resin (servlet container), right now all the website is processed by resin.
    now i want to add joomla cms for the articles of the website so i need the apache to serve the joomla/php and all the other stuff to be sent to the resin

    mysite.com/artilces and beneath for the joomla
    all the other mysite.com for the resin

    how can i set the apache to do so?

    thanks

  2. #2
    Why not use something like Squid?

  3. #3
    Quote Originally Posted by Touchtecservers View Post
    Why not use something like Squid?
    as far as i know, i can use Apache as the reverse proxy , so why add complexity?
    what are the benefits?

  4. $spacer_open
    $spacer_close
  5. #4
    The benefits are that you would have a dedicated program that is specifically built for such a purpose, and therefore may be more configurable and suitable for your current and future needs.

  6. #5
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    if apache is already in place and working, keep using it, no need to learn something new. apache is a very respectable reverse proxy.

    I believe your reverse directives should be defined within a virtual host container, so use alias' within those containers to specify where each folder goes.

    Code:
    <VirtualHost 127.0.0.1:80>
    DocumentRoot "/path/to/apps/appName/root"
    Alias /com "/path/to/com"
    Alias /lib "/path/to/lib"
    </VirtualHost>
    
    <VirtualHost 127.0.0.1:80>
    DocumentRoot "/path/to/apps/appName/root"
    Alias /reverse "/path/to/com"
    reverse directives
    blalahblah
    blahblah
    </VirtualHost>

  7. #6
    thank u both

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •