in mobile can not show IP like i want

Posted May 1, 2019 502 views

how to set up let in mobile can show just IP

this my set up ( in destop show ip but in mobile show domain name, not show IP which i want)
maybe something wrong

server_name _;

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            #try_files $uri $uri/ =404;
            proxy_set_header Accept-Encoding "";
            sub_filter_once off;
            sub_filter_types *;
            sub_filter "" "";
            proxy_set_header Host;
            proxy_set_header X-Real-IP $remote_addr;


please some buddy help me,thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @andisusanto1688

Just to make this clear, you goal is to access your application using only the IP address in the browser, both on PC and mobile devices? If this is not working only on mobile devices, it can be related to the user-agent session itself.