Dear all,
on my server (18.0.30, Ubuntu 16.04, Plesk+NGINX+Apache, HTTP2) I just created a new subdomain (demo.subscription2.me) that belongs to the second subcription of the admin user and wanted to create a test installation of moodle. However, I do face a problem (despite of using Moodle or not):
When trying to access any page on demo.subscription2.me, Nginx/Apache randomly decide to deliver the content belonging to the default host (myserver.com). I created a simple demo.php file which only runs phpinfo().
I tried to reconfigure the whole webserver configuration already, but the problem remains.
Interestingly, when trying to access https://demo.subscription2.me/demo.php, every now and then, Nginx seems to reply with a 404 error:
Similarly, when Moodle is installed on a subdomain, I get the following response:
So I wonder
a) why Nginx does not find the file and
b) how this weird response, containing the link header is given.
It seems that the wrong page is being served, as the 404 response indicates PHP 7.3 is used while the new subdomain useds PHP 7.4.
I did not observe a similar behavior with other (sub)domains yet, but when trying to create another new subdomain, the same seems to happen.
on my server (18.0.30, Ubuntu 16.04, Plesk+NGINX+Apache, HTTP2) I just created a new subdomain (demo.subscription2.me) that belongs to the second subcription of the admin user and wanted to create a test installation of moodle. However, I do face a problem (despite of using Moodle or not):
When trying to access any page on demo.subscription2.me, Nginx/Apache randomly decide to deliver the content belonging to the default host (myserver.com). I created a simple demo.php file which only runs phpinfo().
I tried to reconfigure the whole webserver configuration already, but the problem remains.
Interestingly, when trying to access https://demo.subscription2.me/demo.php, every now and then, Nginx seems to reply with a 404 error:
Code:
HTTP/2 404 Not Found
server: nginx
date: Wed, 30 Sep 2020 20:09:36 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-powered-by: PHP/7.3.22
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0
link: <https://myserver.com/wp-json/>; rel="https://api.w.org/"
content-encoding: gzip
X-Firefox-Spdy: h2
Similarly, when Moodle is installed on a subdomain, I get the following response:
Code:
HTTP/2 301 Moved Permanently
server: nginx
date: Wed, 30 Sep 2020 20:23:31 GMT
content-type: text/html; charset=UTF-8
content-length: 0
x-powered-by: PHP/7.3.22
x-redirect-by: WordPress
location: https://www.myserver.com/
cache-control: max-age=0
expires: Wed, 30 Sep 2020 20:23:31 GMT
x-powered-by: PleskLin
X-Firefox-Spdy: h2
So I wonder
a) why Nginx does not find the file and
b) how this weird response, containing the link header is given.
It seems that the wrong page is being served, as the 404 response indicates PHP 7.3 is used while the new subdomain useds PHP 7.4.
I did not observe a similar behavior with other (sub)domains yet, but when trying to create another new subdomain, the same seems to happen.