🔍
Apache代理配置:
<VirtualHost *:666>` `ServerName rz.cd.x0x.cn` `SSLEngine off` `SSLProxyEngine off` `#反向代理设置` `AllowEncodedSlashes NoDecode` `ProxyPass / http://localhost:8090/ nocanon` `ProxyPassReverse / http://localhost:8090/ nocanon` #SSLCertificateFile /etc/apache2/ssl/2_wp.cd.x0x.cn.crt #SSLCertificateKeyFile /etc/apache2/ssl/3_wp.cd.x0x.cn.key RewriteEngine On <Directory /> Options Indexes FollowSymLinks MultiViews AllowOverride all Order deny,allow Allow from all </Directory> `</VirtualHost>
二、cloudreve
🔍
三、DDNS
1-🔍
2-🔍ddns-go
四、frp内网穿透
🔍
五、兰空图床(Lsky Pro)
🛠 安装要求
PHP 版本 ≥ 5.6mysql 版本 ≥ 5.5PDO 拓展ZipArchive 支持fileinfo 拓展curl 拓展注:如果使用 FTP 功能,需要开启 PHP 的 FTP 拓展
🔍 安装教程
下载程序源码,上传至 web 运行环境,解压。设置运行目录为 public。配置 Rewrite 规则:
📌Nginx:
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
📌Apache代理配置:
lsky.conf
<VirtualHost _default_:80>
ServerAdmin webmaster@localhost
ServerName xxx.example.cn
DocumentRoot /var/www/lsky/public/
<Directory /var/www/lsky/public/>
Require all granted
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
</VirtualHost>
Apache 直接使用 .htaccess 即可
安装完成以后请设置 runtime 目录 0755 权限,如果你使用本地存储,public 目录也需要设置为 0755 权限
访问首页,未安装自动跳转至安装页面,根据页面提示安装即可。
📃 定制项路径
文件1:/lsky/application/index/view/common/base.html
定制左侧菜单项及顶部菜单项文件2:/lsky/application/index/view/admin/system/console.html
定制控制台底部显示
六、nextcloud网盘
🔍
下载程序源码,上传至 web 运行环境,解压。
设置代理
Apache代理配置
nextcloud.conf
Alias /nextcloud "/var/www/nextcloud"
<Directory /var/www/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
nextcloud-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName xxx.example.cn
DocumentRoot /var/www/nextcloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/apache2/ssl/xxx.example.cn.crt
SSLCertificateKeyFile /etc/apache2/ssl/xxx.example.cn.key
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
#Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
开源软件
一、HAlo博客