Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:litemage:disableusercontrolhtaccess [2017/04/18 19:01]
Jackson Zhang created
litespeed_wiki:cache:litemage:disableusercontrolhtaccess [2017/04/19 13:13]
Michael Alegre Moved content to litespeed_wiki:cache:litemage:troubleshooting:disable-litemage-on-off
Line 1: Line 1:
 ===== For Shared hosting, how to control LiteMage on/off and disable end-user control in .htaccess ===== ===== For Shared hosting, how to control LiteMage on/off and disable end-user control in .htaccess =====
-LiteMage can normally be enabled by placing "​LiteMage On" in .htacess ​under user's document root.+LiteMage can normally be enabled by placing "​LiteMage On" in .htaccess ​under the user's document root.
  
-For Magento shared hosting environment, ​system administrator ​may want to control LiteMage on/off from global level and disable the .htaccess LiteMage enable ability. You can place LiteMage Off in Server ​level of apache configuration,​ which literally diable ​end-user .htaccess ​LiteMage enabling abilityOnly System ​admin can enable it by placing "​LiteMage On" through ​apache ​virtual host configuration.+For Magento shared hosting environment, ​System Administrators ​may want to control LiteMage on/off from global level. ​This can be done by placing "LiteMage Off" ​in the server ​level of Apache Configuration. This will disable the end-user ​from enabling LiteMage via .htaccess. ​Now only System ​Administrators ​can enable it by placing "​LiteMage On" through ​Apache ​virtual host configuration.
  
-For example, ​you may use a cPanel server.+For example, ​if using a cPanel server:
  
-You can place the following into /​etc/​apache2/​conf.d/​includes/​pre_main_global.conf (EA4 Env). +One can place the following into "/​etc/​apache2/​conf.d/​includes/​pre_main_global.conf" ​(EA4 Environment). 
-  <​IfModule ​Litespeed>+<​code>​ 
 +  <​IfModule ​LiteSpeed>
   LiteMage Off   LiteMage Off
   </​IfModule>​   </​IfModule>​
 +</​code>​
  
-You might have server-level cache root setup there already. If soyou can just add "​LiteMage Off" ​inside of  +If the server-level cache root is already ​setupall that needs to be done is to add "​LiteMage Off" ​to the existing IfModule LiteSpeed block. 
-  +<​code>​ 
-  <​IfModule ​Litespeed>+  <​IfModule ​LiteSpeed>
   CacheRoot /​home/​lscache/​   CacheRoot /​home/​lscache/​
   LiteMage Off   LiteMage Off
   </​IfModule>​   </​IfModule>​
 +</​code>​
  
-The above configuration will disable all end-user .htaccess ​litemage enabling ability.+The above configuration will disable all end-users from being able to enable LiteMage via .htaccess.
  
-To enable LiteMage for certain virtual ​host System ​Admin will need to enable it through virtual host include ​file, such as /​etc/​apache2/​conf.d/​userdata/​std/​2_4/​$USER/​yourdomain.com/​litemage.conf,​ and place the following:+To enable LiteMage for certain virtual ​hosts, System ​Administrators ​will need to enable it through virtual host include ​files, such as the following: ​ "/​etc/​apache2/​conf.d/​userdata/​std/​2_4/​$USER/​yourdomain.com/​litemage.conf", and place the following: 
 +<​code>​
   <​IfModule LiteSpeed>​   <​IfModule LiteSpeed>​
   LiteMage On   LiteMage On
   </​IfModule>​   </​IfModule>​
 +</​code>​
  • Admin
  • Last modified: 2017/04/19 13:14
  • by Michael Alegre