Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
298ef538
Commit
298ef538
authored
Sep 26, 2011
by
Falko Timme
Browse files
- Added Python support (for Apache).
parent
0ee22c71
Changes
7
Hide whitespace changes
Inline
Side-by-side
install/sql/incremental/upd_0024.sql
0 → 100644
View file @
298ef538
ALTER
TABLE
`web_domain`
ADD
`python`
ENUM
(
'n'
,
'y'
)
NOT
NULL
DEFAULT
'n'
AFTER
`ruby`
;
\ No newline at end of file
install/sql/ispconfig3.sql
View file @
298ef538
...
...
@@ -1492,6 +1492,7 @@ CREATE TABLE `web_domain` (
`subdomain`
enum
(
'none'
,
'www'
,
'*'
)
NOT
NULL
default
'none'
,
`php`
varchar
(
32
)
NOT
NULL
default
'y'
,
`ruby`
enum
(
'n'
,
'y'
)
NOT
NULL
default
'n'
,
`python`
enum
(
'n'
,
'y'
)
NOT
NULL
default
'n'
,
`redirect_type`
varchar
(
255
)
default
NULL
,
`redirect_path`
varchar
(
255
)
default
NULL
,
`seo_redirect`
varchar
(
255
)
default
NULL
,
...
...
interface/web/sites/form/web_domain.tform.php
View file @
298ef538
...
...
@@ -216,6 +216,12 @@ $form["tabs"]['domain'] = array (
'default'
=>
'n'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
'python'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
'default'
=>
'n'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
'active'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
...
...
interface/web/sites/lib/lang/de_web_domain.lng
View file @
298ef538
...
...
@@ -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
[
'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
[
"python_txt"
]
=
'Python'
;
?>
interface/web/sites/lib/lang/en_web_domain.lng
View file @
298ef538
...
...
@@ -79,4 +79,5 @@ $wb["non_www_to_www_txt"] = 'Non-www -> www';
$wb
[
"www_to_non_www_txt"
]
=
'www -> non-www'
;
$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
[
"python_txt"
]
=
'Python'
;
?>
\ No newline at end of file
interface/web/sites/templates/web_domain_edit.htm
View file @
298ef538
...
...
@@ -83,6 +83,12 @@
{tmpl_var name='ruby'}
</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"
>
<p
class=
"label"
>
{tmpl_var name='suexec_txt'}
</p>
<div
class=
"multiField"
>
...
...
server/conf/vhost.conf.master
View file @
298ef538
...
...
@@ -105,6 +105,16 @@
</IfModule>
</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'>
# cgi enabled
<Directory {tmpl_var name='document_root'}/cgi-bin>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment