Any help would be awesome!!
httpd.conf:
Code: Select all
ServerRoot "/opt/rh/httpd24/root/etc/httpd"
Listen 80
#Listen 443
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
DocumentRoot "/opt/rh/httpd24/root/var/www/html"
<Directory "/opt/rh/httpd24/root/var/www">
Options +SymLinksIfOwnerMatch
AllowOverride all
# Allow open access:
Require all granted
</Directory>
# Further relax access to the default document root:
<Directory "/opt/rh/httpd24/root/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
Options +SymLinksIfOwnerMatch
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
Require all granted
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm home.html home.htm
<Files ".ht*">
Require all denied
</Files>
</IfModule>
</Directory>
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog "logs/access_log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/opt/rh/httpd24/root/var/www/cgi-bin/"
</IfModule>
<Directory "/opt/rh/httpd24/root/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
AddDefaultCharset UTF-8
<IfModule mime_magic_module>
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
Code: Select all
<Directory /usr/share/www>
AllowOverride All
Options FollowSymLinks
Require all granted
Order deny,allow
Allow from all
<IfVersion < 2.4>
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
# rewrite for backward compability of public links
RedirectMatch "^/pydio_public/(.*)" "/pydio/public/$1"
</Directory>
<VirtualHost files.bencor.info:80>
DocumentRoot "/usr/share/www"
ServerName test.bencor.info
</VirtualHost>
<VirtualHost files.bencor.info:443>
ServerName files.bencor.info
ServerAdmin massimo.mucci@bencorinc.com
####### HOME PAGE: PYDIO #######
# SSLEngine on
SSLCertificateFile /etc/pki/tls/files_bencor_info.crt
SSLCertificateKeyFile /etc/pki/tls/files_bencor_info.key
SSLCertificateChainFile /etc/pki/tls/files_bencor_info.ca-bundle
DocumentRoot /usr/share/www
ErrorLog logs/rd_error_log
TransferLog logs/rd_access_log
</VirtualHost>
[Wed Oct 18 15:23:48.663773 2017] [ssl:emerg] [pid 22528] AH02572: Failed to configure at least one certificate and key for files.bencor.info:443
[Wed Oct 18 15:23:48.663870 2017] [ssl:emerg] [pid 22528] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
Sorry for the long post, I know the config is a bit messy. I'm not sure if I've missed something small or not..