Posted by paul on 06/13/05 03:07
Wayne wrote:
> On Wed, 08 Jun 2005 17:22:15 -0700, paul <paul@not.net> wrote:
>
>
>>This is mostly only for in-house testing. I don't have any domains
>>pointing to my IP. Would I set up another tcp/ip connection with a
>>different IP adress to accomplish this distinction?
>
>
> Just use your hosts file to create local domain names for all the
> sites and have it point to localhost. I do that for all my sites.
> Domains like this:
>
> http://somesite.test
> http://anothersite.test
>
> ...all point to localhost and I use virtual hosting to have Apache
> pull up different sites based on the name.
OK see below for how I set it up. I excluded the www in the new project
domain name because otherwise I won't be able to get to the live site
once it's up. Not sure how else to get around that short of editing the
hosts file.
Also, my machine is a live server (when I turn off the firewall). Is
there a way to point people to the second address other than the IP
address? This is just for a few people temporarily, I don't want to
point the actual DNS servers out there at it.
hosts:
-----------
127.0.0.1 localhost (what I had before)
127.0.0.1 triteleia.com
httpd.conf:
(at the bottom)
-----------
NameVirtualHost *
<VirtualHost *>
ServerName localhost
DocumentRoot "C:\paul\web\public_html"
</VirtualHost>
<VirtualHost *>
ServerName triteleia.com
DocumentRoot "C:\paul\www\triteleia"
</VirtualHost>
<Directory "C:\Documents and Settings\paul\Desktop\_paul\www\triteleia">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
[Back to original message]
|