NYCPHP Meetup

NYPHP.org

[nycphp-talk] Virtual Hosts

Jeff jsiegel1 at optonline.net
Mon Sep 8 15:32:12 EDT 2003


I was looking at Dan Kushner's presentation on Setup/Dev under Win2000
at 
http://www.nyphp.org/content/presentations/ampintro3/ 

I found this on slide 19 of the presentation. 

      <VirtualHost *>
         DocumentRoot "c:\sites\foo.localhost"
         ServerName foo.localhost
         php_value auto_prepend_file
"c:\sites\foo.localhost\prepend.inc"
      </VirtualHost>

      <VirtualHost *>
         DocumentRoot "c:\sites\bar.localhost"
         ServerName bar.localhost
      </VirtualHost> 

The question is, how do I adapt this for the following scenario:

My development is done on a separate server (Linux box) and is accessed
solely with an IP address. Therefore, I'm not doing development on the
same box as PHP and, correct me if I'm wrong, I can't use "localhost" as
part of the address to get to the Linux box. How do I accomplish the
virtual hosting thing in this scenario? (At present I'm using port
numbers but that's kinda clumsy.)

Jeff




More information about the talk mailing list