Hi,
Here's my diff output, you can use it to create a patch. This appears to work for me with the following port redirection problems I've encountered in the past :
Wordpress Admin
Joomla Admin
Webtrees All Links
Modx Admin
Code:
CT-9999-bash-4.1# diff -u custom/domain/domainVirtualHost.php default/domain/domainVirtualHost.php
--- custom/domain/domainVirtualHost.php 2012-07-03 15:12:09.000000000 +0100
+++ default/domain/domainVirtualHost.php 2012-05-03 09:05:07.000000000 +0100
@@ -3,7 +3,7 @@
<?php endif; ?>
<VirtualHost <?php echo $OPT['ipAddress']->escapedAddress ?>:<?php echo $OPT['ssl'] ? $VAR->server->webserver->httpsPort : $VAR->server->webserver->httpPort ?> <?php echo ($VAR->server->webserver->proxyActive) ? "127.0.0.1:" . ($OPT['ssl'] ? $VAR->server->webserver->httpsPort : $VAR->server->webserver->httpPort) : ''; ?>>
- ServerName "<?php echo $VAR->domain->asciiName ?>"
+ ServerName "<?php echo $VAR->domain->asciiName ?>:<?php echo $OPT['ssl'] ? $VAR->server->webserver->httpsPort : $VAR->server->webserver->httpPort ?>"
<?php if ($VAR->domain->isWildcard): ?>
ServerAlias "<?php echo $VAR->domain->wildcardName ?>"
<?php else: ?>
@@ -129,8 +129,6 @@
<Directory <?php echo $OPT['ssl'] ? $VAR->domain->physicalHosting->httpsDir : $VAR->domain->physicalHosting->httpDir ?>>
- <?php if ($VAR->server->webserver->proxyActive) echo "UseCanonicalName On\nUseCanonicalPhysicalPort Off\n"; ?>
-
<?php
if ($VAR->domain->physicalHosting->perl) {
echo $VAR->includeTemplate('service/mod_perl.php');
@@ -148,7 +146,7 @@
'enabled' => $VAR->domain->physicalHosting->php,
'safe_mode' => $VAR->domain->physicalHosting->phpSafeMode,
'dir' => $OPT['ssl'] ? $VAR->domain->physicalHosting->httpsDir : $VAR->domain->physicalHosting->httpDir,
- 'settings' => $VAR->domain->physicalHosting->phpSettings
+ 'settings' => $VAR->domain->physicalHosting->phpSettings,
));
}
If you copy/paste all but the first line into a file then you have yourself a patch file :
mkdir -p /usr/local/psa/admin/conf/templates/custom/domain
cp /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php
patch /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php < your_patch.patch
/usr/local/psa/admin/bin/httpdmng --reconfigure-all