Hello guys, now that i have all my scripts up and running i need some help configuring virtualhosts on Apache/Xampp/Win7

The Httpd-vhosts.conf like this:

<VirtualHost *:80>
    ServerAdmin joao.dias@centralcervejas.pt
    DocumentRoot "C:/xampp/htdocs"
    ServerName kadar
    ServerAlias www.kadar
   <Directory "C:/xampp/htdocs/" >
            Options Indexes FollowSymLinks ExecCGI Includes
            Order allow,deny
            Allow from all
        </Directory>  
</VirtualHost>

The Windows 7 Hosts File is set like this:

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
10.5.135.75       kadar

I can open the page calling http://kadar inside the server but cannot open the page in client computer.
I get this message: Internet Explorer cannot display the webpage
What am i doing wrong?
Already rebooted apache server several times and windows 7 several times.

Recommended Answers

All 2 Replies

Hello,

You would have to have the same host entry on the client also or use the IP address of the server.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.