Apache hppd.conf - Virtual Host Question

Posted on 2003-03-19
Medium Priority
Last Modified: 2013-11-15
How do I set up a VirtualHost to work on an internal network? I want to be able to type 'imageshare' into a browser on the network and have the site come up. As it is now, I have to type the IP address at which point the imageshare site comes up. This is because the ServerName is not recongnized so the IP address automatically will default to the first VirtualHost that it finds.

Eventually, I will have several sites on this one box. Any ideas?

Thanks in advance...


<VirtualHost *>
    ServerAdmin me@mysite.com
    DocumentRoot "D:/www/imageshare"
    ServerName imageshare
    ErrorLog logs/imageshare.com-error_log
    CustomLog logs/imageshare.com-access_log common
Question by:Dongle_Dave
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

TranQuocViet earned 200 total points
ID: 8232875
The are two way to setup your virtual host
1. Use IP and port. Ex
Listen 8080
   DocumentRoot "D:/www/imageshare"
   ServerName imageshare
Your site can be accessed via

2. Use name resolution.
<VirtualHost yourpc>
   DocumentRoot "D:/www/imageshare"
   ServerName imageshare

But the name must be resolvable. You can set this name in DNS or just specify it in the host file /winnt/system32/driver/ect/

With Apache, you can authorize many sites (via VirtualHost)

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question