[users@httpd] Rewriting HTTP_HOST to directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good afternoon,

After reading through the mod_rewrite and rewrite guide docs and tinkering with things a bit, I have to admit I'm still in the dark. Here is what I'm attempting to do:

I'm setting up service to offer domain names to users on a free web hosting service. Currently, when a user signs up with the free service, they receive a subdirectory on our site, in the form of /var/www/html/ourhost.com/user. As doing virtual hosts for all the potential users is impractical, and the mass virtual hosting can't translate into this directory structure, I'd like to use a RewriteMap to translate domains to these directories, e.g.

test.com   /var/www/html/ourhost.com/user

Can someone provide me with a bit of help as to how to accomplish this?

Thank you,

Mike


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux