Daniel Bareiro wrote:
> Marco Stoecker wrote:
> > I do have the same issue. I disabled the default config in
> > "sites-enabled" (which in fact removed the symbolic link to the
> > 000-default.conf in "sites-available") and did a restart of apache, but
> > still the default page is showing up. I there another way to disable the
> > default site? I'd like to have only the mailman site enabled.
>
> Thanks for confirm the behavior that I had mentioned. I don't remember
> this happening with Apache 2.2.22 on Debian Wheezy. So at the beginning
> of this thread I had asked whether it is likely that this configuration
> is compiled into Apache.
I cannot reproduce the behavior that you have reported. I had
previously tested on my Sid system. I just now debootstrap'd a
pristine Jessie 8 system and tested and apache2 is not listening to
port 80 after performing the following configuration which was
previously discussed in this thread.
Ensure that no web server is running in the host environment.
service apache2 stop
service nginx stop
service ... stop # ... any other installed web servers ...
wget -O/dev/null -S http://127.0.0.1/
--2015-05-05 17:01:51-- http://127.0.0.1/
Connecting to 127.0.0.1:80... failed: Connection refused.
... Good. No web servers are running as verified above. ...
Then set up a pristine test case system in a chroot.
debootstrap jessie /srv/chroot/jessie http://http.debian.net/debian
mount -o bind /proc /srv/chroot/jessie/proc
chroot /srv/chroot/jessie su -
apt-get install apache2
ln -sfn ../sites-available/default-ssl.conf /etc/apache2/sites-enabled/000-default.conf
a2enmod ssl
sed --in-place '/^Listen 80/s/^/# /' /etc/apache2/ports.conf
service apache2 restart
At that point apache is running. It is not listening on port 80.
# wget -O/dev/null -S http://127.0.0.1/
--2015-05-05 17:01:51-- http://127.0.0.1/
Connecting to 127.0.0.1:80... failed: Connection refused.
It is listening on port 443 with ssl.
# wget -O/dev/null -S -q --no-check-certificate https://127.0.0.1/
HTTP/1.1 200 OK
Date: Tue, 05 May 2015 23:01:14 GMT
Server: Apache/2.4.10 (Debian)
Last-Modified: Tue, 05 May 2015 22:47:53 GMT
ETag: "2b60-5155d780793dc"
Accept-Ranges: bytes
Content-Length: 11104
Vary: Accept-Encoding
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html
Please double check and ensure that you have accomplished all of the
required steps again. I feel certain that one of them has been left
out.
If you still think there is a problem then try the above steps to
reproduce it using a pristine system. Then compare the pristine
environment to the problem environment.
Bob
Attachment:
signature.asc
Description: Digital signature