Jerome_CREA Posted February 16, 2018 Share Posted February 16, 2018 (edited) Bonjour, Je souhaite restreindre l'accès à un sous-domaine d'un site (et quelques adresses IP) depuis un autre site en https Pour les IP ça ne pose pas du tout de problème, par contre pour mon domaine référent j'étais parti sur un test en PHP avec la $_SERVER['HTTP_REFERRER'] Le problème c'est que ma cible, je n'ai pas de certificat SSL en sous-domaine ... de ce fait je ne récupère rien en HTTP_REFERRER, que nenni, nada, que dale ! Ma question est de savoir s'il est possible d'ajouter un certificat sur un sous-domaine particulier dans DirectAdmin (en plus du certificat habituel sur le domaine principal) Merci d'avance pour vos lumières éclairantes Jérôme Edited February 16, 2018 by Jerome_CREA Link to comment Share on other sites More sharing options...
Dan Posted February 16, 2018 Share Posted February 16, 2018 On peut simplement, s'il s'agit d'un certificat LetsEncrypt, cocher le sous-domaine lorsqu'on demande le certificat. Difficile de faire plus simple Dan Link to comment Share on other sites More sharing options...
Jerome_CREA Posted February 16, 2018 Author Share Posted February 16, 2018 Salut Dan ca va ? Dans l'administration actuelle du certificat, nous sommes sur l'option "Coller un certificat pré-généré et la clé" Il me suffit donc de changer d'option pour "Certificat SSL gratuit et automatique de Let's Encrypt" et faire ma sélection ? Jérôme Link to comment Share on other sites More sharing options...
Dan Posted February 16, 2018 Share Posted February 16, 2018 Oui, tout à fait ! Aussi simple que ça ! Link to comment Share on other sites More sharing options...
Jerome_CREA Posted February 16, 2018 Author Share Posted February 16, 2018 Ca me paraissait trop simple pour être vrai, merci beaucoup ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now