Multiple aliases same destination only first listed.

I found a bug with the 'Website Redirects' area under a Virtual Server.

If multiple aliases are made with the same destination only the first is listed.

Eg: I if you have '/something' mapped to '/home/server/public_html' then make a second Alias as '/something2' also mapped to '/home/server/public_html' both are created but only '/something' alias is shown under 'Website Redirects'

Under 'Services/Configure Website/Alias and Redirects' in the 'Document directory aliases' section at the top all aliases are shown, likewise for URL aliases also.

Included is a screenshot showing because I created '/wordpress' to '/home/user/public_html' for testing when I moved the wordpress folder to another directory and set the index as the homepage, as DAV is also mapped there wordpress wasn't shown but when I added a trailing / to make the destination different it was shown. All were however shown in the Virtualmin / Apache 'Configure Website' area.

I also tried it with 2 test aliases using the trailing / and only the first was shown.

I also tried it mapping 2 aliases '/test', '/test2' to the same url 'http://virtualmin.com' and as mentioned only the first alias pointing to the url was shown. and all were shown under 'Configure Website'

Included is a basic initial screenshot I took of the issue without adding a bunch of duplicated tests.

Status: 
Closed (fixed)

Comments

That sounds like a bug - were both aliases created using Virtualmin?

Yes all tests on URL or directory redirect mapping were made using the Website Redirects area. I try to keep everything done together under virtualmin.

Removing them from the apache alias area also syncs to Website Redirects area, removing them. As you know this is also done under the virtualmin vhost as under apache in the webmin tab changes to virtualmin vhosts are disabled as default.

As you know I clean installed all this and changed distro a few weeks back while initially testing and setting everything up and since configured a few odd things like those ipv6 log messages and canonical mapping for postfix and overall the setup is now working really great for me.

Ok, I see the bug that causes this now - it will be fixed in the 4.10 Virtualmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.