LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Virtual Host Problem (https://www.linuxquestions.org/questions/linux-software-2/apache-virtual-host-problem-125965/)

clanx 12-15-2003 04:35 AM

Apache Virtual Host Problem
 
I have and ADSL connection, dynamic IP and using free Zoneedit DNS at home. I'm hosting my own website http://www.hafizonline.net on the webserver using apache 1.3.28. Recently my friend need hosting temporary for his website, so I decide to host for him http://www.mycichlids.org.

I have define the vir host inside my apache httpd.conf and it works fine untill I discover this problem.

Sometimes when I want to visit www.hafizonline.net, it appears as www.mycichlids.org. and some of the images doesn't looks in place. Usually the first virtual host I define will be the problem, it always look into the document root for that virtual host although it suppose to point to other document root for another virtual host.

can anyone advise me. ? Thanks.

Below is my vhost conf.

NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#

<VirtualHost *:80>
ServerAdmin admin@mycichlids.org
DocumentRoot /home/mycichlids/public_html
ServerName mycichlids.org
ServerAlias www.mycichlids.org
ErrorLog logs/mycichlids.org
CustomLog logs/mycichlids.org common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin clanx@hafizonline.net
DocumentRoot /home/clanx/public_html
ServerName hafizonline.net
ServerAlias www.hafizonline.net
ErrorLog logs/hafizonline.net
CustomLog logs/hafizonline.net common
</VirtualHost>

clanx 12-16-2003 12:13 AM

does anybody knows the problem ? :(

I really need a hand ..

theparadigm 12-16-2003 03:23 AM

I'm guessing you've solved your problem on your own.

clanx 01-07-2004 01:36 AM

update.


All times are GMT -5. The time now is 04:34 AM.