Welcome! Log In Create A New Profile

Advanced

MachineName vs IP in URL

Posted by stonkers 
MachineName vs IP in URL
November 07, 2019 10:48AM
Hi! I'm guessing this is a pretty simple fix, but I'm very new to NGINX. I'm having an issue where if I use the url:

http://myservername.mydomain:8080/

All is good. However, if I use:

http://1.2.3.4:8080/

I get the default 404 from NGINX. What must I do to make both work?

Thanks,
Eric
Re: MachineName vs IP in URL
November 07, 2019 12:54PM
I tried adding the IP address to the nginx.conf file:

server {
listen 8080 default_server;
listen [::]:8080 default_server;
server_name machineName.domain
1.2.3.4;

This didn't change anything.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready