Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2018 18:17:04 +0100
From:      Vladimir Botka <vbotka@gmail.com>
To:        "James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
Cc:        byrnejb@harte-lyne.ca
Subject:   Re: Apache 2.4
Message-ID:  <20180209181704.4e44ffc8@planb.netng.org>
In-Reply-To: <0ff8c58ea6d2aa3454f1a4661e79ecd7.squirrel@webmail.harte-lyne.ca>
References:  <0ff8c58ea6d2aa3454f1a4661e79ecd7.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/qS06_yVvQYvtS0TFceWvLWE
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi James,

On Fri, 9 Feb 2018 11:44:04 -0500
"James B. Byrne via freebsd-questions"
<freebsd-questions@freebsd.org> wrote:

> I have Apache24 configured to load a virtual host. Viz:
> <VirtualHost 192.168.216.107:80>
>=20
>   ServerName    hll107.hamilton.harte-lyne.ca
> [...]
> 1. When I restart apache24 and do a netstat I do not see the virtual
> host ip bound to port 80:
>=20
> 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

FWIW. Apache24 with virtual hosts (no DAV) installed with my
Ansible role works for me. https://galaxy.ansible.com/vbotka/apache/
---------------------------------------------------------------------------
tcp4       0      0 *.80                   *.*                    LISTEN
tcp6       0      0 *.80                   *.*                    LISTEN
tcp4       0      0 *.443                  *.*                    LISTEN
tcp6       0      0 *.443                  *.*                    LISTEN
---------------------------------------------------------------------------

Here is the examples of a created file with virtual host. (By default http =
is
redirecred to https.)

# cat /usr/local/etc/apache24/extra/example.net.conf
<VirtualHost *:80>
ServerName example.net
DocumentRoot /usr/local/www/apache24/data/example.net/
Redirect permanent / https://example.net/
</VirtualHost>

<VirtualHost *:443>
ServerName example.net
DocumentRoot /usr/local/www/apache24/data/example.net/
SSLCertificateFile /usr/local/etc/letsencrypt/live/example.net/fullchain.pem
SSLCertificateKeyFile /usr/local/etc/letsencrypt/live/example.net/privkey.p=
em
</VirtualHost>

HTH, Cheers,

	-vlado
--

--Sig_/qS06_yVvQYvtS0TFceWvLWE
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJafdeQAAoJEJDRmRKO1E8Br84H/1HBTg7yFhg5F9NDFCIhVSax
TfNrEY85nqOXPuwM+sR0OJneBdRnoVqBWL24ojCGx1IVblb95HDkAK3mm6nNUzJs
z+/YNQR4T0gR1uYDHNYJDPZcOgvWcoPELPsBJi6y0kZ7Q4NVOiRQhi+v8ZWPaABh
GyRSfEUOYDPIBX7WL7/QLGui/25CrLUJTDViMfGYa+9avQvzVi/vNoBGUx9HedEe
xAjW2vY/4ZFWP+2sLH3Y6EAW+1E0s99ci1y7NTSsp8AqskMOA8pDkjh/VfFO7evS
RzxbIs6/gh615DrNrazTQsVDJkVkxXf59ivlm0o+NqiqHVewCYDKkCRYMxjYSxc=
=+MRN
-----END PGP SIGNATURE-----

--Sig_/qS06_yVvQYvtS0TFceWvLWE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180209181704.4e44ffc8>