64 lines
1.5 KiB
Markdown
64 lines
1.5 KiB
Markdown
---
|
||
sidebar_position: 6
|
||
sidebar_label: 'web目录浏览'
|
||
title: 'web目录浏览'
|
||
---
|
||
|
||
## 概述
|
||
|
||
web服务由 1panel 管理的网站配置提供,
|
||
|
||
跑在[Ubuntu虚拟机-server](../machine-info/server-Ubuntu-24.04.01.md)里,
|
||
|
||
## 关键配置
|
||
|
||
具体的配置是在配置文件中手动编辑设置的,
|
||
|
||

|
||
|
||
使用的路径是:
|
||
|
||
```
|
||
/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 (挂载到容器内)
|
||
```
|
||
|
||

|
||
|
||

|
||
|
||

|