PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Virtual domain question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Virtual domain question

Réponse
 
LinkBack Outils de la discussion
Vieux 14/10/2006, 13h26   #1
Andy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Virtual domain question

Hi,

This is probably a complete newbie question, of which I apologize for
in advance! :-)

I'd like to set up some virtual domains on my site that have the
format: username.domain.com. Whenever I've seen this done before (on
hosting accounts I've had, for example) it creates a new folder for the
document root, etc. However, all I want it to do is rewrite the domain
so it just goes to something like
www.domain.com/index.php?user=username.

I'd imagine a rewrite rule could be put in the htaccess file to to
check for the username and rewrite the url. But would I have to put a
<VirtualHost> entry in the vhosts.conf file for every username added?
Would I have to update anything else for this to work? I'd like to do
it via programming, if possible (eg, someone signs up to my site and
gets their username added automatically). The programming part is not
a problem (and besides, this is the wrong group for that!) so long as I
know what what I need to be updating.

Many thanks to anyone who can give any advice and !

Andy

  Réponse avec citation
Vieux 14/10/2006, 20h02   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Virtual domain question

On 2006-10-14, Andy <amnuts@gmail.com> wrote:
> I'd like to set up some virtual domains on my site that have the
> format: username.domain.com.
> etc. However, all I want it to do is rewrite the domain
> so it just goes to something like
> www.domain.com/index.php?user=username.


See the documentation about "Mass defined virtual hosts".
Davide

--
Yo-yo operating system = WinNT: it goes up..., it goes down..., it goes...
-- From a Slashdot.org post
  Réponse avec citation
Vieux 15/10/2006, 07h23   #3
BlackSpider
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Virtual domain question

Or.. Judging by the url, you want the to have agander at the userdir
directive, might be more what you're needing (Although it own't be a
?username= style URL, although I don't know.. I think you migh tbe able to
change what it looks for, I haven't had a really good look at it.)

- Me.
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnej262g.3l6.davideyeahsure@fogg.onlyforfun .net...
> On 2006-10-14, Andy <amnuts@gmail.com> wrote:
>> I'd like to set up some virtual domains on my site that have the
>> format: username.domain.com.
>> etc. However, all I want it to do is rewrite the domain
>> so it just goes to something like
>> www.domain.com/index.php?user=username.

>
> See the documentation about "Mass defined virtual hosts".
> Davide
>
> --
> Yo-yo operating system = WinNT: it goes up..., it goes down..., it goes...
> -- From a Slashdot.org post



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h50.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11015 seconds with 11 queries