niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » networking
mod_rewrite help needed
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
google@w98.us
*nix forums beginner


Joined: 10 Feb 2005
Posts: 1

PostPosted: Thu Feb 10, 2005 7:48 am    Post subject: mod_rewrite help needed Reply with quote

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.
Back to top
Davide Bianchi
*nix forums Guru


Joined: 24 Feb 2005
Posts: 373

PostPosted: Thu Feb 10, 2005 7:55 am    Post subject: Re: mod_rewrite help needed Reply with quote

On 2005-02-10, google@w98.us <google@w98.us> wrote:
Quote:
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."
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 8:39 am | All times are GMT
navigation Forum index » *nix » Linux » networking
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mod_rewrite to go from http to https and back sevans@bigskypenguin.com Apache 0 Fri Jul 21, 2006 5:12 am
No new posts Help Needed. Removing a Folder Problem Kilicaslan Fatih python 4 Thu Jul 20, 2006 9:57 am
No new posts mod_rewrite with [last] not behaving as expected Nick Burch Apache 5 Thu Jul 20, 2006 9:49 am
No new posts 2 Perl Software Engineers needed for great contract in NYC jessica.dwyer@scfoster.co Perl 2 Wed Jul 19, 2006 4:41 pm
No new posts mod_rewrite question. Vincent Blondel Apache 0 Wed Jul 19, 2006 9:06 am

Bentley Autos | Debt Consolidation | Mortgages | Florence apartments | Credit Counseling
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.6175s ][ Queries: 16 (0.5479s) ][ GZIP on - Debug on ]