No because I disabled the lines redirecting to https, since I want to be able to access the site without https.
I do not understand what are http response headers ? I have found this page : mod_headers - Apache HTTP Server Version 2.4 After reading it I should say I've never heard about and for instance I do not understand everything on how and what headers to set. But I will study that. For now the module is called into
/etc/httpd/conf.modules.d/00-base.conf:LoadModule headers_module modules/mod_headers.so
And might be not used, don't know. On the old vps I did not set any headers as well but it was working.
The index in httpd.conf include the process of .php files. Then into nuage (nextcloud), or polhypro (site with drupal) there are config.php files. Is this what you are talking about ?
As far as I know yes. I had stopped the Apache on other vps (no longer used and removed today). There is only one server linked to this IP address, and only one instance of httpd on that server with only these files to configure it. So... what can I say ? These files where the ones used on the other vps that I copied on that one (adapting the IP of course). The old vps was working both http and htpps (OS : centos).
This I can explain : as I said, the server was working for http. Not https. Then, I had changed the files, for example commented the redirections to https in virtualhost *:80. Then I tried to parse the config files but it doesn't, refusing to parse the new config files because of the error about "liles does not exeist or empty". Then there is a discrepancy between the config of the server and the config files I show you regarding virtualhost. Only http.conf, ssl.conf and ports.conf are the same. Hope to be clear...?
.... writing this I thought I could restart, may be the server, even if the apachectl configtest gives an error. So I just did it and httpd restarted.... so it can parse config files even if there is errors in it ? Anyway the curl -i gives the same. But what's wrong ? The redirect from
http://nuage.dennet.eu -> Location: http://www.nuage.dennet.eu/index.php/login
? I guess it is something into the nextcloud files ...?
May be you can also try this :
curl -i https://www.polhypro.dennet.eu
curl: (60) SSL: no alternative certificate subject name matches target host name 'www.polhypro.dennet.eu'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Without https, say curl -i http://www.polhypro.dennet.eu you get the right page.