Nginx not working
Hello, I'm running a nginx server on Linux Mint 20.2 Cinnamin. When I use Localhost it shows my webpage but when I connect to it through another computer it says it can't connect. Pls Help.
|
Quote:
And although we know you're using nginx on Mint 20...we know nothing else. No web browser, other computer details, network details, what you're putting in on the other side, etc. What are you typing in on the other computer to try to access the web page? How are you accessing it on the local computer? Firewalls? SELinux? We need more details. |
Hey, 1. Im not using text to speach, just in a hurry. 2. on the other end I'm using chrome os to acsses it with all firewalls down.
And The Linux pc is a Lenovo flex 3 |
Quote:
Quote:
Again, without any sort of relevant information we can't even guess. We don't even know what (if any) messages you're getting on whatever browser you're trying to use. |
The questioner needs: the Google keywords. What are they?
/r/linux4noobs would have worked infinitely better. I didn't click on "View Post", to read the missing #2 & #4, sorry. |
Quote:
Quote:
Quote:
|
Can anyone *else* help the questioner use Google?
I'll take a guess at the Google: Quote:
But I don't know how to teach /r/linux4noobs to fix the UNdisplayed posts. Maybe someone else can. Possibly the IP address is the problem, but that's a blind guess. Do you know ping? I haven't made the effort to learn to get Mint text-to-speech working, so it's difficult for me to reply, especially without seeing any further info. I'm guessing the UNdisplayed posts are scaring the n00b away, so let's *wait* to see if the questioner ever comes back to LQ. Quote:
|
Either one or both of these two issues.
One is nat/pat to allow traffic between client and server. Other tends to be configuration of server. Would need some info on both. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
So is this what you need? I am using it as a http server so i connect through http. here is my nginx.conf
user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # SSL Settings ## ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers on; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## gzip on; # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } #mail { # # See sample authentication script at: # # http://wiki.nginx.org/ImapAuthentica...pachePhpScript # # # auth_http localhost/auth.php; # # pop3_capabilities "TOP" "USER"; # # imap_capabilities "IMAP4rev1" "UIDPLUS"; # # server { # listen localhost:110; # protocol pop3; # proxy on; # } # # server { # listen localhost:143; # protocol imap; # proxy on; # } #} |
I'm learning here... I think I see the same problem! (simply apt install nginx)
ufw 'inactive'. ping works. (MX; any Deb deriv maybe) Code:
$ sudo tcpdump ip host 192.168.1.100 -nn **So, I'm guessing it's not nginx/pgm related. Code:
$ sudo netstat -tpln | egrep '80|111' |
Quote:
Please answer the simple questions asked several times now. |
@GUru1: maybe my situation is same as low-info OP. Did *I* provide sufficient details?
:genuflect: Added: ooops, tcpdump looks same on successful localhost https://termbin.com/m29k so maybe I'm lost off in 'left-field' here... (at least my debugging might be partly useful to someone someday) p.s.: @NginxUser: can you collect the same: sudo tcpdump -nnvv ip host <the IP of remote machine> You can also try, from remote machine: telnet <NginxServer> 80 and enter: GET / Does that *not* connect? (But does if done on localhost) EDIT added AFTER #14 (since OP hasn't been back): It was actually working, just no prompt! Yup, I totally "fell off of left-field". I disassembled my car engine, only to discover I hadn't heard it was running ok! Learned a lot tho. "When the impossible is happening, it isn't". Again. |
Quote:
tcpdumps, wireshark, etc., are tools to use *AFTER* you do basic diagnostics and troubleshooting. Ping the machine; try a different service; describe the network. A machine on the same network/VLAN has a totally different set of issues than one that has to be NAT'ed at both ends, runs over the Internet, through firewalls, etc. As of yet, we don't know what they're seeing in the browser; for all we know, it's a 404 message because the web page is misspelled. Or they're keying the machine name in with no hosts entry. Could be incredibly simple or not...but unless you start with BASICS and go forward, it's 1000 times more difficult to diagnose. Would you like to take your car to the mechanic and have them pull the engine out to 'diagnose' a noise, or would you want them to start it and just look and listen? Plug in the ODB scanner and read codes? Start simple, go from there. Quote:
|
1. http://<Ip Address>
2. http://localhost and http://ip-address 3. Chrome 4. Different and Internet 5. (Chrome error) ERR_ADDRESS_UNREACHABLE 6. How do I (I don't have Linux enabled and I can't) 7. And I don't have a server I can Connect to. |
All times are GMT -5. The time now is 02:34 PM. |