Rewrite rule for subdomains and folders, litespeed don't save rules

#1
Hi all! I'm newbee in litespeed and apache, and read couple of articles here and in the google before but, it doesn't work's for me.
Please give me advice how to rewrite rules for litespeed within such nginx config:
location /uploads/ {
root /var/www/mysite;
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|woff)$ {
access_log off;
expires 360d;
try_files $uri =404;
}
}
location / {
try_files $uri $uri/ /index.php?$args;
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|woff)$ {
access_log off;
expires 360d;
try_files $uri =404;
}
}
server_name mysite.com *.mysite.com;
 
#2
I setup root folder:
/var/www/mysite.com/front/web
Need to rewqrite all request that match:
to the folder:
/var/www/mysite.com/uploads
I'm trying to setup in the "rewrite rules" such rule:
RewriteEngine On
RewriteRule "^/uploads/(.*)" "/var/www/mysite.com/uploads/$1"
But it doesn't works. :(
I do not believe that there is no person at this forum who knows the answer to such a simple question. :)
 
Top