location ~ ^/bbs/.+\.php$ {
alias /home/www/esotalk/;
rewrite /bbs/(.*\.php?) / break;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/www/esotalk$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/bbs($|/.*) {
alias /home/www/esotalk/;
index index.php index.html;
}
Configuration is as above,
The program is esoTalk, the file is placed in /home/www/esotalk/,
The installation file is entered. When accessing /bbs, it should jump to /bbs/?p=install/info, but it jumps to /?p=install/info,
Looking for a solution, thank you.
If I remember correctly, it should be like this
Just use server_name to identify different second-level domain names.
location ~ ..php(/.)*$ {
# This location rule is for typecho.
}