Install Apache in a Jail

Status
Not open for further replies.

jeef

Cadet
Joined
Jan 14, 2014
Messages
4
Hello !

First of all : This is my first post in this forum, sorry for my poor english ... i'm french and try to do the best : thanks !


I have installed FreeNAS 9.2 easily, it works well from my home and my work.
I installed the plugin owncloud and it work well from home but I have a problem to use it from work : my sysadmin blocked all ports but not 80 and 8080.
I use the 80 for my internet box's admin (a free box) and 8080 for the freeNAS's admin.

My problem : How can I access owncloud from work ?

I imagine this solution :
The FreeNAS IP : 192.168.1.40
The owncloud jail IP : 192.168.1.41

I wanted to create a new jail and with IP 192.168.1.42 and redirect (with my internet box) the 8080 port to this jail.
In this jail I install Apache and use the ProxyPass directive for acces differents services.
For example :
- my_public_IP:8080/adminNas will be redirect to 192.168.1.40 for the FreeNAS admin
- my_public_IP:8080/owncloud will be redirect to 192.168.1.41 for owncloud

But I don't know how to install Apache in the new Jail ...
Can you help me please ?

Many thanks !!

Jeef


(I saw I could use nginx instead of Apache, but I know Apache quiet well...)
 
D

dlavigne

Guest
But I don't know how to install Apache in the new Jail

Install the FreeBSD package or port using the instructions in the Installing FreeNAS® PBIs section of the Guide (be sure to read the PDF for your version of FreeNAS).
 

david kennedy

Explorer
Joined
Dec 19, 2013
Messages
98
In the jail i think it is something like "pkg install apache22"

Dont forget to edit the rc.conf to have it start on boot.
 

jeef

Cadet
Joined
Jan 14, 2014
Messages
4
Hello !
Thanks for your help :)

I installed apache wiht success :)
I created a jail and after : portsnap fetch / portsnap extract ...
I din't choose the version and it cames with apache 22

it works great but I need the apache directive ProxyHTMLURLMap witch is only avaliable in apache 2.4 :'(
(with apache22 "make config" I don't have "mod_proxy_http" to choose)

So ... How can I upgrade the version please ?
 
Status
Not open for further replies.
Top