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.
1 answer
- 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.
- At the second computer in the hosts, register the IP_address of the first computer for the site.lo host
- 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 ...
|
http://localhost
. Then, when accessing it via ip or the domain name Apach, it will change the address to the desired value. - federk