Change default SSL port from 443 within server?

Ask all your questions on desktop sync clients. Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
macsrthebomb
Newbie
Posts: 2
Joined: Wed Mar 27, 2013 11:27 am
ownCloud version: 4.5.2
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5

Change default SSL port from 443 within server?

Postby macsrthebomb » Wed Mar 27, 2013 11:34 am

I have a unique issue in that I run the ownCloud server on a Netgear ReadyNAS nv2 and already have an app that is using port 443 and cannot be changed. I could easily forward, lets say, port 4443 to 443, but that doesn't help because the internal port 443 is already being used, so I can't forward it. Is there simply any way to change this within ownCloud? I don't want to change the apache2 443 port.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Change default SSL port from 443 within server?

Postby RealRancor » Wed Mar 27, 2013 11:47 am

Hi,

Owncloud doesn't use any ports at all and you can't configure this port in OC because OC is running within apache. You have to configured the used port in apache. There is no other way in doing this.

Or do you want to specifiy in the sync client on which port OC / the apache is reachable? Then you can enter this URL in the sync client:

your.cloud:4433

for example.
*gone*

macsrthebomb
Newbie
Posts: 2
Joined: Wed Mar 27, 2013 11:27 am
ownCloud version: 4.5.2
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5

Re: Change default SSL port from 443 within server?

Postby macsrthebomb » Wed Mar 27, 2013 8:57 pm

Thank you for your response. I an no Apache expert, but I do know how to change the default ssl port within Apache, but I don't want to do that and don't see how that could work for me.

I do now have an outside port 4443 point to LAN port 443, but using the format https://myowncloudserver.com/owncloud (on the ReadyNAS) and https://myowncloudserver.com:443/owncloud just times out.

Like everyone, I just want my communications over the internet securely encrypted.

Changing the domain name (yes, trying from outside of my local network) to my internal address, same format, but now inside my network works perfect, so I am not understanding something and hope you might be able to see my error.

Thank You.

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Change default SSL port from 443 within server?

Postby RandolphCarter » Wed Mar 27, 2013 9:19 pm

So, I think we have to clarify first what exactly your situation is and what you are looking for:

From what you're saying I assume you've got the following setup:
  • A ReadyNas running ownCloud
  • A Router with port forwarding
On the router, port 443 already redirects to somewhere else, so you can't use that for owncloud. Correct so far?

Now you want to access your ownCloud from the outside, say via port 4443. You need to enter a forwarding rule on your router with outside port 4443 and inside port 443, and the address of your ReadyNas (you maybe already did that, I'm not so sure here).

After you have set up such a forwarding rule, to access your ownCloud from the outside, use this URL:

Code: Select all

https://myowncloudserver.com:4443/owncloud

since you from the outside of course always need to access the outside port configured in the Router...

Was that approximately what you were asking for? If not, please correct where my assumptions went wrong...

BPB21
Newbie
Posts: 2
Joined: Wed Jul 17, 2013 2:39 pm
ownCloud version: 5.0.9
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3-7

Re: Change default SSL port from 443 within server?

Postby BPB21 » Fri Jul 19, 2013 9:53 pm

This definitely helped me! This was exactly what I was looking for! Thanks for the tip.

BPB21
Newbie
Posts: 2
Joined: Wed Jul 17, 2013 2:39 pm
ownCloud version: 5.0.9
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3-7

Re: Change default SSL port from 443 within server?

Postby BPB21 » Mon Jul 22, 2013 5:12 pm

RandolphCarter wrote:So, I think we have to clarify first what exactly your situation is and what you are looking for:

From what you're saying I assume you've got the following setup:
  • A ReadyNas running ownCloud
  • A Router with port forwarding
On the router, port 443 already redirects to somewhere else, so you can't use that for owncloud. Correct so far?

Now you want to access your ownCloud from the outside, say via port 4443. You need to enter a forwarding rule on your router with outside port 4443 and inside port 443, and the address of your ReadyNas (you maybe already did that, I'm not so sure here).

After you have set up such a forwarding rule, to access your ownCloud from the outside, use this URL:

Code: Select all

https://myowncloudserver.com:4443/owncloud

since you from the outside of course always need to access the outside port configured in the Router...

Was that approximately what you were asking for? If not, please correct where my assumptions went wrong...


This helped greatly and I can access my ownCloud server from outside my network using the same SSL certificate (one of my goals in this). But, I need a little guidance as to the client sync. When I'm off-site, the client sync works fine; when I'm in the office and behind the firewall & router where I did the port redirect, the same url that works from outside won't work inside. That is, https://owncloud.example.com:4443 doesn't resolve. I can change the URL to https://owncloud and let my local DNS resolve that, which does work.
The problem with that is a client sync set up on a laptop or mobile device will have to have the server URL changed every time someone comes & goes to keep it in sync. What's the work around for this? I've tried a few things, redirecting ports on the local subnet, but haven't gotten anywhere.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Change default SSL port from 443 within server?

Postby RealRancor » Mon Jul 22, 2013 7:22 pm

Hi,

you could create two configs for each of the urls like described here:

viewtopic.php?f=14&t=11911

and two shortcuts for each of the configs. Then start the sync client with the proper shortcut. (depending on your location)
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud desktop sync clients”

Who is online

Users browsing this forum: No registered users and 0 guests