• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Tomacat and domain bindings

Manuel Righi

New Pleskian
Hello,
I have Plesk Panel 12.5.30, Update #65.
I have added new website to my panel, for deploy a Java application.
For example domain are mydomain.com. with www and whitout www hosting responding correctly.
I see that tomcat server respond only from mydomain.com (without www).
I have added "Alias" section on /var/lib/tomcat7/conf/server.xml for www.mydomain.com and now tomcat server respond for www.

It's a bug the binding only the domain whitout www ?
It's possible to manage this binding from plesk panel gui ?

Thanks
Manuel
 
Yes, it is bug PPP-27070. The fix is scheduled to one of next Plesk updates.

POSSIBLE TEMPORARY WORKAROUND:

1. Use the following:

# plesk bin domain_pref -u first.tld -www false
# plesk bin domain_pref -u first.tld -www true

2. Or manually add host into /usr/share/tomcat/conf/server.xml

Code:
<Host deployXML="true" name="www.example.com" appBase="psa-webapps/example.com" unpackWARs="false" autoDeploy="true" liveDeploy="true">
<Realm className="org.apache.catalina.realm.MemoryRealm
 
Hello IgorG,
thanks ... do you have a date when the fix will be released?
Because every update breaks my changes on server.xml

:|

Thanks
Manuel
 
Back
Top