From owner-freebsd-questions@freebsd.org Fri Feb 9 16:44:13 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D198F11BDE for ; Fri, 9 Feb 2018 16:44:13 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 074EA6C6F5 for ; Fri, 9 Feb 2018 16:44:12 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 402F3623A4 for ; Fri, 9 Feb 2018 11:44:06 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QuGm6ylzxq7o for ; Fri, 9 Feb 2018 11:44:04 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 110A462318 for ; Fri, 9 Feb 2018 11:44:04 -0500 (EST) Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 9 Feb 2018 11:44:04 -0500 Message-ID: <0ff8c58ea6d2aa3454f1a4661e79ecd7.squirrel@webmail.harte-lyne.ca> Date: Fri, 9 Feb 2018 11:44:04 -0500 Subject: Apache 2.4 From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 16:44:13 -0000 I have Apache24 configured to load a virtual host. Viz: ServerName hll107.hamilton.harte-lyne.ca DocumentRoot /usr/local/www/apache24/data/hll_dav/upload LogLevel debug ErrorLog /var/log/httpd/apache24/webdav/webdav_error.x.log TransferLog /var/log/httpd/apache24/webdav/webdav_access.x.log # For Testing without ssl # This traps anyone under the actual file-system root # Just in case. Order allow,deny allow from all Options Indexes MultiViews IndexOptions FancyIndexing AddDefaultCharset UTF-8 AuthType Basic AuthBasicProvider file AuthName ca.harte-lyne AuthUserFile /usr/local/etc/apache24/access.d/.htpasswd Require valid-user # mod_dav_fs Dav On # No Sever Minimum Timeout on locks - let WebDaV clients decide DAVMinTimeout 0 DAVDepthInfinity Off LimitXMLRequestBody 96000000 In httpd.conf I have these statements: ServerName hll108.hamilton.harte-lyne.ca:80 Listen 192.168.216.108:80 ErrorLog /var/log/httpd/apache24/httpd-error.log LogLevel debug AllowOverride none Require all denied DocumentRoot "/usr/local/www/apache24/data" Options Indexes FollowSymLinks AllowOverride None Require all granted DirectoryIndex index.html ErrorLog /var/log/httpd/apache24/httpd-error.log LogLevel debug CustomLog /var/log/httpd/apache24/httpd-access.log "common" include etc/apache24/virtual.d/*.conf.x Now the problems: 1. When I restart apache24 and do a netstat I do not see the virtual host ip bound to port 80: netstat -an | grep -i list netstat: kvm not available: /dev/mem: No such file or directory tcp4 0 0 192.168.216.108.80 *.* LISTEN tcp4 0 0 127.0.107.1.25 *.* LISTEN tcp4 0 0 192.168.216.107.22 *.* LISTEN tcp4 0 0 127.0.107.1.53 *.* LISTEN 2. When I attempt to connect to the virtual host ipv4 address 192.168.216.107 I get this instead of a directory listing: fetch -o - http://192.168.216.107 - 0% of 45 B 0 Bps

It works!

- 100% of 45 B 293 kBps 00m00s And in the logs I see this ll -rw-r--r-- 1 root wheel 0 Feb 9 11:07 httpd-access.log -rw-r--r-- 1 root wheel 0 Feb 9 11:07 webdav_access.x.log -rw-r--r-- 1 root wheel 0 Feb 9 11:07 webdav_error.x.log There are no entries made at all. What is going on? I do not care that I get the default site content for the main host but why is the virtual host being redirected there as well. And where is the listener for 192.168.216.107:80? Why do I not see that in Netstat? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3