How to rewrite those locations?

Discussion in 'General OpenLiteSpeed Discussion' started by gremlin32, May 3, 2018.

Tags:
  1. gremlin32

    gremlin32 New Member

    Hi, I'm new in lightspeed and going to migrate from nginx. What steps i need to done to get work this locations in litespeed at my project folder:
    1
    location ~* \.(?:json)$ {
    add_header Access-Control-Allow-Origin *;
    }
    2
    location / {
    try_files $uri $uri/ /index.php?$args;
    }
    3
    location /uploads/ {
    root /var/www/project;
    }
     
  2. Tishu

    Tishu Member

    Hello,

    Just to clear something - are you using Litespeed or OpenLitespeed?
     

Share This Page