Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
litespeed_wiki:config:enable_quic:apache_configuration_with_cpanel [2017/07/27 13:17] Lisa Clarke created |
litespeed_wiki:config:enable_quic:apache_configuration_with_cpanel [2019/03/28 20:47] (current) Lisa Clarke [Disabling QUIC at the Virtual Host level] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to enable QUIC through Apache configuration with cPanel ===== | ====== How to enable QUIC through Apache configuration with cPanel ===== | ||
+ | |||
+ | To enable QUIC, there is no configuration change in LSWS. For control panel, QUIC is turned on by default for Apache HTTPS vhosts. | ||
+ | |||
+ | All user need to do is open UDP port 443. | ||
+ | |||
+ | HTTPS with trusted cert, | ||
+ | UDP port 443 open at the firewall. | ||
+ | |||
+ | The followings explan the directives could be possibly used but may not necessary at initial stage. | ||
+ | |||
+ | |||
+ | ====== Directive examples ===== | ||
+ | ===== Requirements ===== | ||
+ | * Must have QUIC enabled in GUI/conf | ||
+ | * Must use either Chrome or Opera with QUIC enabled | ||
+ | * Must **not** use self-signed certificates only trusted certificates will work | ||
+ | * Must have UDP Port 443 open | ||
+ | * QUIC will **not** work with a proxy front end like CloudFlare | ||
+ | * QUIC will only apply to https, not http | ||
+ | * QUIC can be enabled at the server level, listener level or virtual host level | ||
+ | |||
+ | ===== Configuration ===== | ||
If LSWS is reading your Apache configuration through cPanel you can use the a directive in that file to turn QUIC on or off at the server or vhost level. Add the following directive to the Apache configuration file. | If LSWS is reading your Apache configuration through cPanel you can use the a directive in that file to turn QUIC on or off at the server or vhost level. Add the following directive to the Apache configuration file. | ||
Line 7: | Line 29: | ||
When you set QuicEnable at the Apache server level, all vhosts will use that setting as their default. Vhosts level can not rewrite server level.\\ | When you set QuicEnable at the Apache server level, all vhosts will use that setting as their default. Vhosts level can not rewrite server level.\\ | ||
- | Please bear in mind that QUIC should only be used for HTTPS vhosts. | + | Please bear in mind that QUIC can only be used for HTTPS vhosts. |
==== Enabling QUIC at the Server Level ==== | ==== Enabling QUIC at the Server Level ==== | ||
- | * For EA4: Add following lines to ''/etc/apache2/conf.d/includes/pre_main_global.conf'' | + | For EA4: Add following lines to ''/etc/apache2/conf.d/includes/pre_main_global.conf'' |
<IfModule LiteSpeed> | <IfModule LiteSpeed> | ||
Line 17: | Line 39: | ||
==== Enabling QUIC at the Virtual Host level ==== | ==== Enabling QUIC at the Virtual Host level ==== | ||
- | * For EA4: Create a ''quic_vhosts.conf'' file in the''/etc/apache2/conf.d/userdata/'' then add following lines. | + | For EA4: Create a ''quic_vhosts.conf'' file in the''/etc/apache2/conf.d/userdata/'' then add following lines. |
<IfModule LiteSpeed> | <IfModule LiteSpeed> | ||
QuicEnable on | QuicEnable on | ||
</IfModule> | </IfModule> | ||
+ | | ||
+ | ==== Disabling QUIC at the Virtual Host level ==== | ||
+ | For EA4: Create a ''quic_vhosts.conf'' file in the ''/etc/apache2/conf.d/userdata/str/2_4/user/domain/'' then add following lines. | ||
+ | |||
+ | <IfModule LiteSpeed> | ||
+ | QuicEnable off | ||
+ | </IfModule> | ||
+ | |||
+ | For SSL website create ''quic_vhosts.conf'' in ''/etc/apache2/conf.d/userdata/ssl/2_4/<user>/<domain>''. | ||
+ | |||
+ | If you want to disable QUIC for account you can create ''quic_vhosts.conf'' in ''/etc/apache2/conf.d/userdata/ssl/2_4/<user>''. | ||
+ | |||
+ | After that you need to rebuild apache conf with: | ||
+ | ''/usr/local/cpanel/scripts/rebuildhttpdconf'' and restart Litespeed WebServer after that. |