ClearOS HTTPD & Reverse Proxy

I already host a few domains on my ClearOS box with no problems, but they are all hosted on the Clear box itself. I recently had the need to point a subdomain to another machine on my network. In Apache2 this is reverse proxy (pointing a domain/subdomain to an internal IP address). A few Googles here and there and all I could find was a few 3-4 year old posts regarding the topic. It mentions installing and building Pound, and a few other options. None of those seemed to be right. A bit more Googling and I finally found it. Its super easy.

All I had to do was modify my existing /etc/httpd/conf.d/flex-80.conf file, nothing to install.

Heres where I found the solution
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,17/func,view/id,32097/#32108

The forum support for ClearOS sucks, and everything I find is years old. Hopefully this helps someone, this solution worked for me using ClearOS 6.5 (as of 12/2014).

😀


Discover more from Its_All.Lost

Subscribe to get the latest posts sent to your email.

2 Comments

  1. Tom
    March 4, 2016 / 8:18 am

    Thanks for this–been looking for a similar solution and yours looks the simplest. Going to try it out tonight.

    Did you also have to modify your Apache virtual host config file as mentioned in the post that you linked? Or was the above flex-80.conf modification all that you needed?

  2. justin
    March 12, 2016 / 9:03 am

    Nope, all I had to do was edit flex-80.conf and restart the httpd service. Basically I added a subdomain as usual through the web interface. Then I opened the flex-80.conf file and edited the subdomain I just created. Just had to comment out the original doc root and add the two proxypass lines.

Leave a Reply