hi, im using name-based virtual hosting only (1 ip), and my
partial vhost.conf config file below:

####
Port 80
NameVirtualHost xxx.yyy.zzz.xyz

# www.site1.com
<VirtualHost xxx.yyy.zzz.xyz>
 ServerName www.site1.com
 ScriptAlias /cgi-bin/ /web/hosted-sites/www.site1.com/cgi-bin/
 DocumentRoot /web/hosted-sites/www.site1.com/htdocs
<Directory />
  Options FollowSymLinks Indexes
</Directory>
</VirtualHost>

# www.site2.com
<VirtualHost xxx.yyy.zzz.xyz>
 ServerName www.site2.com
 DocumentRoot /web/hosted-sites/www.site2.com/htdocs
<Directory />
  Options FollowSymLinks Indexes
</Directory>
</VirtualHost>
###

you might want to consider name-based instead of ip-based web hosting.

for reference, please take a look at http://www.apache.org/docs/vhosts/

> This is in reference to the 2 public ip for 1 nic card which i have posted recently, 
> and i would like to thank everybody for giving their time to answer.
> The reason for asking is that im trying to host in one (1) server,using RH9,  a 2 
> different fully qualified domain name (FQDN), using the 2 public ip address that i 
> have just acquired. 
> So im asking ur help again if u have any links or direct suggestion on how i can do 
> this. My present configuration is (httpd.conf), but i get an error whenever i would 
> start that httpd service. 
> 
> 
> #################################################
> Port 80
> NameVirtualHost xxx.xxx.xxx.100
> <VirtualHost xxx.xxx.xxx.100>
> ServerName myserver.com
>      DocumentRoot /var/www/html/myprimarysite
>      ServerAlias myprimarysite.com
> </VirtualHost>     
> 
> NameVirtualHost xxx.xxx.xxx.200
> <VirtualHost xxx.xxx.xxx.200>
>      ServerName myserver.com
>      DocumentRoot /var/www/html/mysecondarysite
>      ServerAlias mysecondary.com
> </VirtualHost>     
> ########################################################

-- 
Edelberto S. Mania
CISP/NOC

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to