Fix wo site cd & use proxy_params
This commit is contained in:
@@ -241,6 +241,11 @@ class WOSiteController(CementBaseController):
|
|||||||
wo_site_webroot = getSiteInfo(self, wo_domain).site_path
|
wo_site_webroot = getSiteInfo(self, wo_domain).site_path
|
||||||
if os.path.isdir(wo_site_webroot):
|
if os.path.isdir(wo_site_webroot):
|
||||||
WOFileUtils.chdir(self, wo_site_webroot)
|
WOFileUtils.chdir(self, wo_site_webroot)
|
||||||
|
|
||||||
|
try:
|
||||||
|
subprocess.call(['/bin/bash'])
|
||||||
|
except OSError as e:
|
||||||
|
Log.debug(self, "{0}{1}".format(e.errno, e.strerror))
|
||||||
else:
|
else:
|
||||||
Log.error(self, "unable to change directory")
|
Log.error(self, "unable to change directory")
|
||||||
|
|
||||||
|
|||||||
@@ -21,9 +21,7 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://{{host}}:{{port}};
|
proxy_pass http://{{host}}:{{port}};
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
include proxy_params;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Security settings for better privacy
|
# Security settings for better privacy
|
||||||
|
|||||||
Reference in New Issue
Block a user