[clue-tech] Apache2 virtual hosts on Kubuntu/MEPIS box-guidance
	needed
    John Kennedy 
    johnhkennedy at yahoo.com
       
    Mon Mar 13 13:12:36 MST 2006
    
    
  
Good morning
I am a long time linux user that hasn't configured an
Apache webserver with virtual hosts in a very long
time.
I have referred to the wealth of Apache info online
but I still don't quite get it.
I am wondering if someone can review what I am doing
and possibly point me in the right direction?
I am using Kbuntu 5.10 (Breezy)  on an old Compac 400
box.
I have a dedicated IP# from Qwest.net, and  an
Actiontec GT701-WG DSL modem.
[[ the routing table on the modem has a route for
172.16.0.0 to 192.168.0.1  that worked fine in past. 
172.16.0.2 is the ip for the webserver in the DMZ.  I
have also forwarded  tcp/80 to 172.16.0.2  ]]
I have several domains registered with GoDaddy.com
that  I parked there and then forwarded to my assigned
Qwest IP#.  ( I can successfully do a remote
traceroute from most services on 'www.traceroute.org'
to my ded'd IP#.
When I traceroute to any of my domains
the traceroute stops at the Godaddy IP# every time 
regardless of whatever I do in configuring Apache2.
My box uses Kubuntu 5.10 and Apache2.
[[ I had previously used MEPIS on this box and had the
Same Probles with it when I tried to do Virtual
domains]]  
so I think it is a stricly Apache2 related problem...?
When in the past I have used this box with either
MEPIS or Kbuntu 'with just one domain' it works
fine.... it is the effort to do 'virtual domains' that
fails.
I think the problem is a mistake I am making...not any
problem with the o/s or Apache2.
---------------------------------------------
my /etc/hosts  
cat /etc/hosts
127.0.0.1   localhost.localdomain   localhost     www
172.16.0.2      www.domain1.org     domain1.org
172.16.0.2      www.domain2.org     domain2.org
# The following lines are desirable for IPv6 capable
hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
----------------------------------------------
my /etc/apache2/apache2.conf 
is stock/as install-un modified....
----------------------------------------------
my /etc/apache2/sites-available  entries are...
name-of-file-for-domain1
default
name-of-file-for-domain2
------------------------------------------
The contents of the file= name-of-file-for-domain1
is..
NameVirtualHost *
<VirtualHost *>
ServerAdmin   johnhkennedy at yahoo.com
DocumentRoot /var/www/domain1
ServerName www.domain1.org
ServerAlias domain1.org
</VirtualHost>
------------------------------------------
The contents of the file= name-of-file-for-domain2
is..
NameVirtualHost *
<VirtualHost *>
ServerAdmin   johnhkennedy at yahoo.com
DocumentRoot /var/www/domain2
ServerName www.domain2.org
ServerAlias domain2.org
</VirtualHost>
------------------------------------------
my /etc/apache2/sites-enabled  entries are...
000-default
name-of-file-for-domain1-in--sites-available
name-of-file-for-domain2-in--sites-available
[[ I used 'a2ensite' to enable the /sites-available/
entries ]]
------------------------------------------
my /etc/hostname  entries are...
www
ifconfig   shows....
$ ifconfig
eth0      Link encap:Ethernet  HWaddr
00:50:DA:0B:8F:9F
          inet addr:172.16.0.2  Bcast:172.16.255.255 
Mask:255.255.0.0
          inet6 addr: fe80::250:daff:fe0b:8f9f/64
Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:2356 errors:0 dropped:0
overruns:0 frame:0
          TX packets:2503 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1580784 (1.5 MiB)  TX bytes:437204
(426.9 KiB)
          Interrupt:11 Base address:0x1800
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1449 errors:0 dropped:0
overruns:0 frame:0
          TX packets:1449 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:349414 (341.2 KiB)  TX bytes:349414
(341.2 KiB)
--------------------------------------------
netstat -nr   shows....
$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags 
 MSS Window  irtt Iface
172.16.0.0      0.0.0.0         255.255.0.0     U     
   0 0          0 eth0
0.0.0.0         172.16.0.1      0.0.0.0         UG    
   0 0          0 eth0
----------------------------------------------
AFTER.. I do
sudo /etc/init.d/apache2 reload
I GET...
 * Reloading web server config...                     
             [Mon Mar 13 11:50:09 2006] [warn]
NameVirtualHost *:0 has no VirtualHosts
[Mon Mar 13 11:50:09 2006] [warn] NameVirtualHost *:0
has no VirtualHosts
I'm lost...
I'd greatly appreciate it if someone could guide me to
fixing the problem.
Thanks in advance.
John
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech
    
    
More information about the clue-tech
mailing list