There are 2 computers on the local network. The first is Ubuntu server \ lamp \ wordpress another client. If you go to the wordpress page from the server, everything is fine. If you log in from a client, the html file is loaded, but without design and all links, the beginning of the address is changed from the current ip: 192.168.0.2 to localhost.

  • what is the question? - titov_andrei
  • It is necessary that the server address in wordpress was registered as http://localhost . Then, when accessing it via ip or the domain name Apach, it will change the address to the desired value. - federk
  • From the last paragraph- "If you log in from the client, the html file is loaded, but without design and in all links, the beginning of the address is changed from the current ip: 192.168.0.2 to localhost.". That is, I go to the server from the server - I see a normal site. If I come from the client - I see only the html frame in text format. Without registration. All links see on localhost. For example: " localhost / wordpress /? P = 1 # comments ". How to fix it? That in the localhost place there was a real address. - TestMail

1 answer 1

  1. On the Apache server, a host must be configured by the name of which the necessary directory will be given, for example, by the name site.lo to process the contents of /var/www/site.lo, where the WP is.
  2. At the second computer in the hosts, register the IP_address of the first computer for the site.lo host
  3. Access the site from a second computer at http: //site.lo

I work myself, according to this scheme ... What you need is not yet clear ...