Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
ISPConfig
ISPConfig 3
Commits
d5be8964
Commit
d5be8964
authored
Aug 18, 2008
by
tbrehm
Browse files
Fixed a bug were index.html gets overwriten when a subdomain is added.
parent
4d4495c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
d5be8964
...
...
@@ -284,7 +284,7 @@ class apache2_plugin {
}
if
(
$this
->
action
==
'insert'
)
{
if
(
$this
->
action
==
'insert'
&&
$data
[
"new"
][
"type"
]
==
'vhost'
)
{
// Copy the error pages
$error_page_path
=
escapeshellcmd
(
$data
[
"new"
][
"document_root"
])
.
"/web/error/"
;
exec
(
"cp /usr/local/ispconfig/server/conf/error/"
.
substr
(
escapeshellcmd
(
$conf
[
"language"
]),
0
,
2
)
.
"/* "
.
$error_page_path
);
...
...
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