logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 28-04-2019 10:07:28

keo
Membre
Inscription : 21-02-2017

configuration nginx et tomcat

Bonjour,

je souhaite faire un reverse proxy mais je n'y arrive pas, voici ma config:


upstream kkkk{
        server localhost:9090;
}

server {
    server_name  mondomaine.fr;
        root /var/www/html;
        index index.php index.html;

    # Les urls contennant /. (dotfiles)


    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }

    location / {
        proxy_pass http://mondomaine.fr/kkkk;
    }


 



lorsque je test sur la machine hôte


curl 127.0.0.1:9090
 



j'ai bien la page html tomcat.

par contre avec un autre pc si je tape http://mondomaine.fr/kkkk

j'ai un erreur 404, comment je dois configurer correctement le proxy ?

merci d'avance de vos réponse.

Hors ligne

#2 27-09-2019 15:03:01

Freemaster
Membre
Lieu : Nord
Distrib. : Debian amd64
Inscription : 31-07-2018
Site Web

Re : configuration nginx et tomcat

Salut,


upstream kkkk{
        server localhost:9090;
}

server {
    server_name  mondomaine.fr;
        root /var/www/html;
        index index.php index.html;

    # Les urls contennant /. (dotfiles)


    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }

    location / {
        proxy_pass http://kkkk;
    }

 


devrait mieux fonctionner !


o_O

Hors ligne

Pied de page des forums