It's entirely possible to host your own Nextcloud server at home, I did this myself for years. I would actually recommend home-hosting over a VPS because it gives you more control.1123artc said
Is it possible to set up my own web server for which I can then use Let's Encrypt, and have NextCloud running at my known physical location and accessible over the internet? I'm still researching this online, but have been coming up short.
From “NextCloud”, January 6th 2019, 6:22 PM
If that's a literal copy-paste error message, the issue is that "mydomain.com" is obviously an example domain name and not one that you control.1123artc said
For more detail, the error I received was right after editing the 000-default.conf file to include the server name. Running "certbot –apache", while asking if I'd like to activate HTTPS for the name I used, wound up resulting in an failure after "Cleaning up challenges" stating "The server could not resolve a domain name :: No valid IP addresses found for mydomain.com".
From “Post #288”, January 6th 2019, 7:57 PM
To be clear, your PC (or, rather, your home internet connection) does have a public IP address. You can find it by going to DuckDuckGo and searching "what is my ip", then look at the info it returns at the top or use any of the websites in the results. Your home router performs Network Address Translation (NAT) to translate that single public IP into a separate private one for each of your devices.1123artc said
Which I then figured the issue was because I was using my private IP address instead of a public one from a web server.
From “Post #288”, January 6th 2019, 7:57 PM
LAMP stands for Linux, Apache, MySQL/MariaDB, and PHP. All four of those things were included in my tutorial. APCu and Redis are memory caching tools, which were also covered in the tutorial.1123artc said
I came across this guide: <snip> which outlines additional software needs that I believe weren't in the NOTS tutorial as a VPS was being used. Examples are installation of LAMP, APCu, and Redis.
From “Post #289”, January 6th 2019, 8:20 PM
That's bad advice in my opinion. A home-hosted server gives you complete physical control over your data. The only downsides are that your internet connection may not be very fast and your public IP address is liable to change.1123artc said
At this point, I figure it must be possible as people host their own sites all the time….
Some other reading I've done recommends not hosting one's own server as there are a number of disadvantages, but I'm doing this more as a learning exercise than anything, so I'll continue on that front.
From “Post #289”, January 6th 2019, 8:20 PM
Like I said, you have a public IP address. You need to find out what that is (very easy to do, just search for it and use any of the tools listed.) Personally, I would register yourself a domain name to make things easier, and set an A record pointing the domain name to your home's IP address; that way, if/when your home's IP address changes (because ISPs don't usually guarantee static IPs for residential connections), you can log into your domain registrar and update the IP address while keeping the domain name the same. Alternatively, if your IP changes too often, there are a number of dynamic DNS resolvers that will basically check what your public IP is periodically (from one of your local machines) and update your domain name for you.1123artc said
Looking back at the video, the main discrepancy from my approach is that Jacob does SSH into the root at the IP address provided for Digital Ocean's VPS. That's effectively where I deviate. I guess at this point, my question is:
"Is it possible to obtain and SSH into a public IP address on a web server run from my computer at home with no additional hardware, such that I can use Let's Encrypt to get HTTPS when accessing the server?"
Alternatively, if that isn't possible:
"Is there another simple means of encrypting the private IP address of my PC to get HTTPS when accessing the server over the internet?"
From “Post #290”, January 7th 2019, 6:53 PM
Once you've figured out your public IP address, you will need to go into your router and set a port forward for ports 80 and 443 pointing to the private IP address of your web server. That's how your router knows which device to forward unsolicited requests for those ports to. I can't give specific details on that because it's different for every router, but basically, you should find a settings screen where you can select the outside port (80 and 443, both TCP and UDP for simplicity although HTTP/HTTPS use TCP) and the private IP address (what your web server thinks its IP address is.)1123artc said
Following the NOTS video on "Setting up a home web server", I was made aware of port forwarding. Researching more into this now.
From “Post #291”, January 7th 2019, 8:42 PM
1123artc said
I was under the impression I wouldn’t be able to use the public router IP address, so that’s good to know for sure that I can. As I said I’ve got my domain name, and following your tutorial, I learned how to point it to an IP address. I’ll have to do some tests to see if I can get my router IP address to remain static, but if not I’ll look more into dynamic DNS resolvers.
From “Post #294”, January 8th 2019, 8:12 AM
1123artc said
I was able to log into my router last night and figure out how things work. I’ll have to spend some more time on port forwarding to set it up correctly.
From “Post #294”, January 8th 2019, 8:12 AM
Last edit: by _HC1_dude
Hi there! In Hover, go to your domain, DNS, Add A Record, and set Type to "A" and Hostname to, e.g., "nextcloud" if you want nextcloud.mydomain.com, with the IP address set to the same static IP you were already using._HC1_dude said
*** OK bit of an update. I figured out how to move my router off port 80 for its admin, and I set up port forarding for ports 80 and 443 and now I can see my nextcloud installation from going to mydomain.com.
Like Jacob I ma using Hover as my registrar but I can't get anything to show up for making an A record for nextcloud.mydomain.com.
From “Post #336”, June 22nd 2019, 4:23 AM
_HC1_dude said
I'll have another try and making that happen but when I did it before and pinged next cloud.mydomain.com the IP that returned was the Hover IP for parked domains, but pinging mydomain.com returned my IP. I'll try again and check my steps.
From “Post #338”, June 30th 2019, 6:37 PM
_HC1_dude said
Also, I'll check out your suggested video but it sounds like I don't necessarily need to move my next cloud install out of /var/www/html?
From “Post #338”, June 30th 2019, 6:37 PM
tecnotuy said
Hi jacobgkau, greetings from Venezuela, I like all your example videos, I have a lot of affinity for the Linux operating system, however I wanted to know if you can help me create sub-domains in ubuntu server 18.04 TLS?
Now configure the nextcloud server integrated with collabora online, and I would like to take advantage of the resource to add other applications as sub-domains without damaging the initial installation.
Thank you,
Fernando Hernandez
From “Post #346”, August 31st 2019, 9:25 AM
fredericksun said
Hi Jacob,
What linux distro are you using in the "How to install Nextcloud 15" video. It looks really cool. Also I'm having issues with uploading to nextcloud. the fastest it will upload a file at is around 35mb/s if I'm lucky. Is there a setting I need to adjust to make it upload faster. I have a windows server on the same hypervisor that I can upload the same file at 100mb/s so I think there is something wrong with my nextcloud or apache configurations. The installation of Nextcloud worked great! I just thought you might be able to help me fix this problem or something.
Thanks,
From “Post #355”, October 29th 2019, 8:46 AM
dworthem said
I have word press site on a SiteGround host site and separately I have a Linode. On the Linode I have Mattermost and Nextcloud ( both using nginx) with using subdomain from the Word Press site domain name. I installed OnlyOffice Document Server (not docker container), I did not change the port before installing thinking I can redirect correctly in config files. However, I am not sure, should I have changed the port to something else like 81? If I should change the port what are the config files that I would have to edit. Also what should basically be in the /etc/nginx/sites-available/onlyoffice config file to direct the onlyoffice subdomain call to the DocumentServer?
From “Post #366”, January 20th 2020, 12:34 AM