![]() |
|
#1
|
|||
|
|||
Windows HOSTS file setupin my windows HOSTS file, I added
127.0.0.1 abc.com and it works fine for me. How can I setup so that I can use [anystring].abc.com? Thanks, Sachin |
|||
|
#2
|
|||
|
|||
Re: windows HOSTS file setupQuote:
Wild cards are not acceptable in the etc/hosts file. You can either make a separate entry for each and every subdomain, if possible, or consider installing a local DNS server, and changing your network tcp/ip connection setup properties to use it. (DNS server programs are usually supplied with "server" versions of Microsoft operating systems, but not "user" versions like XP. I know that third-party programs are available, but I have never set up or used a DNS server on non-server platforms.) Regards, Dave |
|
#3
|
||||
|
||||
Re: windows HOSTS file setupI have also often wondered about this. Thank you for confirming that it is not possible (via the HOSTS file).
|
|
#4
|
|||
|
|||
Re: Windows HOSTS file setupThanks. Any other solution to this issue?
Basically, I have a php application running on apache and want that any URL like x.abc.com [x can be anything] works. I can trap the URL and then do whatever i want. |
|
#5
|
|||
|
|||
Re: Windows HOSTS file setupQuote:
Here's the drill for servers: 1. Set up a wildcard subdomain in the DNS server for your machine. 2. Set up a virtual host in your Apache configuration file. Quick reference: Apache & Wildcard Domain Regards, Dave [disclaimer] I do not set up or administer web sites, although I have been known to dabble a little, every now and then. In other words: Although I know that this simple two-step methodology can work, there have been so many changes in implementations of DNS servers over the years, that there is no way that I can help beyond this. [/disclaimer] |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| After execution - Error cannot locate /Skin File? | WSCH | C++ Forum | 1 | 05-Mar-2005 20:03 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
| CD Buring Failed | skanth2000 | Computer Hardware Forum | 1 | 15-Nov-2003 03:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The