hy guys,
I'm sure this is a very noobish question, but I've been banging my head on it for too long now.
I installed the owncloud plugin in FreeNAS, I can access it via a dynamic dns, port forwarded by my router to the IP of the owncloud jail. It's working fine, but the connetion is HTTP.
I know that there is a very simple way to force HTTPS in apache, forwarding all the traffic to the 443 port. it involves a simple edit of the VirtualHost. I'm guessing the Jail'shell has nothing to do with it.
I really do not know how to use apache in the owncloud jail. Do I have to SSH into the jail from my pc? Is there a simpler way?
Can anyone spell out the procedure for me, please?
[I found the procedure here http://stackoverflow.com/questions/8541182/apache-redirect-to-another-port, but I do not know how to apply it or if it is the proper way]
You can use the CLI shell in FreeNAS but it's better to setup SSH access using PuTTy or Bitvise. I use Bitvise because it's also easy to setup remote access to the FreeNAS GUI using Bitvise's SOCKS/HTTP Proxy forwarding without having to setup a complicated VPN. I have setup HTTPS access in owncloud with apache and on a custom install using lighttpd instead of apache. Lighttpd use less resources than apache so it's better for small scale users. Check the owncloud posts on the FreeNAS forum. You'll find much more information on this there. I used this tutorial to setup the SSL cert for apache.
FreeNAS, Ownclound, SSL (change Port?)
This also shows you how to make a self-signed SSL cert for HTTPS access and change the listening port from the default 443 port. By doing this, you reduce the attack surface for hackers and bots because they will mostly likely be looking for the default port. Don't forget to forward the port on your router, too. Also, these instructions are for apache22, while the plugin version uses apache24 now.
Thanks,
I've already looked at the link before I poster here. I get the theory and procedure, but I couldn't get where to start...
I'll see if I can SSH into my owncloud jail with bitvise, as you say.
Thank you for aswering!
One word of caution, the Apache config files you modify will be overwritten when the plugin is updated so it's a good idea to backup the files in a different location or you'll have to do it all again after an update.
Thanks for the warning, I'll save it somewhere else!