The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Port and URL

Discussion in 'General Discussion' started by evrynet, Dec 11, 2008.

  1. evrynet

    evrynet Member

    Joined:
    Aug 5, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
  2. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Andrew,
    You should be able to accomplish this using a simple .htaccess redirect.
    ie. Redirect 301 /pei http://www.qux.com:3000

    Use cPanel Redirect option if you're unfamiliar with .htaccess and Redirects.
     
  3. evrynet

    evrynet Member

    Joined:
    Aug 5, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    o

    Statically redirecting qux.com/pei to qux.com:3000 isn't what I want, since it
    needs to be proxied to a standard port.)
     
  4. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Unless you want to bind "redmine" to port 80..
    I can't think of any other way to achieve what your client wants..
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Use mod_proxy in conjunction with a localhost redirect.

    This allows your customer to access http://example.com/pei but internally Apache will access the application via http://localhost:3000

    Please note that some applications don't work well with proxy redirects. I'm not familiar with red mine to know whether it does or does not.
     
Loading...

Share This Page