Page 1 of 1
[Resolved] How change default website port 80/443
Posted: Sat May 19, 2018 1:49 pm
by khampol
Hi,
Bt default my website is on port 443 (https). I want to change it lets say 4499. How do that please ?
Re: How change default website port 80/443
Posted: Sun May 20, 2018 9:15 am
by khampol
Help please guys.... :-(((((
Re: How change default website port 80/443
Posted: Sun May 20, 2018 2:10 pm
by mehargags
open the custom port in firewall first
then
You can edit /home/<user>/conf/web/<ssl.domain.conf> and change it whatever port you like.
restart nginx
Re: How change default website port 80/443
Posted: Mon May 21, 2018 3:06 am
by khampol
Hi and thx for reply thats help but it do not resolve the problem.
I try to install Nextcloud but as our only IP is already use by another server I try to set nextcloud in a port like 44881 but it always and come back to 443 so its just a messy stuff here...
Find other solution...
K.
Re: How change default website port 80/443
Posted: Tue May 22, 2018 2:25 pm
by mehargags
khampol wrote: ↑Mon May 21, 2018 3:06 am
Hi and thx for reply thats help but it do not resolve the problem.
I try to install Nextcloud but as our only IP is already use by another server I try to set nextcloud in a port like 44881 but it always and come back to 443 so its just a messy stuff here...
Find other solution...
K.
You need to create nextcloud as a subdomain and not run it under a different port. You are doing it way too hard. so configure a new domain like nc.domain.com and install nextcloud on it and enable https on it.
Please try to understand the basics of webserver and how to create and manage multiple domains before stepping onto any kind self-managed server setup. If you can't do this, consider paid support option
https://vestacp.com/pricing/
Re: [Resolved] How change default website port 80/443
Posted: Tue May 22, 2018 2:38 pm
by khampol
Thanks to try to help but the "other" servers already taken the other IP are not even VestaCP... (Something like VM Esxi....) so doing subfolder or subdomain would be impossible....
You are doing it way too hard
U are right ....
So I ask to a friend who already have Nextcloud for some space ;) .. Way easier.
Re: [Resolved] How change default website port 80/443
Posted: Tue May 22, 2018 3:07 pm
by mehargags
You mean you don't have any IPs spare to be used on VestaCP ? If that is the case, you need to change your web templates and also nextcloud to run and listen on different ports. It will be way more harder to maintain for you. Better to search for alternatives like you've already found
Re: [Resolved] How change default website port 80/443
Posted: Wed Apr 01, 2020 4:13 am
by Vegas10128
Posts like these are never any fucken help please remove this and NOT MARK IT RESOLVED.