Multi Wordpress install Apache2 config

时间:2017-08-04 12:19:59

标签: wordpress apache ubuntu apache2

I have multiple instances of Wordpress installed on a single server.

the file structure is like this:

var/www/siteone.com/app/...wp install
var/www/sitetwo.com/app/...wp install
var/www/sitethree.com/app/...wp install

in the respective sites-available *.conf files, I have this:

000-default.conf

DocumentRoot /var/www

siteone.com.conf

ServerName siteone.com
DocumentRoot /var/www/siteone.com/app
ServerAlias www.siteone.com

I've run a2ensite siteone.com and reb0oted apache. As I'm still setting it up, I don't actually have domain mapped to the ip so I am attempting to access the site with http://123.456.789.0

How does apache map that to the sub dir? Does it become http://123.456.789.0/siteone.com? Every combination I try yields a failure to respond from the server. Am I missing a step? Thanks in advance.

0 个答案:

没有答案