problems on recycling ip address

From: lito lampitoc (ral@codewan.com.ph)
Date: Mon Sep 02 2002 - 06:52:42 EDT


Sorry for an off-topic. I know this is trivial but, I can't seem to run
multiple virtual hosts
on my Apache 1.3.23, though I was able to run it successfully before.
The new virtual host becomes the default page when I add a new host. For
example, when I type http://www.abc.com, it will take me to
mypage.abc.com (virtual).

Take a look at some fragments of my current configuration and see if
made some mistake:

----Apache----
httpd.conf:

ServerName www.abc.com

DocumentRoot /usr/local/apache/htdocs

<Directory "/usr/local/apache/htdocs">

NameVirtualHost 203.173.2.40:80

  <VirtualHost 203.173.2.40:80>
    ServerAdmin admin@mypage.abc.com
    DocumentRoot /usr/local/apache/htdocs/mypage
    ServerName mypage.abc.com
    ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
    ErrorLog logs /mypage-error_log
    CustomLog logs /mypage-access_log common
</VirtualHost>

-----DNS-----

db.abc.com:

mypage.abc.com IN A 203.173.2.40
  

NB: the main page www.abc.com is cluttered in /usr/local/apache/htdocs
directory and not placed inside a folder. Only the the virtual host
components are properly placed inside a directory (see DocumentRoot)

Thanks for any help.

-- 
Lito A. Lampitoc		
Foundation for Communication Initiatives		phone:+63(2)8941345
CodeWAN Project					http://www.codewan.com.ph
--
Long computations which yield zero are probably all for naught.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:52 EDT