Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jajik
Copy link
Member

@jajik jajik commented Oct 17, 2024

Previously, an app would get merged into an existing vhost only in case the first alias would be already in. So that VHost with alias test would be updated for command with Alias=test,demo but a new VHost would be created for Alias=demo,test.

This PR changes the behavior. Now we go through all provided aliases sequentially, and if one matches, the corresponding VHost gets updated. Otherwise a new one is created.

Resolves MODCLUSTER-824

@jfclere
Copy link
Member

jfclere commented Oct 24, 2024

I don't see how to trigger the problem adding a war in a running tomcat... But the fix makes sense.

@jajik jajik merged commit e12d802 into modcluster:main Oct 24, 2024
9 checks passed
@jajik jajik deleted the MODCLUSTER-824 branch October 24, 2024 14:53
@rhusar
Copy link
Member

rhusar commented Nov 5, 2024

I don't see how to trigger the problem adding a war in a running tomcat... But the fix makes sense.

IIUC it's fairly reare, but not impossible situation, no? Reconfigure the server to add a new alias, kill the server, start it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-1.3.x Changes that must be backported to 1.3.x branch enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants