homepage Welcome to WebmasterWorld Guest from 54.196.62.23
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
setting up development environment
accessing *.domain.dev remotely
daniel_o

5+ Year Member



 
Msg#: 3775184 posted 6:04 pm on Oct 28, 2008 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3775184 posted 6:29 am on Oct 29, 2008 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved