Autodiscover setting breaking outlook autodisover for domains setup to remote exchange server

joako

Well-Known Member
Aug 7, 2003
112
2
168
cPanel Access Level
DataCenter Provider
The workaround that works well for me is to create a custom httpd.conf that redirects the autodiscover request to the correct server, the issue with Office 365 would be what is the correct server and will that server ever change?

in:
/usr/local/apache/conf/userdata/ssl/2_4/username/domain.com/autodiscover.conf
and
/usr/local/apache/conf/userdata/std/2_4/username/domain.com/autodiscover.conf

put:

Redirect permanent /Autodiscover/Autodiscover.xml https://exchange.domain.com/Autodiscover/Autodiscover.xml
Redirect permanent /autodiscover/autodiscover.xml https://exchange.domain.com/autodiscover/autodiscover.xml

Then there's a command to re-create the httpd.conf, sorry I don't recall it off the top of my head.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Then there's a command to re-create the httpd.conf, sorry I don't recall it off the top of my head.
The command you are referring to is:

Code:
/scripts/rebuildhttpdconf
Thank you.