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