mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
apache conf
This commit is contained in:
parent
f7b50c3166
commit
669b33ad73
1 changed files with 1 additions and 12 deletions
|
@ -312,18 +312,7 @@ def app_install(app, domain, path='/', label=None, mode='private'):
|
||||||
]
|
]
|
||||||
|
|
||||||
if lvl(manifest, 'yunohost', 'webapp', 'language') and manifest['yunohost']['webapp']['language'] == 'php':
|
if lvl(manifest, 'yunohost', 'webapp', 'language') and manifest['yunohost']['webapp']['language'] == 'php':
|
||||||
a2_conf_lines.extend([
|
for line in open(a2_template_path +'/php.conf'): a2_conf_lines.append(line)
|
||||||
'<IfModule php5_module>',
|
|
||||||
' AddType application/x-httpd-php .php',
|
|
||||||
' <FilesMatch \.php$>',
|
|
||||||
' SetHandler application/x-httpd-php',
|
|
||||||
' </FilesMatch>',
|
|
||||||
' AddType application/x-httpd-php-source .phps',
|
|
||||||
' <IfModule dir_module>',
|
|
||||||
' DirectoryIndex index.php index.html',
|
|
||||||
' </IfModule>',
|
|
||||||
'</IfModule>'
|
|
||||||
])
|
|
||||||
|
|
||||||
with open(a2_settings_path +'/'+ domain +'.d/'+ unique_app_id +'.app.conf', 'w') as a2_conf:
|
with open(a2_settings_path +'/'+ domain +'.d/'+ unique_app_id +'.app.conf', 'w') as a2_conf:
|
||||||
for line in a2_conf_lines:
|
for line in a2_conf_lines:
|
||||||
|
|
Loading…
Add table
Reference in a new issue