Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Access wordpress from outside - Resolve local ip why?

Writer Matthew Barrera

I'm trying to set up wordpress on debian jessie.

I can access the site within my LAN but not from outside...

Port forwarding is set on my router from TCP 80 -> 192.168.1.150 (local ip wordpress server)

When i try to access it from outside, it's still trying to resolve my local ip (i see that on chrome which is saying "Waiting for 192.168.1.150...")

It works fine with apache2 default page. I have another web server and it works fine too.

  • Do i have to put something special in apache2 .conf file (maybe to preserve relative paths ?)

  • Do i have to change something in /etc/hosts ? I tried to add those lines

    127.0.0.1 mydomain.net 192.168.1.150 mydomain.net

But it's still the same...

Any help would be greatly appreciated !!

3

1 Answer

Wordpress will redirect you to the URL you have configured in:

Settings > General

My guess is you're getting to the wordpress engine, and it is redirecting you to the local IP. Just update "Wordpress Address (URL)" and "Site Address (URL)" to be your public IP address and you should be good.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy