Skip to content
Snippets Groups Projects
Commit 298ef538 authored by Falko Timme's avatar Falko Timme
Browse files

- Added Python support (for Apache).

parent 0ee22c71
No related branches found
No related tags found
2 merge requests!46Master,!21Master
ALTER TABLE `web_domain` ADD `python` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `ruby`;
\ No newline at end of file
...@@ -1492,6 +1492,7 @@ CREATE TABLE `web_domain` ( ...@@ -1492,6 +1492,7 @@ CREATE TABLE `web_domain` (
`subdomain` enum('none','www','*') NOT NULL default 'none', `subdomain` enum('none','www','*') NOT NULL default 'none',
`php` varchar(32) NOT NULL default 'y', `php` varchar(32) NOT NULL default 'y',
`ruby` enum('n','y') NOT NULL default 'n', `ruby` enum('n','y') NOT NULL default 'n',
`python` enum('n','y') NOT NULL default 'n',
`redirect_type` varchar(255) default NULL, `redirect_type` varchar(255) default NULL,
`redirect_path` varchar(255) default NULL, `redirect_path` varchar(255) default NULL,
`seo_redirect` varchar(255) default NULL, `seo_redirect` varchar(255) default NULL,
......
...@@ -216,6 +216,12 @@ $form["tabs"]['domain'] = array ( ...@@ -216,6 +216,12 @@ $form["tabs"]['domain'] = array (
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n',1 => 'y') 'value' => array(0 => 'n',1 => 'y')
), ),
'python' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n',1 => 'y')
),
'active' => array ( 'active' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
......
...@@ -79,4 +79,5 @@ $wb['www_to_non_www_txt'] = 'www -> Nicht-www'; ...@@ -79,4 +79,5 @@ $wb['www_to_non_www_txt'] = 'www -> Nicht-www';
$wb['php_fpm_use_socket_txt'] = 'Benutze Socket für PHP-FPM'; $wb['php_fpm_use_socket_txt'] = 'Benutze Socket für PHP-FPM';
$wb['ipv6_address_txt'] = 'IPv6-Address'; $wb['ipv6_address_txt'] = 'IPv6-Address';
$wb['error_no_sni_txt'] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.'; $wb['error_no_sni_txt'] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.';
$wb["python_txt"] = 'Python';
?> ?>
...@@ -79,4 +79,5 @@ $wb["non_www_to_www_txt"] = 'Non-www -> www'; ...@@ -79,4 +79,5 @@ $wb["non_www_to_www_txt"] = 'Non-www -> www';
$wb["www_to_non_www_txt"] = 'www -> non-www'; $wb["www_to_non_www_txt"] = 'www -> non-www';
$wb["php_fpm_use_socket_txt"] = 'Use Socket For PHP-FPM'; $wb["php_fpm_use_socket_txt"] = 'Use Socket For PHP-FPM';
$wb["error_no_sni_txt"] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.'; $wb["error_no_sni_txt"] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.';
$wb["python_txt"] = 'Python';
?> ?>
\ No newline at end of file
...@@ -83,6 +83,12 @@ ...@@ -83,6 +83,12 @@
{tmpl_var name='ruby'} {tmpl_var name='ruby'}
</div> </div>
</div> </div>
<div class="ctrlHolder apache">
<p class="label">{tmpl_var name='python_txt'}</p>
<div class="multiField">
{tmpl_var name='python'}
</div>
</div>
<div class="ctrlHolder apache"> <div class="ctrlHolder apache">
<p class="label">{tmpl_var name='suexec_txt'}</p> <p class="label">{tmpl_var name='suexec_txt'}</p>
<div class="multiField"> <div class="multiField">
......
...@@ -105,6 +105,16 @@ ...@@ -105,6 +105,16 @@
</IfModule> </IfModule>
</tmpl_if> </tmpl_if>
<tmpl_if name='python' op='==' value='y'>
<IfModule mod_python.c>
<Directory {tmpl_var name='web_document_root'}>
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</IfModule>
</tmpl_if>
<tmpl_if name='cgi' op='==' value='y'> <tmpl_if name='cgi' op='==' value='y'>
# cgi enabled # cgi enabled
<Directory {tmpl_var name='document_root'}/cgi-bin> <Directory {tmpl_var name='document_root'}/cgi-bin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment