Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v44vn3$1gab0$1@paganini.bofh.team>
Deutsch   English   Français   Italiano  
<v44vn3$1gab0$1@paganini.bofh.team>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!weretis.net!feeder8.news.weretis.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: Thomas Alexandre <none@no.invalid>
Newsgroups: fr.comp.infosystemes
Subject: Re: Rediriger nom de domaine vers une URL avec sous-dossiers
Date: Sun, 9 Jun 2024 19:27:31 -0000 (UTC)
Organization: To protect and to server
Message-ID: <v44vn3$1gab0$1@paganini.bofh.team>
References: <8_kNgo0oi6kOVi86rTuU-muIfLA@jntp>
	<v43tfm$vpu$1@rasp.pasdenom.info> <CWFIpe5kD0phoLS46krDrRnfDbs@jntp>
	<v441ba$72t$1@rasp.pasdenom.info> <E360K22vIjsAkdty2hcAUJ8_gOI@jntp>
	<DzDpkPsvK7H4iQmqAZYrtA-I-qk@jntp>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 9 Jun 2024 19:27:31 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1583456"; posting-host="wzr96gMS0MYUA10j0jyeBA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: Pan/0.154 (Izium; 517acf4)
X-Notice: Filtered by postfilter v. 0.9.3
Bytes: 2289
Lines: 36

Le Sun, 09 Jun 24 12:30:08 +0000, pehache a écrit :

>> Le 09/06/2024 à 12:49, DV a écrit :

>>> Je peux me tromper, mais je doute qu'il existe une méthode de
>>> redirection véritablement transparente vers un dossier (et non vers un
>>> domaine ou sous-domaine).

> J'ai aussi un auto-hébergement sur un petit NAS, mais à priori le
> problème va être exactement le même.

Au niveau DNS, la notion de "dossier" n'existe pas, c'est du nom canonique 
(CNAME).

La solution ne peut être qu'au niveau du protocole HTTP : monter un petit 
serveur nginx sur domaineA.com qui ferait proxy vers domaineB.com en 
réécrivant l'url à la volée en ajoutant /dossier/.

La conf devrait ressembler à ça :

server {
  server_name domaineA.com;
  listen 80;
  location / {
    proxy_set_header Host domaineB.com;
    rewrite /(.*) /dossier/$1 last;
    proxy_pass http://domaineB.com;
  }
}



-- 
"Ce qu'il faut au fond pour obtenir une espèce de paix avec les hommes,
(...) c'est leur permettre en toutes circonstances, de s'étaler, de se
vautrer parmi les vantardises niaises. Il n'y a pas de vanité
intelligente. C'est un instinct." - Céline