Virtual directory?

#1
Hi there,

I'm testing OpenLiteSpeed with aaPanel on Ununtu 20.
aaPanel does not have the OpenLiteSpeed gui, so I only have access to the config file.

Everything's fine, expect but I need to create a number of virtual dirs so that:

www.mydomain.com
is using the
/www/wwwroot/mydomain.com/public/
directory

BUT

www.mydomain.com/forum/
is using the
/www/wwwroot/mydomain.com/forum/
directory

How can I do that?

Thanks
Alex
 

Cold-Egg

Administrator
#2
You can add context to your virtual host configuration like so
Code:
context /forum/  {
  location                /www/wwwroot/mydomain.com/forum/ 
  allowBrowse             1
  indexFiles              index.php

  accessControl  {
    allow                 *
  }

  rewrite  {
    enable                0
    inherit               0

  }
  addDefaultCharset       off

  phpIniOverride  {

  }
}
 
Top