Forum Moderators: phranque

Message Too Old, No Replies

Multiple domains sharing a single directory structure?

I need to have multiple domain names pointing to the same directory

         

ericjust

9:54 pm on Aug 1, 2007 (gmt 0)

10+ Year Member



I admit it: I do not know much about Apache.

I need to have multiple domain names that share a code-base. I would to be able to identify the domain name (so I can set a variable - i.e. $site = 1). I would like all domains to share the same code-base - so www.domain1.com/place/ is the same as www.domain2.com/place/ except that the content can be set dynamically because I would know which domain name is being used. Does that make sense?

Thank you for any help. I can be more specific to a reply.

jdMorgan

10:34 pm on Aug 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer to the only question I found is, "Yes, that makes sense."

There are many ways to do this, including VirtualHosts, ScriptAliases, mod_rewrite, and lots of other methods and enabling modules.

Jim

ericjust

5:20 pm on Aug 2, 2007 (gmt 0)

10+ Year Member



jdMorgan,

Thanks for pointing me in the right direction. I will look into the methods you mentioned.