Networking Forums

Networking Forums > Computer Networking > Linux Networking > mod_rewrite help needed

Reply
Thread Tools Display Modes

mod_rewrite help needed

 
 
google@w98.us
Guest
Posts: n/a

 
      02-10-2005, 07:48 AM
I have a hosting account for, say, abc.com. I also own the domains of
def.com, ghi.com, jkl.com etc.

My hosting provider links all of these domains into a single directory
path:
/home/myaccount/public_html

What I'm trying to attempt is the following:

- make a directory for each parked domain
- each domain can have its own web files
- accessed via mod_rewrite to do the following:

http://www.abc.com/* redirects to /home/myaccount/public_html/abc.com/*
http://abc.com/* redirects to /home/myaccount/public_html/abc.com/*

http://www.def.com/* redirects to /home/myaccount/public_html/def.com/*
http://def.com/* redirects to /home/myaccount/public_html/def.com/*

http://www.ghi.com/* redirects to /home/myaccount/public_html/ghi.com/*
http://ghi.com/* redirects to /home/myaccount/public_html/ghi.com/*

you get the idea...

So if I call http://www.abc.com/index.php, it'll load up from
/home/myaccount/public_html/abc.com/index.php

Anyhow, I'm having trouble writing my rules and wondering if anyone has
a working example so I don't have to write a ton of scripts to parse
headers, etc.

Any help would be most appreciated.

 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      02-10-2005, 07:55 AM
On 2005-02-10, (E-Mail Removed) <(E-Mail Removed)> wrote:
> What I'm trying to attempt is the following:


Read the documentation related to mass-defined virtual hosting on
www.apache.org There are examples and they works.

Davide

--
An OS/2 professional visits a seminar for Windows 95. During the practice
lesson Bill Gates asks him: "What do you like about Windows95?" He answers,
"That YOU have to use it."
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache mod_rewrite mod_proxy_html Henning Eiben Linux Networking 2 02-08-2007 02:45 PM
mod_rewrite madness Michael Mol Linux Networking 3 02-08-2007 06:55 AM
Simple mail "server" program needed - advice needed please Andrew Sayers Home Networking 12 08-24-2006 04:03 PM
mod_rewrite: replace all occurance of a character jason.yfho@gmail.com Linux Networking 2 01-06-2005 03:34 PM
HELP NEEDED!! Do I have a router that needs taken back. Please. Any information is much needed. newbie Windows Networking 0 09-28-2003 04:53 PM



1 2 3 4 5 6 7 8 9 10 11