A
A
Artyom2018-06-24 15:42:24
linux
Artyom, 2018-06-24 15:42:24

How to access via external IP on wordpress which is installed in the local network?

LAMP + wordpress is installed on the local PC, if in the WordPress settings I specify the internal ip (WordPress Address (URL) and Site Address (URL)) then there is no access via i-no, if I put my external IP then there is no access via LAN. Everything seems to be logical, but how can I work with wordpress locally and over the Internet?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
d-stream, 2018-06-24
@d-stream

https://ru.wikipedia.org/wiki/Loopback
Either in the local dns/hosts register a local address for the domain name

D
Dexteny, 2018-06-26
@Dextenny

In the Apache config, add a virtual host by analogy with what is available, specifying the local ip for "listening".

<VirtualHost 10.1.2.3:80>
DocumentRoot /www/docs/host.example.com
ServerName host.example.com
</VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question