一台linux服务器,单IP。
想搭建多个网站,网站后台用wordpress。
如何能搭建多个,并且实现多个域名绑定,独立后台访问
PHP中文网2017-04-17 12:11:24
Use nginx as a reverse proxy: all domain names point to the IP of your server, and then configure the access rules in nginx. The rest is to throw in a few more wordpress under apache.
高洛峰2017-04-17 12:11:24
Since it is a server. . .
The number of IPs has nothing to do with the number of websites to be installed
apache virtualhost
大家讲道理2017-04-17 12:11:24
Use lnmp
You can bind multiple domain names to a single IP
Each domain name can be placed in a different folder
There is already an installation package http://lnmp.org/
Easy to use
大家讲道理2017-04-17 12:11:24
apache virtualhost configuration or nginx vhosts
The database can share a mysql and use different accounts and databases
黄舟2017-04-17 12:11:24
wordpress What you are talking about is the concept of virtual host. If you can use the command, it is not recommended to install the panel. You can install lnmp or lnmp integration package for fun. I used Jun Ge’s lnmp.org one-click installation package. , very useful. If you want to use a panel, you can choose a free version such as kloxo or amh. Multiple sites can be built.
伊谢尔伦2017-04-17 12:11:24
vhost creates a virtual host and then binds the domain name and resolves your domain name a record to your virtual host
伊谢尔伦2017-04-17 12:11:24
Wordpress provides two methods by default, subdirectory and subdomain name. Multiple accounts and multiple IPs have nothing to do with each other.