fix webroot for proxy

This commit is contained in:
VirtuBox
2019-03-20 02:29:40 +01:00
parent 57bd6257db
commit 037e531fe3

View File

@@ -326,7 +326,8 @@ class WOSiteCreateController(CementBaseController):
dict(help="create WordPress single/multi site with wpsc cache", dict(help="create WordPress single/multi site with wpsc cache",
action='store_true')), action='store_true')),
(['--wpredis'], (['--wpredis'],
dict(help="create WordPress single/multi site with redis cache", dict(help="create WordPress single/multi site "
"with redis cache",
action='store_true')), action='store_true')),
(['-le', '--letsencrypt'], (['-le', '--letsencrypt'],
dict(help="configure letsencrypt ssl for the site", dict(help="configure letsencrypt ssl for the site",
@@ -342,8 +343,9 @@ class WOSiteCreateController(CementBaseController):
dest='wppass')), dest='wppass')),
(['--proxy'], (['--proxy'],
dict(help="create proxy for site", nargs='+')), dict(help="create proxy for site", nargs='+')),
(['--vhostonly'], (['--vhostonly'], dict(help="only create vhost and database "
dict(help="only create vhost and database without installing WordPress", nargs='+')), "without installing WordPress",
action='store_true')),
(['--experimental'], (['--experimental'],
dict(help="Enable Experimental packages without prompt", dict(help="Enable Experimental packages without prompt",
action='store_true')), action='store_true')),
@@ -406,7 +408,7 @@ class WOSiteCreateController(CementBaseController):
data['proxy'] = True data['proxy'] = True
data['host'] = host data['host'] = host
data['port'] = port data['port'] = port
wo_site_webroot = "" wo_site_webroot = WOVariables.wo_webroot + wo_domain
if self.app.pargs.php73: if self.app.pargs.php73:
data = dict(site_name=wo_domain, www_domain=wo_www_domain, data = dict(site_name=wo_domain, www_domain=wo_www_domain,