Hello, Thanks. By adding gibberish inside the IfModule section I found out that it was not working. I then commented the IfModule stuff out so the code loads unconditionally. Now I'm getting a 500 internal server error. If anyone has automx going with apache please let me know. The error seems to be starting because apache can't find in my case /usr/local/share/automx/mail/config-1.1.xml which I'm under the impression automx_wsgi.py will be making that. Any suggestions welcome. Thanks. Dave. On 3/30/18, Eric Covener <covener@xxxxxxxxx> wrote: > It seems like if mod_uwsgi was not loaded or that <IfModule> was > otherwise in error, your document root would reject all access because > all of the "require all granted" are wrapped in the IfModule. > > I suggest verifying that the module is loaded and your specific syntax > for the IfModule works as expected (by adding gibberish inside the > ifmodule section and running apachectl -t) > > On Fri, Mar 30, 2018 at 5:06 PM, David Mehler <dave.mehler@xxxxxxxxx> > wrote: >> Hi, >> >> Has anyone checked out my last message? I was wondering if anything >> stood out with this config? >> >> Thanks. >> Dave. >> >> >> On 3/30/18, David Mehler <dave.mehler@xxxxxxxxx> wrote: >>> Hello, >>> >>> Sorry been going between three projects and must have been hitting the >>> enter key to fast. Here's the configuration. >>> >>> Thanks. >>> Dave. >>> >>> #cat provisioning.example.com.conf >>> # The autoconfig.example.com and autodiscover.example.com http virtual >>> host >>> <VirtualHost *:80> >>> ServerName autoconfig.example.com >>> #ServerAlias autodiscover.example.com >>> ServerAdmin webmaster@xxxxxxxxxxx >>> DocumentRoot "/usr/local/share/automx" >>> LogLevel warn >>> ErrorLog /var/log/provisioning-error.log >>> CustomLog /var/log/provisioning-access.log combined >>> >>> # share well-known for renewal via Let's Encrypt! >>> Alias "/.well-known/acme-challenge" >>> "/usr/local/www/.well-known/acme-challenge" >>> >>> <IfModule mod_rewrite.c> >>> RewriteEngine On >>> RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.* >>> RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301] >>> </IfModule> >>> >>> <IfModule mod_wsgi.c> >>> Alias /automx "/usr/local/share/automx/" >>> WSGIChunkedRequest On >>> WSGIScriptAliasMatch \ >>> (?i)^/.+/(autodiscover|config-v1.1).xml \ >>> /usr/local/share/automx/automx_wsgi.py >>> >>> #WSGIScriptAlias /mail/config-v1.1.xml >>> /usr/local/share/automx/automx_wsgi.py >>> #WSGIScriptAlias /usr/local/share/automx/automx_wsgi.py >>> <Directory "/usr/local/share/automx"> >>> Options Indexes MultiViews >>> AllowOverride None >>> Require all granted >>> </Directory> >>> >>> <Directory "/usr/local/share/automx/autodiscover"> >>> Options FollowSymLinks >>> AllowOverride None >>> Require all granted >>> </Directory> >>> >>> <Directory "/usr/local/share/automx/mobileconfig"> >>> Options FollowSymLinks >>> AllowOverride None >>> Require all granted >>> </Directory> >>> >>> <Directory "/usr/local/share/automx/mail"> >>> Options FollowSymLinks >>> AllowOverride None >>> Require all granted >>> </Directory> >>> </IfModule> >>> </VirtualHost> >>> >>> # SSL example for autodiscover >>> <VirtualHost *:443> >>> ServerName autodiscover.example.com >>> ServerAlias autoconfig.example.com >>> ServerAdmin webmaster@xxxxxxxxxxx >>> DocumentRoot "/usr/local/share/automx" >>> LogLevel warn >>> ErrorLog /var/log/provisioning-error.log >>> CustomLog /var/log/provisioning-access.log combined >>> >>> # Uncomment the next 2 lines when deploy http2 >>> #H2Direct on >>> #Protocols h2 h2c http/1.1 >>> SSLEngine on >>> SSLCertificateFile "/usr/local/etc/ssl/acme/example.com/fullchain.pem" >>> SSLCertificateKeyFile >>> "/usr/local/etc/ssl/acme/private/example.com/privkey.pem" >>> # HSTS (mod_headers is required) (15768000 seconds = 6 months) >>> #Header always set Strict-Transport-Security "max-age=15768000" >>> >>> <IfModule mod_wsgi.c> >>> Alias /automx "/usr/share/automx/" >>> WSGIChunkedRequest On >>> WSGIScriptAliasMatch \ >>> (?i)^/.+/(autodiscover|config-v1.1).xml \ >>> /usr/local/share/automx/automx_wsgi.py >>> WSGIScriptAlias \ >>> /mobileconfig \ >>> /usr/local/share/automx/automx_wsgi.py >>> >>> #WSGIScriptAlias /Autodiscover/Autodiscover.xml >>> /usr/local/share/automx/automx_wsgi.py >>> #WSGIScriptAlias /usr/local/share/automx/automx_wsgi.py >>> >>> <Directory "/usr/local/share/automx"> >>> Options Indexes MultiViews >>> AllowOverride None >>> Require all granted >>> </Directory> >>> >>> <Directory "/usr/local/share/automx/autodiscover"> >>> Options FollowSymLinks >>> AllowOverride None >>> Require all granted >>> </Directory> >>> >>> <Directory "/usr/local/share/automx/mobileconfig"> >>> Options FollowSymLinks >>> AllowOverride None >>> Require all granted >>> </Directory> >>> >>> <Directory "/usr/local/share/automx/mail"> >>> Options FollowSymLinks >>> AllowOverride None >>> Require all granted >>> </Directory> >>> </IfModule> >>> </VirtualHost> >>> >>> >>> On 3/30/18, Eric Covener <covener@xxxxxxxxx> wrote: >>>>> Can anyone spot any obvious errors with the below apache >>>>> configuration? >>>> >>>> You didn't include any apache configuration in your mail. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >>>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >>>> >>>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> > > > > -- > Eric Covener > covener@xxxxxxxxx > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx