D Django New Member Aug 23, 2011 #1 Aug 23, 2011 #1 Hello, Please help me to enable mod_setenvif in LiteSpeed 4. I'm using LiteSpeed with DirectAdmin. Thanks in advance Last edited: Aug 23, 2011
Hello, Please help me to enable mod_setenvif in LiteSpeed 4. I'm using LiteSpeed with DirectAdmin. Thanks in advance
W webizen Well-Known Member Aug 24, 2011 #2 Aug 24, 2011 #2 lsws does not support mod_setenvif directly but you can set env through rewrite rule such as: RewriteRule (.*) - [env=myenv:1] Click to expand...
lsws does not support mod_setenvif directly but you can set env through rewrite rule such as: RewriteRule (.*) - [env=myenv:1] Click to expand...
D Django New Member Aug 24, 2011 #3 Aug 24, 2011 #3 webizen said: lsws does not support mod_setenvif directly but you can set env through rewrite rule such as: Click to expand... Thanks. I try with htaccess file look like below Code: SetEnvIfNoCase User-Agent .*iPhone.* iDevides SetEnvIfNoCase User-Agent .*iPad.* iDevides <Limit GET POST> deny from all Allow from env=iDevides </Limit> RewriteRule (.*) - [env=iDevides:1] I think I was wrong in sth 'cause it didn't works
webizen said: lsws does not support mod_setenvif directly but you can set env through rewrite rule such as: Click to expand... Thanks. I try with htaccess file look like below Code: SetEnvIfNoCase User-Agent .*iPhone.* iDevides SetEnvIfNoCase User-Agent .*iPad.* iDevides <Limit GET POST> deny from all Allow from env=iDevides </Limit> RewriteRule (.*) - [env=iDevides:1] I think I was wrong in sth 'cause it didn't works
M mistwang LiteSpeed Staff Aug 24, 2011 #4 Aug 24, 2011 #4 Try rewrite rule like RewriteCond %{USER_AGENT} !(iPhone|iPad) RewriteRule (.*) - [F]
D Django New Member Aug 24, 2011 #5 Aug 24, 2011 #5 mistwang said: Try rewrite rule like RewriteCond %{USER_AGENT} !(iPhone|iPad) RewriteRule (.*) - [F] Click to expand... Thank you! I try with below and it works like a charm. Code: RewriteEngine on RewriteCond %{HTTP_USER_AGENT} !(iPhone|iPad|iPod) RewriteRule (.*) - [F] By the way, how can I use mod_h264_streaming?
mistwang said: Try rewrite rule like RewriteCond %{USER_AGENT} !(iPhone|iPad) RewriteRule (.*) - [F] Click to expand... Thank you! I try with below and it works like a charm. Code: RewriteEngine on RewriteCond %{HTTP_USER_AGENT} !(iPhone|iPad|iPod) RewriteRule (.*) - [F] By the way, how can I use mod_h264_streaming?
N NiteWave Administrator Aug 24, 2011 #6 Aug 24, 2011 #6 By the way, how can I use mod_h264_streaming? Click to expand... it's already there, from 4.1 refer wiki: http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed:wiki:feature:mp4_streaming
By the way, how can I use mod_h264_streaming? Click to expand... it's already there, from 4.1 refer wiki: http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed:wiki:feature:mp4_streaming