Website cannot connect to main page of subdomain, while subfolders of the subdomain work,

Issues related to applications and software problems and general support
Post Reply
anne282
Posts: 11
Joined: 2020/09/24 16:44:49

Website cannot connect to main page of subdomain, while subfolders of the subdomain work,

Post by anne282 » 2020/12/09 18:37:40

I am using Cloudflare to serve my webpages on my server. I have recently tried to set the whole server, including subdomains, to ssl. i have done so by changing the index files to have https for all the images, and changing the rel canonical tag.

I changed cloudflare to serve an https site instead of an http site. This subdomain is not on the same server as the main site, and the main site works fine. However, when I visit the subdomain, I receive either a 521 error from cloudflare, or a blank white page.

The confusing part, however, is that the sub-pages of the subdomain (i.e. www.subdomain.com/gallery or/policies) work perfectly fine, on cloudflare, and with the ssl setting. I also have an ssl certificate specifically set for this subdomain, which the company showed me how to activate on the site. once it was activated properly, the subdomains worked fine, and some of the error messages I received stopped happening.

At this point, I am receiving the following error messages in the error_log file:

SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Dec 09 18:21:43.670589 2020] [suexec:notice] [pid 469515:tid 140636034169152] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Dec 09 18:21:43.692378 2020] [so:warn] [pid 469515:tid 140636034169152] AH01574: module rewrite_module is already loaded, skipping
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::f816:3eff:fe33:8489. Set the 'ServerName' directive globally to suppress this message
[Wed Dec 09 18:21:43.713969 2020] [lbmethod_heartbeat:notice] [pid 469515:tid 140636034169152] AH02282: No slotmem from mod_heartmonitor
[Wed Dec 09 18:21:43.719597 2020] [mpm_event:notice] [pid 469515:tid 140636034169152] AH00489: Apache/2.4.37 (centos) OpenSSL/1.1.1g configured -- resuming normal operations
[Wed Dec 09 18:21:43.719635 2020] [core:notice] [pid 469515:tid 140636034169152] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

before putting this subdomain onto an ssl certificate, the subdomain was working properly.

I am getting these two error messages in the ssl_error log:

[Wed Dec 09 17:12:42.550437 2020] [autoindex:error] [pid 458760:tid 139883637032704] [client 193.118.53.194:42372] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.phtml,index.phps,index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Dec 09 18:08:42.660901 2020] [ssl:warn] [pid 468724:tid 139957292460352] AH01909: fe80::f816:3eff:fe33:8489:443:0 server certificate does NOT include an ID which matches the server name


There is a directory index file, that is defined by the htaccess file. All of the subfolders on this subdomain are defined in the same way, with the following command: DirectoryIndex Kids-Spa-Party.php

I am unsure if this is being caused by the ssl certificate in some way, since the subfolders on the same server work perfectly fine, and have the same htaccess file, and the same ssl certificate.

If you can help, please let me know if there is somewhere I should look for the solution to this problem. All of the items on the server are at their up-to-date versions, including php and apache. Thank you!

Post Reply