tried your conf file :
[root@mail httpd]# journalctl -xe
--
-- Unit httpd.service has begun shutting down.
Nov 30 07:41:22 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 30 07:41:22 mail.davomail.com httpd[17420]: AH00526: Syntax error on line 1
of /etc/httpd/conf/squirrelmail.conf:
Nov 30 07:41:22 mail.davomail.com httpd[17420]: Invalid command
'<squirrelmail.conf', perhaps misspelled or defined by a module not included in
the server configuration
Nov 30 07:41:22 mail.davomail.com systemd[1]: httpd.service: main process
exited, code=exited, status=1/FAILURE
Nov 30 07:41:22 mail.davomail.com kill[17422]: kill: cannot find process ""
Nov 30 07:41:22 mail.davomail.com systemd[1]: httpd.service: control process
exited, code=exited status=1
Nov 30 07:41:22 mail.davomail.com systemd[1]: Failed to start The Apache HTTP
Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 30 07:41:22 mail.davomail.com systemd[1]: Unit httpd.service entered failed
state.
Nov 30 07:41:22 mail.davomail.com systemd[1]: httpd.service failed.
[root@mail httpd]# nano +8 /etc/httpd/conf/squirrelmail.conf
[root@mail httpd]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@mail httpd]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset:
disabled)
Active: active (running) since Wed 2016-11-30 07:42:20 UTC; 17s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 17422 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
status=1/FAILURE)
Main PID: 17445 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─17445 /usr/sbin/httpd -DFOREGROUND
├─17446 /usr/sbin/httpd -DFOREGROUND
├─17447 /usr/sbin/httpd -DFOREGROUND
├─17448 /usr/sbin/httpd -DFOREGROUND
├─17449 /usr/sbin/httpd -DFOREGROUND
└─17450 /usr/sbin/httpd -DFOREGROUND
Nov 30 07:42:20 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
Nov 30 07:42:20 mail.davomail.com systemd[1]: Started The Apache HTTP Server.
[root@mail httpd]# journalctl -xe
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 30 07:41:22 mail.davomail.com systemd[1]: Unit httpd.service entered failed
state.
Nov 30 07:41:22 mail.davomail.com systemd[1]: httpd.service failed.
Nov 30 07:41:22 mail.davomail.com polkitd[2662]: Unregistered Authentication
Agent for unix-process:17400:2483501 (system bus name :1.282, object path
/org/freedesktop/PolicyKit1/
Nov 30 07:42:20 mail.davomail.com polkitd[2662]: Registered Authentication
Agent for unix-process:17430:2489410 (system bus name :1.283
[/usr/bin/pkttyagent --notify-fd 5 --fallba
Nov 30 07:42:20 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 30 07:42:20 mail.davomail.com systemd[1]: Started The Apache HTTP Server.
-- Subject: Unit httpd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished starting up.
--
-- The start-up result is done.
Nov 30 07:42:20 mail.davomail.com polkitd[2662]: Unregistered Authentication
Agent for unix-process:17430:2489410 (system bus name :1.283, object path
/org/freedesktop/PolicyKit1/
lines 1992-2014/2014 (END)
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 30 07:41:22 mail.davomail.com systemd[1]: Unit httpd.service entered failed
state.
Nov 30 07:41:22 mail.davomail.com systemd[1]: httpd.service failed.
Nov 30 07:41:22 mail.davomail.com polkitd[2662]: Unregistered Authentication
Agent for unix-process:17400:2483501 (system bus name :1.282, object path
/org/freedesktop/PolicyKit1
Nov 30 07:42:20 mail.davomail.com polkitd[2662]: Registered Authentication
Agent for unix-process:17430:2489410 (system bus name :1.283
[/usr/bin/pkttyagent --notify-fd 5 --fallb
Nov 30 07:42:20 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 30 07:42:20 mail.davomail.com systemd[1]: Started The Apache HTTP Server.
-- Subject: Unit httpd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished starting up.
--
-- The start-up result is done.
Nov 30 07:42:20 mail.davomail.com polkitd[2662]: Unregistered Authentication
Agent for unix-process:17430:2489410 (system bus name :1.283, object path
/org/freedesktop/PolicyKit1
lines 1992-2014/2014 (END)
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 30 07:41:22 mail.davomail.com systemd[1]: Unit httpd.service entered failed
state.
Nov 30 07:41:22 mail.davomail.com systemd[1]: httpd.service failed.
Nov 30 07:41:22 mail.davomail.com polkitd[2662]: Unregistered Authentication
Agent for unix-process:17400:2483501 (system bus name :1.282, object path
/org/freedesktop/Poli
Nov 30 07:42:20 mail.davomail.com polkitd[2662]: Registered Authentication
Agent for unix-process:17430:2489410 (system bus name :1.283
[/usr/bin/pkttyagent --notify-fd 5 -
Nov 30 07:42:20 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 30 07:42:20 mail.davomail.com systemd[1]: Started The Apache HTTP Server.
-- Subject: Unit httpd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished starting up.
--
-- The start-up result is done.
Nov 30 07:42:20 mail.davomail.com polkitd[2662]: Unregistered Authentication
Agent for unix-process:17430:2489410 (system bus name :1.283, object path
/org/freedesktop/Poli
lines 1992-2014/2014 (END)
On Nov 29, 2016, at 11:15 PM, Eric Broch <[email protected]> wrote:
Here's my squirrelmail.conf
<squirrelmail.conf>
#
# SquirrelMail is a webmail package written in PHP.
#
Alias /webmail /usr/share/squirrelmail
<Directory "/usr/share/squirrelmail/plugins/squirrelspell/modules">
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Deny from all
</IfModule>
</Directory>
# this section makes squirrelmail use https connections only, for this you
# need to have mod_ssl installed. If you want to use unsecure http
# connections, just remove this section:
<Directory /usr/share/squirrelmail>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny
Allow from all
</IfModule>
</Directory>
</squirrelmail.conf>
On 11/29/2016 9:49 PM, David Overman wrote:
At least httpd started, but resulted in a 404 error
https://mail.davomail.com/webmail
and https://davomail.com/webmail logs show named errors.
[root@mail httpd]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@mail httpd]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset:
disabled)
Active: active (running) since Wed 2016-11-30 04:36:13 UTC; 28s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 4993 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
status=1/FAILURE)
Main PID: 11361 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─11361 /usr/sbin/httpd -DFOREGROUND
├─11362 /usr/sbin/httpd -DFOREGROUND
├─11363 /usr/sbin/httpd -DFOREGROUND
├─11364 /usr/sbin/httpd -DFOREGROUND
├─11365 /usr/sbin/httpd -DFOREGROUND
└─11366 /usr/sbin/httpd -DFOREGROUND
Nov 30 04:36:13 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
Nov 30 04:36:13 mail.davomail.com systemd[1]: Started The Apache HTTP Server.
[root@mail httpd]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset:
disabled)
Active: active (running) since Wed 2016-11-30 04:36:13 UTC; 1min 55s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 4993 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
status=1/FAILURE)
Main PID: 11361 (httpd)
Status: "Total requests: 2; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─11361 /usr/sbin/httpd -DFOREGROUND
├─11362 /usr/sbin/httpd -DFOREGROUND
├─11363 /usr/sbin/httpd -DFOREGROUND
├─11364 /usr/sbin/httpd -DFOREGROUND
├─11365 /usr/sbin/httpd -DFOREGROUND
├─11366 /usr/sbin/httpd -DFOREGROUND
└─11380 /usr/sbin/httpd -DFOREGROUND
Nov 30 04:36:13 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
Nov 30 04:36:13 mail.davomail.com systemd[1]: Started The Apache HTTP Server.
[root@mail httpd]# nano +8 /etc/httpd/conf/squirrelmail.conf
[root@mail httpd]# cat ssl_request_log
[30/Nov/2016:04:39:49 +0000] 174.69.49.189 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /webmail HTTP/1.1" 205
[30/Nov/2016:04:39:50 +0000] 174.69.49.189 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET
/favicon.ico HTTP/1.1" 209
[30/Nov/2016:04:40:27 +0000] 174.69.49.189 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET
/webmail HTTP/1.1" 205
[30/Nov/2016:04:40:28 +0000] 174.69.49.189 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET
/favicon.ico HTTP/1.1" 209
[root@mail httpd]# journalctl -xe
Nov 30 04:38:45 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving 'dns1.vietel.com.vn/AAAA/IN': 203.113.131.2#53
Nov 30 04:38:45 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving 'dns2.vietel.com.vn/A/IN': 203.113.131.2#53
Nov 30 04:38:45 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving 'dns2.vietel.com.vn/AAAA/IN': 203.113.131.2#53
Nov 30 04:38:47 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving '130.214.105.116.in-addr.arpa/PTR/IN': 203.113.131.2#53
Nov 30 04:38:47 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving '130.214.105.116.in-addr.arpa/CNAME/IN': 203.113.131.2#53
Nov 30 04:38:47 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving 'dns1.vietel.com.vn/AAAA/IN': 203.113.131.2#53
Nov 30 04:38:47 mail.davomail.com named[4977]: error (unexpected RCODE REFUSED)
resolving 'dns2.vietel.com.vn/AAAA/IN': 203.113.131.2#53
Nov 30 04:38:56 mail.davomail.com spamdyke[11395]: DENIED_RDNS_MISSING from:
[email protected] to: [email protected] origin_ip:
116.105.214.130 origin_rdns: (u
Nov 30 04:40:01 mail.davomail.com systemd[1]: Started Session 55 of user root
On Nov 29, 2016, at 08:32 PM, Eric Broch <[email protected]> wrote:
Change
ErrorDocument 403 "https://mail.davomail.com/webmail/";
To
ErrorDocument 403 https://mail.davomail.com/webmail/
On 11/29/2016 6:34 PM, David Overman wrote:
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*/webmail*)$ https://%{SERVER_NAME}$1 [L,R]
allow from all
Options
SSLRequireSSL
ErrorDocument 403 "https://mail.davomail.com/webmail/";
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]