I have a server with multiple websites but all use the same (external) SMTP server.
The problem that i was having was that with every e-mail that i wanted too configure the software is going too ask for the SMTP server. So my with a little bit of googlen i wanted too use the autodiscover, mobileconfig and config-v1.1.xml on all of my domains too fix this problem.
I started too think about how can i make this easy and let it work on all of my domains without any copy-paste of code.
So my solution was trying with Alias but i can't get this working. Im hoping someone can help me getting this fixed or have a different solution.
What did do so far?
Ive made a /etc/httpd/conf.d/autodiscovery.conf with the follow contents;
Alias /Autodiscover/Autodiscover.xml /opt/autodiscover/autodiscover.php
Alias /email.mobileconfig /opt/autodiscover/mobileconfig.php
Alias /mail/config-v1.1.xml /opt/autodiscover/mail-config.php
#Alias /Autodiscover /opt/autodiscover
<Directory /opt/autodiscover>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/hidden.com/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
Options -Includes -ExecCGI
Require all granted
</Directory>
But trying too acccess this page i get the follow error: No input file specified.
How can help me put on the right track?
I used the follow github pages;
https://github.com/Incruises/autodiscover.xml https://github.com/smartlyway/email-autoconfig-php
Resolved
After ive found where the logs was stored i found the solution. The directory had not enough rights for the "hidden.com". So it was not suppose too be inside /opt but inside the directory of the domain itself.
/var/www/vhosts/hidden.com/config/