veiwing localhost on windows

letimati

Bit poster
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
 
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.
 
Back
Top