Skip to content

Commit 298ef53

Browse files
committed
- Added Python support (for Apache).
1 parent 0ee22c7 commit 298ef53

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `web_domain` ADD `python` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `ruby`;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,7 @@ CREATE TABLE `web_domain` (
14921492
`subdomain` enum('none','www','*') NOT NULL default 'none',
14931493
`php` varchar(32) NOT NULL default 'y',
14941494
`ruby` enum('n','y') NOT NULL default 'n',
1495+
`python` enum('n','y') NOT NULL default 'n',
14951496
`redirect_type` varchar(255) default NULL,
14961497
`redirect_path` varchar(255) default NULL,
14971498
`seo_redirect` varchar(255) default NULL,

interface/web/sites/form/web_domain.tform.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@
216216
'default' => 'n',
217217
'value' => array(0 => 'n',1 => 'y')
218218
),
219+
'python' => array (
220+
'datatype' => 'VARCHAR',
221+
'formtype' => 'CHECKBOX',
222+
'default' => 'n',
223+
'value' => array(0 => 'n',1 => 'y')
224+
),
219225
'active' => array (
220226
'datatype' => 'VARCHAR',
221227
'formtype' => 'CHECKBOX',

interface/web/sites/lib/lang/de_web_domain.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ $wb['www_to_non_www_txt'] = 'www -> Nicht-www';
7979
$wb['php_fpm_use_socket_txt'] = 'Benutze Socket für PHP-FPM';
8080
$wb['ipv6_address_txt'] = 'IPv6-Address';
8181
$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.';
82+
$wb["python_txt"] = 'Python';
8283
?>

interface/web/sites/lib/lang/en_web_domain.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ $wb["non_www_to_www_txt"] = 'Non-www -> www';
7979
$wb["www_to_non_www_txt"] = 'www -> non-www';
8080
$wb["php_fpm_use_socket_txt"] = 'Use Socket For PHP-FPM';
8181
$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.';
82+
$wb["python_txt"] = 'Python';
8283
?>

interface/web/sites/templates/web_domain_edit.htm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ <h2><tmpl_var name="list_head_txt"></h2>
8383
{tmpl_var name='ruby'}
8484
</div>
8585
</div>
86+
<div class="ctrlHolder apache">
87+
<p class="label">{tmpl_var name='python_txt'}</p>
88+
<div class="multiField">
89+
{tmpl_var name='python'}
90+
</div>
91+
</div>
8692
<div class="ctrlHolder apache">
8793
<p class="label">{tmpl_var name='suexec_txt'}</p>
8894
<div class="multiField">

server/conf/vhost.conf.master

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@
105105
</IfModule>
106106
</tmpl_if>
107107

108+
<tmpl_if name='python' op='==' value='y'>
109+
<IfModule mod_python.c>
110+
<Directory {tmpl_var name='web_document_root'}>
111+
AddHandler mod_python .py
112+
PythonHandler mod_python.publisher
113+
PythonDebug On
114+
</Directory>
115+
</IfModule>
116+
</tmpl_if>
117+
108118
<tmpl_if name='cgi' op='==' value='y'>
109119
# cgi enabled
110120
<Directory {tmpl_var name='document_root'}/cgi-bin>

0 commit comments

Comments
 (0)