Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:litemage:troubleshooting:disable-litemage-on-off [2017/04/19 14:16]
Michael Alegre
litespeed_wiki:cache:litemage:troubleshooting:disable-litemage-on-off [2017/05/08 19:36] (current)
Jackson Zhang
Line 1: Line 1:
-===== Disabling LiteMage On/​Off ​Control In .htaccess =====+===== Disabling LiteMage On/Off .htaccess ​Control ​=====
  
 LiteMage can be enabled for a user by placing "​LiteMage On" in the .htaccess file under the user's document root. In shared hosting environments,​ this ability can be disabled globally to control which users are given access to LiteMage. LiteMage can be enabled for a user by placing "​LiteMage On" in the .htaccess file under the user's document root. In shared hosting environments,​ this ability can be disabled globally to control which users are given access to LiteMage.
Line 7: Line 7:
 For example, if using a cPanel server (EA4 Environment):​ For example, if using a cPanel server (EA4 Environment):​
  
-Add "​LiteMage Off" to the ''<​IfModule LiteSpeed>''​ block in ''/​etc/​apache2/​conf.d/​includes/​pre_main_global.conf''​. (Create this block if it does not yet exist)+Add "​LiteMage Off" to the existing ​''<​IfModule LiteSpeed>''​ block in ''/​etc/​apache2/​conf.d/​includes/​pre_main_global.conf''​. (Create this block if it does not yet exist)
  
 <​code>​ <​code>​
Line 17: Line 17:
 The above configuration will disable all end-users from being able to enable LiteMage via .htaccess. The above configuration will disable all end-users from being able to enable LiteMage via .htaccess.
  
-LiteMage can then be enabled selectively through virtual host include files, such as ''/​etc/​apache2/​conf.d/​userdata/​std/​2_4/​$USER/​yourdomain.com/​litemage.conf'',​ by adding the following block:+LiteMage can then be enabled selectively through virtual host include files, such as ''/​etc/​apache2/​conf.d/​userdata/​std/​2_4/​$USER/​yourdomain.com/​litemage.conf'' ​without ssl or ''/​etc/​apache2/​conf.d/​userdata/​ssl/​2_4/​$USER/​yourdomain.com/​litemage.conf''​ with ssl ( Please check cpanel documentation on[[https://​documentation.cpanel.net/​display/​EA/​Modify+Virtualhost+Containers+With+Include+Files|how to Modify Virtualhost Containers With Include Files]] for details) ​, by adding the following block:
 <​code>​ <​code>​
   <​IfModule LiteSpeed>​   <​IfModule LiteSpeed>​
  • Admin
  • Last modified: 2017/04/19 14:16
  • by Michael Alegre