From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 13:12:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7080716A4CE for ; Mon, 2 Feb 2004 13:12:36 -0800 (PST) Received: from newline.sacura.net (relay.sacura.net [193.108.170.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC7CD43D31 for ; Mon, 2 Feb 2004 13:12:32 -0800 (PST) (envelope-from vadimg@sacura.net) Received: from sacura.net (ppp-30-ip94.sacura.net [193.108.170.94]) by newline.sacura.net (8.12.10/8.12.3) with ESMTP id i12LBrvs083993 for ; Mon, 2 Feb 2004 23:11:58 +0200 (EET) (envelope-from vadimg@sacura.net) X-AntiVirus: Checked by Dr.Web (http://www.drweb.net) Message-ID: <401EBD1F.30707@sacura.net> Date: Mon, 02 Feb 2004 23:11:59 +0200 From: "V@dim" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.5) Gecko/20031006 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Apache + DNS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 21:12:36 -0000 I configured DNS (bind9) and Apache in FreeBSD 4.7 (IP: 192.168.1.1). My server name on FreeBSD - myserver.mydomain.com This server configuration: 1. /etc/resolv.conf domain mydomain.com nameserver 192.168.1.1 2. Bind config: I have domain: mydomain.com This domain hosts: server (192.168.1.1) - server and DNS-server (FreeBSD) site1 (192.168.1.1) site2 (192.168.1.1) xpcomp (192.168.1.10) 3. Apache config (httpd.conf): NameVirtualHost myserver.mydomain.com ServerName site1.mydomain.com ServerAlias site1 DocumentRoot /usr/local/proj/site1/html ErrorLog /usr/local/proj/site1/_log/error_log CustomLog /usr/local/proj/site1/_log/access_log common FreeBSD is a Virtual Mashine (based on VMWare Workstation 4) under WinXP. In Windows XP Lan config I wrote: DNS -> 192.168.1.1. My Computer settings: Name: xpcomp Workroup: MyWorkgroup DNS suffix: mydomain.com When I in browser load my local site with url http://site1/ I want, that browser automatically to the end of base url addes domain name in bind config. Examples: http://site1/ -> http://site1.mydomain.com http://site1/test/index.html -> http://site1.mydomain.com/test/index.html How can I make this think? What config i need to correct: apache, bind or something another? (I can show my bind config files)