Welcome to WebmasterWorld Guest from 54.226.62.26

Forum Moderators: bakedjake

Message Too Old, No Replies

setting up development environment

accessing *.domain.dev remotely

     

daniel_o

6:04 pm on Oct 28, 2008 (gmt 0)

5+ Year Member



Hi,

I run a website with musltiple domains and multiple subdomains (wildcards).

Let's say I have following sites available:

sub1.domain1.com
sub2.domain1.com
..
sub1.domain2.com
sub2.domain2.com
..

etc..

QUESTION:

is it possible to set up a developement environment,
so I can access the remote pages like that:

sub1.domain1.dev
sub2.domain1.dev
..
sub1.domain2.dev
sub2.domain2.dev
..

etc..

?

The remote box is a linux with apache2 running on it.

I know I would need to add an entry the hosts file in the C:\WINDOWS\system32\drivers\etc
on my local machine (windows XP):
remote.ip.address *.domain1.dev
Would do the trick?

What about the remote box? I'm guessing I would need to add a new virtual host zone,
and call the serverName "*.domain1.dev" ? Correct?

mcavic

6:29 am on Oct 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, that should work fine. On the server, you can either add a new virtual host, or just use ServerAlias to add a second name to the existing virtual host.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month