ProxyPass Problems  in Acpache

Posted on 2012-09-11
Last Modified: 2012-12-14
I am trying to configure ProxyPass rules on Centos on Apache to port forward as per below. I need to have http forwarded to this system. rule is working fine without port, but when I tried to configure with Port it fails.

<VirtualHost *>
SuexecUserGroup "#1000" "#1000"
DocumentRoot /var/www/Apps_Name/
ErrorLog /var/log/httpd/taaray/error_log
CustomLog /var/log/httpd/Apps_Name/access_log "combined"
ScriptAlias /cgi-bin/ /var/www/Apps_Name/cgi-bin/
DirectoryIndex index.html index.htm index.php
<Directory /var/www/Apps_Name>
    FileETag MTime Size
    AllowOverride All
ProxyPass /Apps_Name/ http://XX.XX.XX.XX/Apps_Name

above is working fine

I am unable to configure Proxypass rule as per below because Apache not taking port no.

is there any other way to resolve this issue,
Question by:Nilesh Havire
    1 Comment
    LVL 8

    Accepted Solution

    Two things here,

    If you have trailing slash in the first part you should add it in the second, and proxypassreverse is missing. Please try

    ProxyPass /app/  http://localhost:8080/app1/
    ProxyPassReverse /app/  http://localhost:/8080/app1/

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now