Want to be able to change webmail.domain.com to domain.com/webmail
same problem as this thread:
https://talk.plesk.com/threads/webmail-question.326784/#post-780422
[Thread poster had errors and the thread went dead, I'm getting the same errors, have included all details below]
the thread is based on this instruction:
http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=68693.htm
Details:
Plesk 12.5.30
OS Ubuntu 14.04.4 LTS
# apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Commands and Results:
cp /usr/local/psa/admin/conf/templates/default/nginxDomainWebmail.php /usr/local/psa/admin/conf/templates/custom/
cp /usr/local/psa/admin/conf/templates/default/domainWebmail.php /usr/local/psa/admin/conf/templates/custom/
nano /usr/local/psa/admin/conf/templates/custom/nginxDomainWebmail.php
FROM:
ServerAlias "webmail.<? Php echo $ VAR> domain-> asciiName?>"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "webmail.<? Php echo $ alias-> asciiName?>"
<? php endforeach; ?>
TO:
ServerAlias "<? Php echo $ VAR> domain-> asciiName?>/webmail"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "<? Php echo $ alias-> asciiName?>/webmail"
<? php endforeach; ?>
NOTE: No copy and paste into nano, only using home, end, arrow keys, delete
php -l /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
No syntax errors detected in /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
nano /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
FROM:
ServerAlias "webmail.<? Php echo $ VAR> domain-> asciiName?>"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "webmail.<? Php echo $ alias-> asciiName?>"
<? php endforeach; ?>
TO:
ServerAlias "<? Php echo $ VAR> domain-> asciiName?>/webmail"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "<? Php echo $ alias-> asciiName?>/webmail"
<? php endforeach; ?>
NOTE: No copy and paste into nano, only using home, end, arrow keys, delete
php -l /usr/local/psa/admin/conf/templates/custom/nginxDomainWebmail.php
No syntax errors detected in /usr/local/psa/admin/conf/templates/custom/nginxDomainWebmail.php
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
service apache2 restart
service nginx restart
Error on each domain:
nginx: [warn] server name "DOMAIN.TLD/webmail" has suspicious symbols in /etc/nginx/plesk.conf.d/webmails/DOMAIN.TLD_webmail.conf:6
As a test I removed the / from both files, reconfigured, restarted and the nginx error went away so nginx really doesn't seem to like the backslash.
What am I missing?
Thanks in advance.
same problem as this thread:
https://talk.plesk.com/threads/webmail-question.326784/#post-780422
[Thread poster had errors and the thread went dead, I'm getting the same errors, have included all details below]
the thread is based on this instruction:
http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=68693.htm
Details:
Plesk 12.5.30
OS Ubuntu 14.04.4 LTS
# apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Commands and Results:
cp /usr/local/psa/admin/conf/templates/default/nginxDomainWebmail.php /usr/local/psa/admin/conf/templates/custom/
cp /usr/local/psa/admin/conf/templates/default/domainWebmail.php /usr/local/psa/admin/conf/templates/custom/
nano /usr/local/psa/admin/conf/templates/custom/nginxDomainWebmail.php
FROM:
ServerAlias "webmail.<? Php echo $ VAR> domain-> asciiName?>"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "webmail.<? Php echo $ alias-> asciiName?>"
<? php endforeach; ?>
TO:
ServerAlias "<? Php echo $ VAR> domain-> asciiName?>/webmail"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "<? Php echo $ alias-> asciiName?>/webmail"
<? php endforeach; ?>
NOTE: No copy and paste into nano, only using home, end, arrow keys, delete
php -l /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
No syntax errors detected in /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
nano /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
FROM:
ServerAlias "webmail.<? Php echo $ VAR> domain-> asciiName?>"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "webmail.<? Php echo $ alias-> asciiName?>"
<? php endforeach; ?>
TO:
ServerAlias "<? Php echo $ VAR> domain-> asciiName?>/webmail"
<? php foreach ($ VAR> domain-> mailAliases AS $ alias):>
ServerAlias "<? Php echo $ alias-> asciiName?>/webmail"
<? php endforeach; ?>
NOTE: No copy and paste into nano, only using home, end, arrow keys, delete
php -l /usr/local/psa/admin/conf/templates/custom/nginxDomainWebmail.php
No syntax errors detected in /usr/local/psa/admin/conf/templates/custom/nginxDomainWebmail.php
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
service apache2 restart
service nginx restart
Error on each domain:
nginx: [warn] server name "DOMAIN.TLD/webmail" has suspicious symbols in /etc/nginx/plesk.conf.d/webmails/DOMAIN.TLD_webmail.conf:6
As a test I removed the / from both files, reconfigured, restarted and the nginx error went away so nginx really doesn't seem to like the backslash.
What am I missing?
Thanks in advance.