bt寶塔皮膚配置 nginx+fancyindex漂亮目錄瀏覽帶搜尋功能

MokeyKing2008發表於2020-12-09
yum install gcc gcc-c++ wget ntpdate vim-enhanced autoconf automake openssl-devel pcre-devel unzip
wget http://nginx.org/download/nginx-1.18.0.tar.gz
wget -O fancyindex.zip https://github.com/aperezdc/ngx-fancyindex/archive/v0.5.1.zip
wget -O fancytheme.zip https://github.com/Naereen/Nginx-Fancyindex-Theme/archive/master.zip
tar -zxvf nginx-1.18.0.tar.gz
unzip fancyindex.zip
unzip fancytheme.zip
mv /root/Nginx-Fancyindex-Theme-master/fancyindex.conf /www/server/nginx/conf/

cd nginx-1.18.0
./configure --prefix=/www/server/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --user=nginx --group=nginx --add-module=../ngx-fancyindex-0.5.1
make
mv /www/server/nginx/sbin/nginx /www/server/nginx/sbin/nginx.bak
cp -r -f ./objs/nginx /www/server/nginx/sbin/
service nginx restart

#網站配置新增
include fancyindex.conf;

#複製檔案到網站根目錄
mv /root/Nginx-Fancyindex-Theme-master/Nginx-Fancyindex-Theme-light /www/server/nginx/html/Nginx-Fancyindex-Theme-light
 

相關文章