CentOS7.5
Apache2.4.6
NetCommons3.1.10
Let's EncryptでSSL証明書をとっています。
DOcumentRootは/var/www/html
で、サブディレクトリでNEtCommonsとNextCloudを立ててます。
NextCLoudの方は問題なく、SSLで接続されるのですが、
NEtCommonsではSSLで接続しようとすると、真っ白な画面になってしまいます。
.htaccess <IfModule mod_rewrite.c> RewriteEngine on RewriteBase /b18/ RewriteRule ^$ /var/www/html/b18/app/webroot/ [L] RewriteRule (.*) /var/www/html/b18/app/webroot/$1 [L] RewriteCond %{HTTPS} off RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI}/$1 [R=301,L] </IfModule>
としていますが、うまくいきません。
ssl.conf
Listen 443 https SSLSessionCache shmcb:/run/httpd/sslcache(512000) SSLSessionCacheTimeout 300 SSLRandomSeed startup file:/dev/urandom 256 SSLRandomSeed connect builtin SSLCryptoDevice builtin <VirtualHost _default_:443> # General setup for the virtual host, inherited from global configuration DocumentRoot "/var/www/html" ServerName suzunet.info <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> ErrorLog logs/error_log CustomLog logs/access_log combined env=!no_log TransferLog logs/ssl_access_log LogLevel warn SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA SSLCertificateFile /etc/letsencrypt/live/suzunet.info/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/suzunet.info/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/suzunet.info/chain.pem <Files ~ ".(cgi|shtml|phtml|php3?)$"> SSLOptions +StdEnvVars </Files> <Directory "/var/www/cgi-bin"> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS SSLHonorCipherOrder on Header always set Strict-Transport-Security "max-age=15768000" </VirtualHost>
httpd-myconf.conf
<VirtualHost *:80> ServerName suzunet.info serverAlias mail.suzunet.info DirectoryIndex index.html index.php index.cgi #AddDefaultCharset UTF-8 DocumentRoot /var/www/html <Directory "/var/www/html"> AllowOverride All Options All AddHandler cgi-script .cgi .pl Options FollowSymLinks Require all granted </Directory> #TraceEnable off </VirtualHost>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。