Pages

[ubuntu] In Search of Support Setting up Port Forwarding

mercredi 27 juillet 2016

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>
And, in my /etc/apache2/sites-enabled/000-default.conf file

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>
(At one point, I have *:89 separate to *:80 - but it didn't seem to like me having both in that file, so just updated 80 to 89)

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>
But that made no difference either

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!

Let's block ads! (Why?)



[ubuntu] In Search of Support Setting up Port Forwarding

Aucun commentaire:

Enregistrer un commentaire