"Create Alias redirect" always creates an URL redirect

In the VMin function Server Configuration / Website Redirects, when I try to add a new redirect of destination type "Directory on this system", it creates an "URL at other website" instead. In the Apache config file, a Redirect directive is used there instead of Alias.

Existing redirects are parsed and edited correctly (as long as I don't change the destination). The issue only occurs when creating a new redirect.

Status: 
Closed (fixed)

Comments

You're right, that is a rather embarassing bug - it will be fixed in Virtualmin 3.82.

Very good! This one wasn't so problematic, since you can easily work around it when you know it - still a little cumbersome. :)

A question: When you set an issue to "fixed" here, does that mean you already implemented the fix, or that you like moved the issue to a personal to do list or so?

"FIxed" means that I have implemented the fix already, and that it will be included in the next Virtualmin release..

Great, thanks! Seems Eric was right with calling you a "bug fixing machine". ;)

A small addition to this that just came to mind: If I create an Alias to a directory that is outside of public_html, this function should, at least I guess it is intended to, automatically create a <directory ...> entry in Apache config, bearing per-directory options to allow access to the Alias target, am I correct? If so, does the function already do that? (Due to the "always-redirect" bug I could not really test that.) Or is the user supposed to create the per-directory options manually afterwards?

Currently you would need to manually add any Apache block for the location outside of /home , if needed. In general I wouldn't recommend creating aliases like that ..

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

Even though this is closed, I have a little additional remark:

First, the bugfix in 3.82 worked perfectly. :) Then, about my question in reply #5: I found out that actually it's not needed to create a Directory block for Apache, at least not to allow access, cause in Vmin Apache is configured - at least if I'm not mistaken - to generally allow access to the whole filesystem (limited by permissions and configuration of course), as opposed to the default configuration where "/" is generally forbidden.