peopleinside
I use Google Translate, I hope everyone can understand
I want to install two programs under one domain name.
a.com and a.com/flarum
a.com Install wordpress
a.com/flarum Install flarum
a.com//phb/public/ How can I set up? a.com/flarum
Server root

nginx.conf
server {
listen 443 ssl http2;
server_name a.com www.a.com;
ssl_certificate /etc/letsencrypt/live/a.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/a.com/privkey.key;
ssl_dhparam /etc/letsencrypt/live/a.com/dhparam.pem;
include global/ssl.conf;
access_log /var/log/nginx/a.com.access.log;
error_log /var/log/nginx/a.com.error.log error;
include global/header.conf;
root /usr/share/nginx/html/fy/blog;
location / {
index index.php;
try_files $uri $uri/ /index.php?$args;
location ~ \.php$ {
fastcgi_cache FY;
include global/fastcgi_set.conf;
include global/fastcgi_params.conf;
}
}
location /public {
root /usr/share/nginx/html/fy/phb;
index index.php;
try_files $uri $uri/ /public/index.php?$query_string;
location ~ \.php$ {
include global/fastcgi_params.conf;
}
}
}
server {
listen 80;
server_name a.com www.a.com;
return 301 https://$server_name$request_uri;
}