Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2597 connectés 

  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Réseaux

  [Apache] Ajenti - Apache Proxy et rewrite rule

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Apache] Ajenti - Apache Proxy et rewrite rule

n°112472
axl the mu​x
Posté le 04-07-2013 à 13:56:19  profilanswer
 

Bonjour,
 
J'ai installé le logiciel ajenti qui m'a l'air très bien
 
il fonctionne via l'adresse suivante : localhost:8000
 
Je voudrais rediriger le tout vers http://monserveur/Ajenti
 
J'ai fait ca :
 
        <location /ajenti>
                proxyPass http://127.0.0.1:8000
                proxyPassReverse http://127.0.0.1:8000
                RewriteRule /ajenti/(.*)$ $1
        </location>
 
Mais ça ne marche pas  
 
Pour info dans la doc il y a ça :
 

Code :
  1. All Ajenti URLs are absolute and start with /ajenti:, which makes it easy to reverse-proxy it with, for example, nginx:
  2. server {
  3.     server_name fallthrough;
  4.     client_max_body_size 20m;
  5.     listen 80;
  6.     location /ajenti {
  7.         rewrite /ajenti/(.*) /$1 break;
  8.         proxy_pass  http://127.0.0.1:8000;
  9.         proxy_redirect off;
  10.         proxy_set_header Host $host;
  11.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12.     }
  13. }


 
Mais je n'arrive pas à l'adapter
 
Merci


---------------
nos utopies d'aujourd'hui sont les réalités de demain.
mood
Publicité
Posté le 04-07-2013 à 13:56:19  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Réseaux

  [Apache] Ajenti - Apache Proxy et rewrite rule

 

Sujets relatifs
Quel proxy hardware choisirTSE 2008 + IE 9.0 + Proxy
Probleme authentification PasserelleRDS/ Reverse Proxybasoin d'aide pour serveur proxy avec trois WAN
Paramétrer un proxy dans un routeurAcces à des proxy étrangers
Gpo IE10 / configuration proxyProxy Solution Payantes Vs Squid
proxy + snort 
Plus de sujets relatifs à : [Apache] Ajenti - Apache Proxy et rewrite rule


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR