Women in Technology

Hear us Roar



Article:
  Simplify Your Life with Apache Virtual Hosts
Subject:   Problem with virtual host
Date:   2003-12-26 01:14:51
From:   anonymous2
I have dynamic ip and update the DNS settings through zoneedit.com. Im hosting 3 sites inside my linux server and the apache conf file as below :


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


<VirtualHost *:80>
ServerAdmin clanx@hafizonline.net
DocumentRoot "/usr/local/apache/www/mambo"
ServerName hafizonline.net
ServerAlias hafizonline.net www.hafizonline.net
ErrorLog logs/hafizonline.net
CustomLog logs/hafizonline.net common


<Directory "/usr/local/apache/www/mambo">

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all


</Directory>


</VirtualHost>

<VirtualHost *:80>
ServerAdmin nexon@nexon-solution.com
DocumentRoot "/home/nexon/public_html"
ServerName nexon-solution.com
ServerAlias www.nexon-solution.com
ErrorLog logs/nexon-solution.com
CustomLog logs/nexon-solution.com common


<Directory "/home/nexon/public_html">


Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all


</Directory>
</VirtualHost>


The problem im countering is sometimes the web pages is does not point to the actual documentroot. Let say If i want to browse hafizonline.net it goes to mycichlids.org. It happens also to other site nexon-solution.com. Its seems sometimes, the server is mess up and dont know which documentroot it should grap.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Problem with virtual host
    2004-12-09 15:58:19  dmoola [View]

    was this ever resolved? i'm having the same issue.