• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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