httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jez Hancock <>
Subject Re: [users@httpd] Configuration of Apache
Date Mon, 22 Mar 2004 03:28:24 GMT
On Sun, Mar 21, 2004 at 07:14:01PM -0500, wrote:
> In Apache configuration file I entered following directives
>     NameVirtualHost *
>     <VirtualHost *>
>     ServerName
>     DocumentRoot /home/domain
>     </VirtualHost>
>     <VirtualHost *>
>     ServerName
>     DocumentRoot /home/domain2
>     </VirtualHost>
> Once I enter http://localhost I get , how do I visualize 
> second web site 

I presume you mean that you don't currently have any DNS set up for or - if this is the case you should configure
your /etc/hosts file with static DNS entries such as:

this way when you enter: 


a request will be made to and the content will be served up
according to your vhost config above.

> and how do I see both of these sites over the internet.

To see these over the internet you need to make the DNS public -

- register the domain names with a registrar 
- configure DNS A records for and so they
  both point to the IP address of the webserver that will be serving
  files for the domains

Jez Hancock
 - System Administrator / PHP Developer  - Another FreeBSD Diary        - ipfw peruser traffic logging

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message