Nginx questions
-
@Donahue said in Nginx questions:
I can tell port 80 is forwarding, If I put in my external ip, I hit the Nginx test page. Can I test https without a cert, or do I have to just wait?
Same way.
-
Can you put an entry in your hosts file awhile to test instead of waiting on your DNS provider?
-
@Obsolesce said in Nginx questions:
Can you put an entry in your hosts file awhile to test instead of waiting on your DNS provider?
But to test the port you don't need that, only need the IP address.
-
@scottalanmiller said in Nginx questions:
@Obsolesce said in Nginx questions:
Can you put an entry in your hosts file awhile to test instead of waiting on your DNS provider?
But to test the port you don't need that, only need the IP address.
Right, I wasn't addressing the port part of the OP, the second part. Quote fail on my part.
-
telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.
-
also, Who is a good DNS provider? I am getting tired of waiting for them to respond.
-
@Donahue said in Nginx questions:
also, Who is a good DNS provider? I am getting tired of waiting for them to respond.
Cloudflare and it’s free
-
@Donahue said in Nginx questions:
telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.
If you are trying internally what firewall is blocking you?
Also why are you trying 443? SMTP is port 25.
-
@Dashrender said in Nginx questions:
@Donahue said in Nginx questions:
telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.
If you are trying internally what firewall is blocking you?
Also why are you trying 443? SMTP is port 25.
Aww I see you’re testing https, not smtp
-
@Dashrender said in Nginx questions:
@Donahue said in Nginx questions:
telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.
If you are trying internally what firewall is blocking you?
Also why are you trying 443? SMTP is port 25.
I turned off windows firewall and still cannot get through. I am trying to telnet 443 into my Nginx VM. The Nginx firewall says 443 is open.
-
- Use nmap to scan ports to see what is open/closed/blocked.
-
Its working. My DNS updated and externally, its going to https. I am not sure why telnet was not working.
-
I've still got a few loose ends though. I want to set my cert to auto renew, but I dont know quite what to do on this step:
@JaredBusch said in Install Nginx as a Reverse Proxy on Fedora 27:
Don't forget to automate the cert renew
Create a cron job to run the renew everyday. Certbot will not actually do anything if it does not see any certs needing renew within 30 days. So you can run this as often as you want. Cerbot themselves recommends running it twice a day with this.
Usecrontab -e
to edit your crontab.0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew
If I try and run
crontab -e
, it says:[root@nginx ~]# crontab -e -bash: crontab: command not found
-
I am also getting the following error on NC on my iPhone
-
@Donahue any chance you forget the https ?
-
-
could this be a DNS propagation issue? like wait and see?
-
@Donahue said in Nginx questions:
could this be a DNS propagation issue? like wait and see?
No, because you are clearly seeing the right resolution of the hostname.
-
@Donahue said in Nginx questions:
I've still got a few loose ends though. I want to set my cert to auto renew, but I dont know quite what to do on this step:
@JaredBusch said in Install Nginx as a Reverse Proxy on Fedora 27:
Don't forget to automate the cert renew
Create a cron job to run the renew everyday. Certbot will not actually do anything if it does not see any certs needing renew within 30 days. So you can run this as often as you want. Cerbot themselves recommends running it twice a day with this.
Usecrontab -e
to edit your crontab.0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew
If I try and run
crontab -e
, it says:[root@nginx ~]# crontab -e -bash: crontab: command not found
Ok, I think I got the cron job thing all figured out. I had to install cronie. One question though, I just pasted that into my cron file, and then saved. Is that all I need to do?
-
looks like the NC thing might be a bug with just iOS and using a reverse proxy
https://github.com/nextcloud/server/issues/11464