joglomedia / LEMPer

LEMPer Stack is terminal-based LEMP / LNMP ( Linux, Nginx, MariaDB, PostgreSQL, MongoDB, Redis, Memcache, PHP, Secure FTP ) auto installer and virtual host manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
https://lemper.cloud/
GNU General Public License v3.0
208 stars 56 forks source link

Add vhost support for xenforo #149

Open chutuananh2k opened 1 year ago

chutuananh2k commented 1 year ago

Xenforo vhost support

Source: https://www.nginx.com/resources/wiki/start/topics/recipes/xenforo/

Example: `server {

server_name     localhost;

root    html/xenforo;
index   index.php index.html;

location / {
    try_files $uri $uri/ /index.php?$uri&$args;
}

location ~ \.php$ {
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include         fastcgi_params;
}

}`