A
A
Alexander2021-01-08 23:52:32
1C-Bitrix
Alexander, 2021-01-08 23:52:32

How to make a subdomain work normally on BitrixVM?

There is a website site.ru and its dev version dev.site.ru.
Hosted on one VDS with BitrixVM. The first one is in /home/bitrix/www, the second one is in /home/bitrix/ext_www/dev.site.ru

Both have certificates:

There are 2 sites:
------------------------------------------------------------------------------------
SiteName        | dbName          |       Type | S | Certificate          | Key
------------------------------------------------------------------------------------
default         | site1         |     kernel | Y | /home/bitrix/dehydrated/certs/site.ru/fullchain.pem | /home/bitrix/dehydrated/certs/site.ru/privkey.pem
dev.site.ru   | site_dev      |     kernel | Y | ssl/cert.pem         | ssl/cert.pem
------------------------------------------------------------------------------------

However, the second one does not work as expected.
service worker throws an error:
Uncaught (in promise) TypeError: Failed to fetch
Sometimes (always in incognito) the browser gives a "Connection is not secure" error, like Failed to confirm that this is the dev.site.ru server, blah blah blah.

But in normal mode, such an error disappears if you refresh the page and the lock is displayed normally, the site certificate is normally displayed.

I assume that there is some problem with the certificate. Which? What to do with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-01-09
@shambler81

everything should work.
Install a letsencrypt certificate on the second site

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question