• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Problem witch adding subdomains

The behaviour with download shows up if php is not installed, not working oder not configured in apache.

To help you the experts may want to know from you:
Which OS in which version?
Which Plesk version?
Which PHP version?

What fails exactly? Also the top-level domain or subdomain only?
You got any error messages?
Which steps you did to produce the error?
 
CentOS Linux 7.5.1804
Plesk Onyx Version 17.8.11 Update #16
PHP 5.6.37
PHP 7.0.31
PHP 7.2.8
All PHP FastCGI

Domain led-glass.eu witch SSL , then the subdomain example test.led-glass.eu is forced on HTTPS in firefox:
This page specifies via HSTS (HTTP Strict Transport Security) that Firefox should only connect to it in a secure manner. Therefore, it is not possible to add an exception for this certificate.

in Chrome no forced to HTTPS, used HTTP its ok.
Clear cache, reset browser etc. not solved

Domain without SSL, create subdomain then only save files application/x-httpd-php not open, even plain HTML does not want to open.

something has changed now, I turned off Apache? (dissapeared PHP 5.6.37, one website working only in Chrome)
No impossible! it helped to disable apache in the nginx settings, then enable, I fought two days with this.

There has been a problem with forcing HTTPS in firefox.
 
Last edited:
If you place a HSTS header, it is designed to HTTP is not working any more .... If you need http, then remove the HSTS header ....
This is not a Plesk issue, it is a configuration issue ... HSTS is designed to NOT ALLOW http .... It affects ALL subdomains of the top level domain.
HTTP Strict Transport Security - Wikipedia
 
Which order you used? No all browsers have this preload list. It only prevents a downgrade. So first accessing http://test.example.com will work, if there's no hsts-header on the subdomain ...
Now I can't test, as your test subdomain doesn't resolve any more.
 
In Firefox:
The owner of the files.led-glass.eu site has configured it incorrectly. Firefox did not connect to it to protect the user from theft of information.

This page specifies via HSTS (HTTP Strict Transport Security) that Firefox should only connect to it in a secure manner. Therefore, it is not possible to add an exception for this certificate.

Chrome (not used) its OK
 
Everything fine ... you only need to wait that the time from the HSTS Header expired, what was set before.

You forbid the browser by HSTS for time x to connect without SSL .... now you must wait time x ... that's not a technical problem. Firefox works like expected.
 
Now the whole domain has fails: shop.led-glass.eu ERROR 500
Domain led-glass.eu enforces redirecting to led-glass.de which was in the htaccess file, but it is not there anymore!
the rest of the domains work

nothing is in the logs
 
no, only the SUB domain shop.led-glass.eu fails with 502 (what is mostly nginx related). led-glass.eu ist redirecting fine.

Nginx logs? Apache can't log anything if the proxy in front of it fails. You may just stop Nginx, if you don't need it.
 
I stopped Nginx
I stopped Apache
without result
led-glass.eu - must not going to redirect now!

shop.led-glass.eu:
Server Error
500
Internal Server Error
 
?!? OK, I check here


http and https reacting very different now.
http://led-glass.eu Testsite
https://led-glass.eu Redirect to de site in Firefox (cache) but testsite in Chrome (no cache)
If I use Mozilla in private Mode (Strg+Shift+P), it behaves like Chrome (who had not seen your page before)!
http://shop.led-glass.eu Error 500 page after redirect to https
https://shop.led-glass.eu Error 500 page

With nginx I mean keep it disabled! Apache is required to serve the page ...
And keep this caching stuff in mind! The browser may not display what is configured ...
 
I went only to Apache - it does not work
I only went to Nginx - it does not work
Now Ngnix is off, everything has been reconfigured
shop.led-glass.eu - error 500

All browsers are cleaning, then it is the same redirect led-glass.eu to led-glass.de
 
Back
Top