I installed an Apache on the virtual machine, and after deploying a WordPress, I mapped the domain name on the local host hosts file.
such as 192.168.123.123 LI.YYY.ABC
After logging in to Li.yyy.abc/phpmyadmin, the browser still displays the domain name,
But after logging in li.yyy.abc/wordpress, the browser is 192.168.123.123/wordpress? Why, how can I display a domain name like phpMyAdmin?
Reply to discussion (solution)
That 192.168.123.123 was written in your program.
Obviously WordPress background is not configured well, to see the background of the domain settings bar
That 192.168.123.123 was written in your program.
Hello, can you speak clearly? Are you saying that the WordPress module has been modified in the code to display the IP directly?
Not the WordPress module modified the code, but you in the configuration file also retains the original settings
is not the WordPress module to modify the code, but you in the configuration file also retains the original settings
you said too right, thank you very much,
do not know if you have studied WordPress, I now have a problem, I would like to ask you, I need to use WordPress to build a multi-site blog system: Require the user's domain name is zhang.abc.com, li.abc.com, wang.abc.com ... And so on, in addition to the abc.com domain name in addition to the deployment of WordPress also deployed other web systems, how do I do the above requirements? I now have only one virtual machine, no DNS server, want to do simulation test. Here are some configuration files, but no, thank you very much! The
wp-config.php multisite configuration is as follows:
#define (' multisite ', true);
#define (' Subdomain_install ', false);
#define (' Domain_current_site ', ' 192.168.162.129 ');
#define (' Path_current_site ', '/wordpress/');
#define (' Site_id_current_site ', 1);
#define (' Blog_id_current_site ', 1); The
Apache httpd.cof configuration file roughly looks like this
ServerName "li.abc.com"
Serveralias *.abc. COM
alias/wordpress "/opt/lampp/htdocs/wordpress"
O Ptions Indexes followsymlinks includes execcgi
allowoverride all
Require all granted
Obviously WordPress background is not configured well, to see the background of the domain settings bar
Yes, thank you very much. Can you help me look at the above questions?
Use WordPress to build a multi-site blog system?
Each station needs to have a directory to store things that belong only to that station, including configuration files
You can give each station to create a virtual host machine, you can also use Urlwrite implementation (test environment, tired of the dead)