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

64 lines
1.5 KiB
Markdown
Raw Normal View History

2025-09-26 22:36:38 +08:00
---
sidebar_position: 6
sidebar_label: 'web目录浏览'
title: 'web目录浏览'
---
## 概述
web服务由 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)