Submitted by wrightsonm on Sun, 10/20/2013 - 11:28
When the Mail Client Configuration is enabled it adds a line into each virtualhost file however when apache is restarted an error appears:
apachectl graceful apachectl: Configuration syntax error, will not run "graceful": Syntax error on line 39 of /etc/httpd/vhost/domain.com.conf: Redirect to non-URL
The line that has the error is:
Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
The line should be:
Redirect /mail/config-v1.1.xml http://domain.com/cgi-bin/autoconfig.cgi
Please could you look into making a permanent correction to this? I have manually corrected each virtualhost instance.
There is also a possibility that the Mail Client Configuration doesn't reload the apache config on completion. I had to do it manually.
Thanks
Mark
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sun, 10/20/2013 - 12:47 Comment #1
That's odd, as this syntax works fine on my system - which Apache version are you running there?
Submitted by wrightsonm on Sun, 10/20/2013 - 13:13 Comment #2
httpd -v Server version: Apache/2.2.3
Regards
Mark
Submitted by JamieCameron on Sun, 10/20/2013 - 13:49 Comment #3
Ok, that explains it .. it looks like Apache only added support for domain-less redirects recently. I will fix Virtualmin in the 4.04 release to include the http://domain in the Redirect line.
Submitted by wrightsonm on Sun, 10/20/2013 - 17:17 Comment #4
That's great. Thank you.
One small query though, when I setup this server I didn't use the virtualmin install.sh. The apache build I am running is a custom compile as I needed to make suexec work from /home instead of /var/www. Now, as I understand, virtualmin maintains a suitable apache build. If I wanted to install the virtualmin maintained apache build, where could I find it?
Thanks
Mark
Submitted by JamieCameron on Sun, 10/20/2013 - 17:37 Comment #5
We maintain our own build for CentOS , which is in a password-protected YUM repo that is setup when you install with install.sh . You could in theory upgrade to it, as long as your current Apache install is from an RPM.
Submitted by glimmung on Tue, 10/22/2013 - 03:48 Pro Licensee Comment #6
Hi Jamie,
Just a quick note to I'm having the same issue on a vanilla setup of Ubuntu 12.04 with Apache 2.2.22, under Virtualmin 4.0.3 Pro, so presumably others will too. I'm mentioning because it has popped up slightly differently in my case - if I go to save the aliases and redirects, I get: -
"Failed to save Aliases and Redirects : '/cgi-bin/autoconfig.cgi' is not a valid URL redirect destination"
...but if I do "sudo apache2ctl graceful" there is no error thrown. I've no idea if this difference is significant, but thought I should report it in case it helps.
I'm looking forward to 4.0.4, although the number of domains using mail at the mo' is so low that it's easy to work around by hand now that I've found this thread.
--
Cheers,
PhilK
Submitted by JamieCameron on Tue, 10/22/2013 - 13:34 Comment #7
Hi Phil,
Thanks for pointing this out - since relative URL paths are valid for redirects, I will allow this in the 4.04 release.
Submitted by Issues on Tue, 11/05/2013 - 15:41 Comment #8
Automatically closed -- issue fixed for 2 weeks with no activity.