add fastcgi-cache mapping

This commit is contained in:
VirtuBox
2019-03-04 11:39:04 +01:00
parent 53be5bad2d
commit 5e48cb07fa
2 changed files with 46 additions and 0 deletions

View File

@@ -253,6 +253,14 @@ class WOStackController(CementBaseController):
self.app.render((data), 'upstream.mustache', out=wo_nginx)
wo_nginx.close()
Log.debug(self, 'Writting the nginx configuration to '
'file /etc/nginx/conf.d/map-wp-fastcgi-cache.conf')
wo_nginx = open('/etc/nginx/conf.d/map-wp-fastcgi-cache.conf',
encoding='utf-8', mode='w')
self.app.render((data), 'fastcgi-cache.mustache',
out=wo_nginx)
wo_nginx.close()
# Setup Nginx common directory
if not os.path.exists('/etc/nginx/common'):
Log.debug(self, 'Creating directory'