|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|