Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
27632463
Commit
27632463
authored
Dec 15, 2011
by
tbrehm
Browse files
Fixed: FS#1931 - Domain Rename Causes Vhost error
parent
cd9d3801
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
27632463
...
...
@@ -1051,6 +1051,11 @@ class apache2_plugin {
unlink
(
$vhost_symlink
);
$app
->
log
(
'Removing symlink: '
.
$vhost_symlink
.
'->'
.
$vhost_file
,
LOGLEVEL_DEBUG
);
}
$vhost_symlink
=
escapeshellcmd
(
$web_config
[
'vhost_conf_enabled_dir'
]
.
'/'
.
$data
[
'old'
][
'domain'
]
.
'.vhost'
);
if
(
is_link
(
$vhost_symlink
))
{
unlink
(
$vhost_symlink
);
$app
->
log
(
'Removing symlink: '
.
$vhost_symlink
.
'->'
.
$vhost_file
,
LOGLEVEL_DEBUG
);
}
$vhost_file
=
escapeshellcmd
(
$web_config
[
'vhost_conf_dir'
]
.
'/'
.
$data
[
'old'
][
'domain'
]
.
'.vhost'
);
unlink
(
$vhost_file
);
$app
->
log
(
'Removing file: '
.
$vhost_file
,
LOGLEVEL_DEBUG
);
...
...
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