Accessing Microweber
- 打开浏览器,访问:
http://<SERVER_IP> - 通过网页安装程序完成配置。
重要文件与目录
- Install directory:
/var/www/microweber - Apache config:
/etc/apache2/sites-available/microweber.conf - Storage:
/var/www/microweber/storage - Config:
/var/www/microweber/config - User files:
/var/www/microweber/userfiles
通过域名启用 SSL
1. 将你的域名指向服务器 IP。
2. 编辑 Nginx 配置并替换 ServerName <IP>; 使用您的域名(<your-domain>):
vim /etc/apache2/sites-available/microweber.conf
3. Install Certbot:
apt install -y certbot python3-certbot-apache
4. 运行以下命令,生成有效的 Let's Encrypt 证书:
certbot --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. 重启 Nginx 以应用更改:
systemctl restart apache2
6. 打开浏览器,访问: https://yourdomain.com
Notes
- 运行于 Apache(端口 80)。
.htaccess/ rewrite is enabled.- 控制 Microweber 中的用户注册:
Settings > Login & Register > Register options - Ensure
www-data拥有 Microweber 文件夹的完整所有权,并对 storage、config 和 userfiles 具有完全写入权限,以确保应用程序正常运行。