Jump to content

apache setup windows 2003 server?


sayedsohail

Recommended Posts

Hi everyone,

 

Just today i installed apache 2 on my windows 2003 server (LAN), on the client if i typed http://192.168.1.1, it shows the index.html file works great.

 

But how do i call the index.html file if the user on the network typed http://localhost in their browser?

 

In my httpd.conf file i changed ServerName localhost, but still on the network, http://localhost doesn't work?

 

Any help is highly appreciated.

Link to comment
Share on other sites

localhost refers to the local machine. You can't (or at least shouldn't) try and make localhost refer to another machine. You could edit you hosts file to do so, but there is no way I would recommend it. It could cause any number of issues.

Link to comment
Share on other sites

You mean to say, i should open the hosts file on windows 2003 server and add

 

192.168.1.1 alpha

 

and than open the httpd.conf and add:

 

<VirtualHost 192.168.1.1>

DocumentRoot "C:\xyz\abc"

ServerName alpha

</VirtualHost>

 

Correct me if i am wrong please. i need this to be working today, so the users can access the files over the network when they type http://alpha in their browsers?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.