Author Topic: Setting up HFS behind a reverse proxy  (Read 1186 times)

0 Members and 1 Guest are viewing this topic.

Offline bitrot

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Setting up HFS behind a reverse proxy
« on: January 24, 2014, 05:31:55 AM »
hi,

thought i would add a bit on how i managed to get HFS working behind a reverse proxy as there was very little information on it and it taking ages to figure out, is an understatement. So for example say you want to have HFS at bubbly.co.zw/lab/upload  on an apache reverse proxy ( note, its purely a fictional website) forward to HFS. you need to setup HFS to have the same structure, ie two folders lab > upload> conetent. . the reverse proxy will display all of your 
text correctly but the images will be missing.

To solve that, edit your template and where you have "template/" replace it with "lab/upload/template/" this will fix your image links to the correct url's. then you need to add the "template"folder to the "upload" dir in HFS. you should now have a working HFS behind a reverse proxy.
i have attached an example image of the structure for reference.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Setting up HFS behind a reverse proxy
« Reply #1 on: January 26, 2014, 04:17:15 PM »
i messed with apache reversing few months ago, and to be honest i think your configuration on the HFS-side could (and should) have been done on the Apache side.
Can't truly find the solution you need, sorry, got very little time, but i would personally prefer having the whole configuration on a single side, because it's easier to have just one point to look at when something is wrong. It's a good-design principle, to say it all.
So, in my opinion that can be seen fully as an apache configuration problem, and you should ask for help to apache experts.

Offline bitrot

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: Setting up HFS behind a reverse proxy
« Reply #2 on: January 27, 2014, 07:15:21 AM »
Agreed, it could have been done on the reverse proxy side. But, that was out of my control so had to get it working despite the apache downfalls. I havn't had any problems since the changes to get it working. So far HFS is brilliant at its job. 8)