context

  1. EagleDotNet

    NGINX reverse proxy header to openlitespeed

    how i can add NGINX reverse proxy header to openlitespeed ? location / { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header CF-Conncting-IP $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host...
  2. K

    LSAPI context doesn't work

    Once, I create a new Context in a Virtual Host and fill in the mandatory fields URI and LSAPI App and the URI matches the URI of the files I want to cover in this context, the PHP scripts do not execute anymore and instead an empty response with HTTP status code 500 is returned in the browser...
  3. S

    Use context for different PHP version

    Hi there! I'm trying something that I don't know if already feasible with OLS and I don't find much good documentation about. I have one wordpress accesible via domainA.cat which is executed with PHP8.2 and PHP execution user is sense9761. Then I have one Laravel installed in another server...
  4. D

    Password Protection for Virtual Location and Overwriting Rules

    I have for my php application a virtual location "/backend/" which I like to have password protected. I also using "rewrite" rules at the root context so the requests get routed to my "/index.php". I noticed when I have a root context "/" with rewrite rules the "Realm" protected context...
  5. S

    context proxy giving 403 error

    I have added this context when I access my domain.com/webmail it gives a 403 error please check my conf is write or not context /webmail { type proxy handler webmail addDefaultCharset off } extprocessor webmail { type proxy...
  6. naidutrk

    access denied for fast cgi URI

    Trying to add a fast cgi application and getting "access denied" and 403 error when URI is accessed. I registered my fast cgi app under external app. filled all requisite parameters. I added a context type fast cgi and added URI and selected the external app. I started the app in the...
  7. artertendean

    Virtual Host Context

    How can I use same path in the virtual host context? For example, I want to serve static files in /, but my / was used by my App Server, so I can't use that. I need to make a new context with a different path like /static/ to serve my static file. Is there any way that I can serve App...
  8. B

    Problem with changing static context location

    Hi. I'd like to ask a question about a problem that I've been facing with OpenLiteSpeed. Here's the full problem. So I'm running a deployment script on my VM. When there's new version of the app, the scripts runs this sequence: Create a backup folder for the current production web folder...
  9. IndraprasthaDesign

    Node.Js Website stalling after MongoDB module required

    I created a website using the normal CyberPanel options and edited the context menue in OLS (:7080) to run node. The website runs fine but the moment I try to connect it with my MongoDB instance either using Mongoose or the native MongoDB Driver, the website stalls. I can't access the error...
  10. Y

    Whitelist admin-ajax.php from Realm auth

    Hi, I have protected the wp-admin directory by following the below method but some of my plugins needs admin-ajax.php file to accessible without authentication. How can I exclude it from the static Context? https://openlitespeed.org/kb/user-authentication-through-realms/ Any help will be...
  11. slowaways

    Help sub-URIs in Context of type Proxy

    I created the configuration for External App in my Virtual Host: Name * : NodeJS Address * : localhost:3000 And the configuration for Context with type "Proxy" URI *: / Web Server *: [VHost Level]: NodeJS Ok... When acessing the sub-URI "/foo/bar" The proxy point to localhost:3000/foo/bar and...
  12. slowaways

    Access-Control-Allow-Origin Multiple Origin Domains

    Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header in OpenLiteSpeed? I try this code in Rewrite but without success: SetEnvIf Origin "http(s)?://(www\.)?(domain1.example|domain2.example)$" AccessControlAllowOrigin=$0$1 Header add...
  13. L

    Example vhost - Getting upload progress bar to work

    In the Example vhost you have a pop-up that let's us test file upload capabilities. The upload itself works fine but I cannot get the progress bar to work. I get the error: "ERROR -- uploadProgress module not enabled?" At first I thought this had to do with the uploadprogress module for PHP...
  14. A

    Context help needed

    I've recently installed OpenLiteSpeed and have been trying to transfer everything over from a shared host. I'm trying to turn my .htaccess files into working contexts but haven't been able to work out how to do so, if I visit my website it always returns a 404. Is anyone able to point me in the...
Top