Apache HTTP Server: Difference between revisions
m →HTTP/2 Support: Changed part stating prefork method is unavailable. |
m →openSUSE 15.4 specific: Added => to title |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 35: | Line 35: | ||
* Test your site using https:// | * Test your site using https:// | ||
* Remember that your browser will throw an error, it is safe to ignore it and add an exception. This will stop future re-occurrence. | * Remember that your browser will throw an error, it is safe to ignore it and add an exception. This will stop future re-occurrence. | ||
=== openSUSE =>15.4 specific === | |||
The following line needs editing as follows to allow TLS to function in <code>/etc/sysconfig/apache2</code>: | |||
APACHE_SERVER_FLAGS="SSL HTTP2" | |||
== HTTP/2 Support == | == HTTP/2 Support == | ||
| Line 46: | Line 51: | ||
* You must have a valid TLS certificate setup and working correctly. | * You must have a valid TLS certificate setup and working correctly. | ||
* You cannot use the prefork method of loading modules into Apache. Consider tabooing the <code>apache-prefork</code> package. The alternatives are worker and event. We are using event. Consequently: | * You cannot use the prefork method of loading modules into Apache. Consider tabooing the <code>apache-prefork</code> package. The alternatives are worker and event. We are using event. Consequently: | ||
* You cannot use the <code>mod-php7</code> package to load PHP into Apache. PHP-FPM must be configured and used instead. Trying to use it will disable HTTP/2. | * You cannot use the prefork <code>mod-php7</code> package to load PHP into Apache. PHP-FPM must be configured and used instead. Trying to use it will disable HTTP/2. | ||
To enable HTTP/2: | To enable HTTP/2: | ||
* In the software manager in YaST, you will need to make sure that <code>libnghttp2-14</code> shared library is installed. | * In the software manager in YaST, you will need to make sure that <code>libnghttp2-14</code> shared library is installed (Later versions of openSUSE have this installed already so just check). | ||
* Open a terminal window | * Open a terminal window | ||
* Type <code>sudo a2enmod http2</code>. This will enable the built in module in Apache. | * Type <code>sudo a2enmod http2</code>. This will enable the built in module in Apache. | ||
'''As of at least openSUSE 15.4, the following is already done by default''' | |||
* Open kwrite and open the file <code>/etc/apache2/httpd.conf</code> | * Open kwrite and open the file <code>/etc/apache2/httpd.conf</code> | ||
* At the end of the file add the following line: | * At the end of the file add the following line: | ||