Bonjour, j'essaie de configurer un sous domaine sur nginx sur une instance cloud.
Avec l'adresse IP, j'accède bien au serveur, mais avec le sous-domaine j'ai une erreur : "Ce site est inaccessible... ERR_CONNECTION_REFUSED"
Voila la configuration :
server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name blog.mydomain.com;
location / {
try_files $uri $uri/ =404;
}
}
Dans la zone DNS, j'ai enregistré blog.mydomain.com A xx.xx.xx.xx
Quand je ping blog.mydomain.com, j'ai bien l'IP de l'instance.
En vérifiant la configuration, tout semble ok :
> root@debian:/var/www/html# nginx -t
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
> nginx: configuration file /etc/nginx/nginx.conf test is successful
Public Cloud OVHcloud - [resolu] Configuration d'un sous domaine sur nginx sur une instance Cloud
Related questions
- Dimensionnement serveur MySQL
45322
07.11.2018 12:32
- [RESOLU] Connexion impossible en SSH
37933
05.06.2019 20:05
- Bonjour, Je n'est reçus aucun mot de passe root lors de mon achat!
33248
05.02.2018 20:47
- Gitlab private docker registry
32926
16.03.2018 13:05
- Ssh connection timed out port 22
32367
11.12.2019 08:21
- Configuration IP failover avec netplan (Ubuntu 17.10)
31784
12.01.2018 23:23
- Problème connexion ssh
31587
04.02.2018 09:46
- IP Failover sur Debian 9
31150
18.11.2016 20:40
- Instance Public Cloud en "error"
28793
15.12.2025 10:04
- Connexion OpenStack Swift Object Storage
24826
11.04.2019 10:09