Files
huse-lab/docs/ops-doc/entrance-info/web-explorer.md

66 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_position: 6
sidebar_label: 'web目录浏览'
title: 'web目录浏览'
---
## 概述
web服务由 1panel 管理的网站配置提供,
跑在[Ubuntu虚拟机-server](../machine-info/server-Ubuntu-24.04.01.md)里,
> 登录操作系统shell和1panel面板详见[Ubuntu虚拟机-server](../machine-info/server-Ubuntu-24.04.01.md)
## 关键配置
具体的配置是在配置文件中手动编辑设置的,
![image-20250926222405619](https://sayurinana-aliyun-oss.oss-cn-beijing.aliyuncs.com/auto-upload-img-hub/huse-lab/202509262224328.png)
使用的路径是:
```
/www/res
```
但是这个路径不是真实的虚拟机的文件系统路径,
这个位置的文件来自[袁观杰的主机](../machine-info/workstation-s14.md)的:
```
D:\classification\share
```
这个位置通过VMware的共享文件夹功能映射到虚拟机中
```
/mnt/hgfs/D/classification/share
```
把这个虚拟机路径配置为1panel使用的web服务容器openresty的挂载卷最后得到在openresty容器中的位置为
```
/www/res/public
```
即:
```
D:\classification\share (物理机)
====== >>>
/mnt/hgfs/D/classification/share (共享到虚拟机)
====== >>>
/www/res/public (挂载到容器内)
```
![image-20250926222305625](https://sayurinana-aliyun-oss.oss-cn-beijing.aliyuncs.com/auto-upload-img-hub/huse-lab/202509262223768.png)
![image-20250926221525604](https://sayurinana-aliyun-oss.oss-cn-beijing.aliyuncs.com/auto-upload-img-hub/huse-lab/202509262223951.png)
![image-20250926221604255](https://sayurinana-aliyun-oss.oss-cn-beijing.aliyuncs.com/auto-upload-img-hub/huse-lab/202509262223983.png)