problems on recycling ip address

2007-12-24 23:33:00

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 at 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.

Comments

Got something to say?

You must be logged in to post a comment.