ah ok... how bout this... if www.mydomain.com and jon.mydomain.com resides on the same computer(server) and have one public ip add then,
### httpd ### in your httpd.conf NameVirtualHost 192.168.0.1 <VirtualHost 192.168.0.1> DocumentRoot /home/your_www_path ServerName www.mydomain.com ServerAdmin [EMAIL PROTECTED] ErrorLog /home/your_path_log/error_log TransferLog /home/your_path_log/access_log DirectoryIndex index.php </VirtualHost> <VirtualHost 192.168.0.1> DocumentRoot /home/your_jon_path ServerName jon.mydomain.com ServerAdmin [EMAIL PROTECTED] ErrorLog /home/your_path_log/error_log_jon TransferLog /home/your_path_log/access_log_jon DirectoryIndex index.php </VirtualHost> ### named (internal) ### in db.mydomain.com www.mydomain.com IN A 192.168.0.1 jon.mydomain.com IN A 192.168.0.1 in db.192.168.0.1 1.0.168.192.in-addr.arpa IN PTR www.mydomain.com 1.0.168.192.in-addr.arpa IN PTR jon.mydomain.com ### iptables (firewall side) #### iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 80 -s 0.0.0.0/0 -j DNAT --to $your_web_server_ip:80 iptables -A FORWARD -p TCP -d $your_web_server_ip --dport 80 -s 0.0.0.0/0 -j ACCEPT ### named (external) ### in db.mydomain.com www.mydomain.com IN A your_public_ip. jon.mydomain.com IN CNAME www.mydomain.com. # if www and jon is on different servers then you have to # specify port on each host like # for standard www then port 80 # for your vhost use port 81 maybe some of our fellow plug'rs can do other tricks or idea on how to do it. hope i don't make things more complicated to you.... cheers, ian perez > isn't it dns is use to resolv ip to hostname? What I want is to have > company's web server that is facing directly the internet and at the same > time running another web server inside my secured LAN > > I already have my internal DNS working and I am able to browse my internal > web server locally, but I want my internal web server to be viewable by the > world _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
