From owner-freebsd-questions@freebsd.org Fri Feb 9 17:16:09 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 5E3BAF14447 for ; Fri, 9 Feb 2018 17:16:09 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 022B26DF6E for ; Fri, 9 Feb 2018 17:16:08 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-yw0-x22d.google.com with SMTP id x62so5576461ywg.11 for ; Fri, 09 Feb 2018 09:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=U6oCisGi2HhiwTphve9ENheXlMKnUqgvVwwV+9uTMhw=; b=eC5FBPL3HJHLSeXgmmI2u0Eou+utvQNwO2rdf8ugN0wFngC+gVexQ6y4+9g70SueH6 wVvh1WAVj8LjIs3H4rMpSRcCE2c7WCn/T25XvYEwl6gjXS6nIPesFKcCdOqeeITQXUcN Bj1yJ/V0Ne9KnTkgBcnf/K5BIwoq6Hv4sQisk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=U6oCisGi2HhiwTphve9ENheXlMKnUqgvVwwV+9uTMhw=; b=qc6kpLMgScG42vjcei0j/ST93NfXPObb9pIF1qqmYKdy+IrPBOQYLFD8/0iwqr9erE Z1WYWli9gbtbSpuDA0xMYnP4hR+knwoXhPxeW15b4eW33qqc4RVhN7k3+mrg5WOCKOpw hVeEd1jWkfcpDHWSx3Ddw/O1/wPtp3DeOE0K8kTr4MkigZnSd7GL0D6waEeGzlt8BmMr cwanaYJMutWqA4P5FT1ERbRre7ZqMVysraVI8TYzpKPpFfJlyKeRiJJH8gYjdq4rbL2B pHEaJhcZwMTkqI581nJNmRqDnzaU46eei5ev6IjM2tColYxFmeRNn5mpGnY2XGu929Ba wBvA== X-Gm-Message-State: APf1xPBFzZaJJ0rHexI/PljIWVGeQm79rDKfQJBi6G1Nj6JdkJBRD8lj 7xcIA2OAqXYcMR1cskwFCz3pjaJBfHr/NXagUYlhfg== X-Google-Smtp-Source: AH8x227RGmNy7+aQKH6UBI0QSOFTX84eTPKRuS179Lgyp10KWQDGW79DmONoeM4Rs3weNJhxBEctohLFwdqB76MS4Tg= X-Received: by 10.129.38.214 with SMTP id m205mr2510643ywm.436.1518196567542; Fri, 09 Feb 2018 09:16:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.139.142 with HTTP; Fri, 9 Feb 2018 09:16:06 -0800 (PST) In-Reply-To: <0ff8c58ea6d2aa3454f1a4661e79ecd7.squirrel@webmail.harte-lyne.ca> References: <0ff8c58ea6d2aa3454f1a4661e79ecd7.squirrel@webmail.harte-lyne.ca> From: Mario Lobo Date: Fri, 9 Feb 2018 14:16:06 -0300 Message-ID: Subject: Re: Apache 2.4 To: byrnejb@harte-lyne.ca Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 17:16:09 -0000 Hi; 2018-02-09 13:44 GMT-03:00 James B. Byrne via freebsd-questions < freebsd-questions@freebsd.org>: > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > Hi; I'm not sure about this but I believe that for apache to run on different IPs you have to have different instances of it. You can change a virtualhost port but not the Ip on which the instance of apache is running. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]