Iīve been trying for about 2 weeks setup a web server to host websites.
Iīm using:
fedora 2 + apache 2.0.51 + BIND 9.2.4
But i think the problem is with apache.
When i setup some virtual hosts like this:
Code:
Listen 80
NameVirtualHost 192.168.2.55
<VirtualHost 192.168.2.55>
ServerName tec.com
DocumentRoot "/var/www/html/"
<Directory /home/tec/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
</Directory>
</VirtualHost>
<VirtualHost 192.168.2.55>
DocumentRoot "/home/bur/public_html/"
ServerName bur.com
<Directory "/home/bur/public_html/">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
and go to bur.com it opens e 1st one (tec.com), isnīt this strange??
I even thought it was a 2.0.49 bug, but it doesnīt look like
Help me please, please..........I tried with no success RTFM and some examples on the web.
BINS seams to work fine, i even tested it in ww.dnsreport.com
[root@ns conf]# nslookup
> set q=any
> tec.com
Server: 192.168.2.55
Address: 192.168.2.55#53
tec.com mail exchanger = 1 mail.tec.com.
tec.com text = "v=spf1 mx ptr ~all"
tec.com
origin = ns.moz.com
mail addr = root.tec.com
serial = 2004100200
refresh = 7200
retry = 3600
expire = 604800
minimum = 38400
tec.com nameserver = ns.moz.com.
Name: tec.com
Address: 196.46.2.xx
note that my machine is behind a router and requests to 196.46.2.xx in ports 22, 80, 53 are forwarded to 192.168.2.55
[root@ns root]# httpd -S
VirtualHost configuration:
196.46.2.xx:80 is a NameVirtualHost
default server mo.co.mz (/etc/httpd/conf/httpd.conf:1034)
port 80 namevhost mo.co.mz (/etc/httpd/conf/httpd.conf:1034)
port 80 namevhost tec.com (/etc/httpd/conf/httpd.conf:1042)
port 80 namevhost bur.com (/etc/httpd/conf/httpd.conf:1053)
Syntax OK
Thanks for any help again