I have a main app (xenforo) on the website root directory, but also have a wordpress installation in a subfolder, and this is the config:
vHost: (only relevant parts)
scripthandler {
add lsapi:movil6822 php
}
extprocessor movil6822 {
type lsapi
address UDS://tmp/lshttpd/movil6822.sock
maxConns 300
env LSAPI_CHILDREN=200
initTimeout 600
retryTimeout 0
persistConn 1
pcKeepAliveTimeout 1
respBuffer 0
autoStart 1
path /usr/local/lsws/lsphp80/bin/lsphp
extUser movil6822
extGroup movil6822
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 500
procHardLimit 600
}
context /blog {
location /home/$VH_NAME/public_html/blog
phpIniOverride {
php_value auto_prepend_file "/home/example.com/public_html/blog/wp-content/nfwlog/ninjafirewall.php"
}
}
subfolder “/blog” .htaccess (only relevant parts)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /.* /blog/index.php [L]
</IfModule>
# END WordPress
May be I miss something related with the main .htaccess under “/” or redirect rules at cyberpanel for that folder, it takes several seconds to proccess a page in wordpress while in other wordt server it takes miliseconds. (cache help but I need to optimize it prior caching).
Kind regards



