Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Apache2] Configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Tue Jul 19, 2005 3:14 am    Post subject: [Apache2] Configuration Reply with quote

Bonjour, je suis en train de configurer mon premier serveur web complexe et j'ai besoin de votre aide.

Mes dossier webs:

/pub/hebergement <--- Les comptes gratuits du style username.mondomaine.com
/pub/domaines <--- Les domaines complets www.domaines.com

alors dans le fond phil.mondomaine.com va afficher le contenu de /pub/hebergement/phil/.
et www.monautredomaine.com va afficher /pub/domaines/www.monautredomaine.com/default.

Voici la ou ca se complique.

L'utilisateur associe a monautredomaine.com va vouloir creer ses vhosts, pour se faire il va pouvoir creer: /pub/domaines/www.monautredomaine.com/stats
Ce que je veux c'est : stats.monautredomaine.com affiche le contenue de /pub/domaines/www.monautredomaine.com/stats.
Les domaines pourront donc avoir autant de virtual hosts qu'ils veulent.



Je suis assez experimente avec gentoo en general, mais la avec apache2 et mod_rewrite, vous me perdez.



C'est pourquoi je demande l'aide charitable de quelqu'un qui pourrait m'aider a finir mon vhosts.conf

Voici ou j'en suis:

Quote:

##########################################################################
################## Pour l'hebergement de domaines ##################################
##########################################################################

<Directory /pub/domaines>
AllowOverride All
Options All FollowSymLinks ExecCGI
Allow from all
</Directory>

RewriteEngine On
RewriteMap lowercase int:tolower

# SI on peut, on map dans /pub/domaines/
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond /pub/domaines/${lowercase:%{SERVER_NAME}} -d
RewriteRule ^/(.*)$ /pub/domaines/${lowercase:%{SERVER_NAME}}/$1 [L]

# Si rien, on va dans le domaine par default
# A VERIFIER
RewriteCond %{REQUEST_URI} !^/icons/
RewriteRule ^/(.*)$ /pub/domaines/www.netrock.ca/$1

LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog logs/access_log vcommon


Jusqu'a maintenant, je me suis servis de ce topic la : https://forums.gentoo.org/viewtopic-t-16597-postdays-0-postorder-asc-highlight-dynamic+virtual+hosts-start-0.html

Ce qui me reste a faire c'est faire fonctionner ce que j'appelerais les "vhosts directories" et le /pub/hebergment...
_________________
http://tilde.club/~geforce/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum