Hello, I'm a relative newbie, setting up a nas system
I'm using Ubuntu Server 16.x, running Owncloud 9.x and Ajenti web management interface
I've got everything working nicely - OC & Samba can see my other system devices, I can access OC internally on http and Ajenti on https - and even setup my first cron jobs and groups
However, I'm trying to setup access to OC externally, over https
(At this time, I have no intention to access ajenti externally, which runs on port 8000)
Because I also run another device using the standard http & https ports, I need to use different ports. I've gone with 89 for http, and 489 for https (no real reason behind those, may well change them)
Using port 89 for http, I've managed to setup external access to OC. However, my efforts to setup https (be it internally or externally) are proving a little futile - and I lose access to both OC and in some cases Ajenti - and have conceded I'm swimming just a little out of my depth now!
In my /etc/apache2/ports.conf file, I've updated to
Code:
Listen 80 Listen 89 <IfModule ssl_module> # Listen 443 Listen 489 </IfModule> <IfModule mod_gnutls.c> # Listen 443 Listen 489 </IfModule>
Code:
<VirtualHost *:89>
ServerName sub.domain.com
# Redirect permanent / http://ift.tt/2aKEMRX
ServerAdmin webmaster@localhost
DocumentRoot /var/www/owncloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
When I un-comment the redirect, I do get 'redirected' to port 489, but get a page can't be loaded
I tried adding this to the same file...
Code:
<VirtualHost *:489>
DocumentRoot /var/www/owncloud
ServerName sub.domain.com
</VirtualHost>
I've seen references to editing virtual hosts within httpd files - but couldn't track these down and wondered if they were the same thing as the default.conf file I'm editing.
Happy to do reading, and have no problem doing trial & error - but now worried I'm going to screw something up properly, so would welcome any pointers on where I'm going way off piste.
Thank you!
[ubuntu] In Search of Support Setting up Port Forwarding
Aucun commentaire:
Enregistrer un commentaire