Use the Hosts file for domain name resolution, how to log on to the domain name website after the browser address does not display IP

Source: Internet
Author: User
Tags multisite
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)

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.