Skip to content
Advertisement

Tag: host

NGINX 404 not found but file exists

I want to call the index.html from the folder /var/www/fileUpload/html. The index.html file exists in that folder. The / router works. the uploadFiles route as well. But when I open the upload route I get a 404 error. Do you have any suggestions? Thank you! Answer That should be alias /var/www/fileUpload/html; otherwise Nginx is looking for the file in /var/www/fileUpload/html/upload/index.html.

Obtaining IP from command ‘host’ executed inside python

I have this function to show me the 1st ip of a domain: But this only shows me the first ip. I’d like to show only the ip’s. The marker is for not having “has address” as shown below (imagine I input “reddit.com”: I want to show only the ips, not reddit.com has addressnor once the ip’s end, mail is

Advertisement