These notes are with respect to FreeNAS 11.3, Artifactory 5.8, and Apache 2.4.
Install Freenas On Freebsd
Freenas Ssh Into Jail
Many users install a variety of web applications in jails on their FreeNAS servers, and often those applications run on non-standard ports like 6789, 8181, 7878, etc. These port numbers are far from intuitive, and the applications often either don't implement HTTPS at all, or make it difficult to configure.
- A tutorial to install the Apache webserver in FreeNAS 9.10 Jail. Configure and enable SSL on Apache. Enable Virtual Hosts. Enable and configure Apache Server Pool Management. Configure Apache to run CGI and Perl scripts. Install and configure php56. Assumptions and Prerequisites. Domain: example.com; Hostname: www.example.com.
- — Install Apache. The Apache web server is currently the most popular web server in the world.
Freenas Jail Network
Let’s begin by adding a jail. Within Jails, click Add Jail. Most of this is default. Here are the settings for a currently working config: DHCP Autoconfigure IPv4 unchecked, NAT unchecked, VNET checked, Berkeley Packet Filter checked, IPv4 statically defined, Autoconfigure IPv6 unchecked, Auto-start checked, mount_devfs checked, mount_fedscfs checked, allow_set_hostname checked, all other jail allow_* properties unchecked, Network interface vnet0:bridge0, within Custom Properties host_time checked).
Install Freenas 11
To install Artifactory, we want to get to a shell on the FreeNAS system (ssh works too). # shell into the jail
$ sudo iocage console artifactory
# install using ports
# if you do not have /usr/ports, run portsnap fetch && portsnap extract
$ cd /usr/ports/devel/artifactory
$ make install clean
Artifactory runs by default on port 8081. A recommended way to access it over HTTP port 80 is to setup Apache as a proxy. Here is a working /usr/local/etc/apache24/Includes/artifactory.conf file.Then test and restart Apache. $ apachectl configtest && apachectl restart
Artifactory should now be available over HTTP (port 80).