Jump to content

shoppingtom

Members
  • Posts

    3
  • Joined

  • Last visited

shoppingtom's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I'm also considering using mod_rewrite to take care of the problem, but I'm so woefully unfamiliar with regex that it doesn't make much sense to me. Here's an example I found that looks promising: ================= Virtual User Hosts Description: Assume that you want to provide www.username.host.domain.com for the homepage of username via just DNS A records to the same machine and without any virtualhosts on this machine. Solution: For HTTP/1.0 requests there is no solution, but for HTTP/1.1 requests which contain a Host: HTTP header we can use the following ruleset to rewrite http://www.username.host.com/anypath internally to /home/username/anypath: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.[^.]+\.host\.com$ RewriteRule ^(.+) %{HTTP_HOST}$1 [C] RewriteRule ^www\.([^.]+)\.host\.com(.*) /home/$1$2 ================== I'd want to just provide siteA.com or www.siteA.com... I dunno if this is any help. I suppose if I really knew how mod_rewrite works, I'd be much better off, huh?
  2. This is a fascinating thread -- sheds a lot of insight into a problem I'm working with. I've got a similar objective, but I'm wondering about scale. Anybody worked with virtualhost on the order of thousands of hosts? Is there a way to simply say, any domain is located in the folder with the same name? For instance, if my root is /users/tom/webroot And then I hit the server looking for "siteA.com", it would automatically serve the index page from /users/tom/webroot/siteA/ It seems, for thousands of sites, it would work better to set a generic rule, than to have thousands of virtualhost entries. What do you (wiser, more experienced) folks think?
  3. Hi, all -- http://tomdalton.com/temp/omnilog2.php This page is a simple, simple php sample script that I downloaded from the official PHP site. It *should* work, but when I load the page -- I just get the raw source code sent back! It looks like the php processor isn't even touching it. I don't know if it's a problem with my upload, if I'm doing some weird character set thing, but I don't think so. I've uploaded it with Filezilla in ASCII mode, and I don't know what else to try. Any thoughts? Thanks! Tom
×
×
  • Create New...