documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Apache as front-endfor Plone: NameVirtualHost will be removed in the next (Apache) release

Open dbitouze opened this issue 6 years ago • 12 comments

The (Plone 5) documentation about Apache as front-end Web Server for Plone tells you to add a virtual host configuration file /etc/apache2/sites-enabled/yoursite.conf containing (among other things):

NameVirtualHost *

But, when Apache is restarted, the following warning appears:

AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/...

Probably the documentation should be revised here but I've no idea of what should written instead (I'm quite ignorant about Apache).

dbitouze avatar Sep 20 '19 13:09 dbitouze

Third hit in DDG.

The docs should also use the latest version of Apache 2.4.x. 2.2.x is no longer maintained and has issues. However I don't know anyone who uses Apache for a front end web server for Plone these days who would take on the maintenance of this page of the docs.

stevepiercy avatar Sep 20 '19 18:09 stevepiercy

However I don't know anyone who uses Apache for a front end web server for Plone these days who would take on the maintenance of this page of the docs.

Does it mean Nginx may be a better choice?

dbitouze avatar Sep 20 '19 19:09 dbitouze

No. It means use whatever works for you and your situation. That said, nginx is more popular and has lots more documentation in the Plone community, including in automated deployments.

stevepiercy avatar Sep 20 '19 19:09 stevepiercy

Also I would suggest you take this to the community forum to get a broader perspective, because fewer people monitor the docs repo than exist in the community.

stevepiercy avatar Sep 20 '19 19:09 stevepiercy

apach 

---Original--- From: "Steve Piercy"<[email protected]> Date: Sat, Sep 21, 2019 03:28 AM To: "plone/documentation"<[email protected]>; Cc: "Subscribed"<[email protected]>; Subject: Re: [plone/documentation] Apache as front-endfor Plone: NameVirtualHost will be removed in the next (Apache) release (#1097)

No. It means use whatever works for you and your situation. That said, nginx is more popular and has lots more documentation in the Plone community, including in automated deployments.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ataoleo avatar Sep 20 '19 23:09 ataoleo

@stevepiercy

Also I would suggest you take this to the community forum to get a broader perspective, because fewer people monitor the docs repo than exist in the community.

Of course, thanks anyway for the hints.

dbitouze avatar Sep 22 '19 07:09 dbitouze

@ataoleo Your message seems to be incomplete.

dbitouze avatar Sep 22 '19 07:09 dbitouze

@dbitouze nginx is definitely more popular nowadays for Plone installs. I have not seen a production deployment that uses Apache in quite some time. If you look in the https://github.com/plone/ansible-playbook the current best practice is to use nginx. However if someone is able to update the Apache section in our docs that would be great!

tkimnguyen avatar Sep 22 '19 14:09 tkimnguyen

@tkimnguyen Unfortunately, my OS (Linux Mageia 7) seems to not be supported:

We generally support relatively current CentOS and Debian/Ubuntu environments. Versions currently supported are Ubuntu 18.04 (Bionic) LTS, 16.0.4 (Xenial) LTS, Ubuntu 15, Debian jessie, Debian stretch, and CentOS 7.

dbitouze avatar Sep 22 '19 19:09 dbitouze

@tkimnguyen Moreover, I'm using Plone 5.2 with Python3 and I don't know if it is compatible with the fact:

Ansible requires that the target server have a recent Python 2.x on the server.

dbitouze avatar Sep 22 '19 19:09 dbitouze

We just redeployed a lot of Foundation servers with the playbook so maybe that part of the docs is just out of date.

If your OS or distro isn’t on the list you can still follow something like the https://github.com/plone/simple-plone-buildout maybe

tkimnguyen avatar Sep 22 '19 21:09 tkimnguyen

@tkimnguyen

We just redeployed a lot of Foundation servers with the playbook so maybe that part of the docs is just out of date.

I reloaded the corresponding page but I didn't see any update.

If your OS or distro isn’t on the list you can still follow something like the https://github.com/plone/simple-plone-buildout maybe

This seems to not be adapted to my Linux Mageia server:

For UNIX based operating systems the Plone unified installer is the preferred method.

dbitouze avatar Sep 23 '19 12:09 dbitouze