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 right direction?
My folder structure is as follows:
My folder structure is as follows:
├── cgi-bin
├── fcgi-bin
├── html
│ ├── app
│ │ └── folders
│ └── public
│ └── index.php
└── logs
├── access.log
└── error.log
I've got 2 static contexts configured:├── fcgi-bin
├── html
│ ├── app
│ │ └── folders
│ └── public
│ └── index.php
└── logs
├── access.log
└── error.log
URI: /
Location: $VH_ROOT/html
RewriteBase: /
RewriteRules:
Location: $VH_ROOT/html/public
RewriteBase: /public/
RewriteRules:
The error log shows the following:Location: $VH_ROOT/html
RewriteBase: /
RewriteRules:
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
URI: /publicRewriteRule (.*) public/$1 [L]
Location: $VH_ROOT/html/public
RewriteBase: /public/
RewriteRules:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
[REWRITE] strip base: '/' from URI: '/'
[REWRITE] Rule: Match '' with pattern '^$', result: 1
[REWRITE] Source URI: '' => Result URI: 'public/'
[REWRITE] Last Rule, stop!
[REWRITE] prepend rewrite base: '/', final URI: '/public/'
[REWRITE] strip base: '/public/' from URI: '/public/'
[REWRITE] Rule: Match '' with pattern '^(.*)$', result: 2
[REWRITE] stat( /usr/local/lsws/vhost/html/public/ ) failed
[REWRITE] stat( /usr/local/lsws/vhost/html/public/ ) failed
[REWRITE] Source URI: '' => Result URI: 'index.php?_url=/'
[REWRITE] append query string '_url=/'
[REWRITE] Last Rule, stop!
[REWRITE] prepend rewrite base: '/public/', final URI: '/public/index.php'
[REWRITE] Rule: Match '' with pattern '^$', result: 1
[REWRITE] Source URI: '' => Result URI: 'public/'
[REWRITE] Last Rule, stop!
[REWRITE] prepend rewrite base: '/', final URI: '/public/'
[REWRITE] strip base: '/public/' from URI: '/public/'
[REWRITE] Rule: Match '' with pattern '^(.*)$', result: 2
[REWRITE] stat( /usr/local/lsws/vhost/html/public/ ) failed
[REWRITE] stat( /usr/local/lsws/vhost/html/public/ ) failed
[REWRITE] Source URI: '' => Result URI: 'index.php?_url=/'
[REWRITE] append query string '_url=/'
[REWRITE] Last Rule, stop!
[REWRITE] prepend rewrite base: '/public/', final URI: '/public/index.php'