Hello,
I tried to enable autodiscover/autoconfig feature for outlook/mozilla and other clients. But after enabling this feature in tweaks options, when i test to load f.e. http://autodiscover.mydomain.com/autodiscover/autodiscover.xml I get only HTTP400 with this error:
It's the same for http://autodiscover.domain.com or http://autoconfig.domain.com
I'm using the newest cPanel 11.36.0.6
Proxies, redirects and everything works. When I open directly http://ip/cgi-sys/autoconfig.cgi it serves XML with right configuration for mail client.
http://ip/cgi-sys/autodiscover.cgi will redirect to https://cpanelemaildiscovery.cpanel.net/autodiscover/autodiscover.xml but I think this is just because it's called directly.
So the problem is somewhere between apache redirects/proxy.
Thanks for any suggestions.
I tried to enable autodiscover/autoconfig feature for outlook/mozilla and other clients. But after enabling this feature in tweaks options, when i test to load f.e. http://autodiscover.mydomain.com/autodiscover/autodiscover.xml I get only HTTP400 with this error:
Code:
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
X-Forwarded-Host
/n
I'm using the newest cPanel 11.36.0.6
Proxies, redirects and everything works. When I open directly http://ip/cgi-sys/autoconfig.cgi it serves XML with right configuration for mail client.
http://ip/cgi-sys/autodiscover.cgi will redirect to https://cpanelemaildiscovery.cpanel.net/autodiscover/autodiscover.xml but I think this is just because it's called directly.
So the problem is somewhere between apache redirects/proxy.
Code:
RewriteCond %{HTTP_HOST} ^autodiscover\.
RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P]
RewriteCond %{HTTP_HOST} ^autoconfig\.
RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P]