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

The Windows 7 Hosts File is set like this:

# localhost name resolution is handled within DNS itself.
#       localhost
#   ::1             localhost       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


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

Closed. Continue here.

Be a part of the DaniWeb community

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