veiwing localhost on windows

Discussion in 'Installation and Configuration of Parallels Desktop' started by letimati, Jul 26, 2007.

  1. letimati

    letimati Bit poster

    Messages:
    1
    Hi the only thing i want to do with parallels is test websites i have built on my localhost on windows browsers.

    For each site i build i set up a virtual host in the http.conf file like so

    <VirtualHost 127.0.0.1>
    DocumentRoot /Users/anton/Work/clients/icon/site
    ServerName icon.stg
    RewriteEngine On
    </VirtualHost>

    the in the hosts file

    127.0.0.1 icon.stg

    this then lets me type into the browser the url icon.stg and i will see the file structure at /Users/anton/Work/clients/icon/site

    unfortunately this is not working when i run windows and type it into ie.

    is there a way for me to configure it so i can?

    thanks in advance for any help
     
  2. imaffett

    imaffett Bit poster

    Messages:
    9
    Localhost always points to your local loop back...its' going to your windows install instead of your mac computer.

    What I did was setup an entry in my windows hosts file (and /etc/hosts) on mac called "mydevsite" that both point to the mac IP Address.

    So when you create a site, you can then reference all files/images in the html as "http://mydevsite/path_to_file" and it will work on windows and mac.
     

Share This Page