Question

in mobile can not show IP like i want

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 "bmwpoker.net" "157.230.251.135";
            proxy_set_header Host bmwpoker.net;
            proxy_pass http://bmwpoker.net;
            proxy_set_header X-Real-IP $remote_addr;

    }

please some buddy help me,thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.