0

目录结构

tree  /var/www/html/mydoc
/var/www/html/mydoc
├── build
│   ├── doctrees
│   └── html
│       ├── index.html
│       ├── _sources
│       │   ├── index.txt
│       ├── _static
├── make.bat
├── Makefile
└── source
    ├── conf.py
    ├── index.rst
    ├── _static
    ├── _templates

我的apache2设置(debian上,不是centos).

sudo cat  /etc/apache2/sites-enabled/mydoc.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/mydoc/build/html
<Directory /var/www/html/mydoc/build/html>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>

我的需求:
1.不对mydoc文件夹做任何改变
2.输入127.0.0.1/mydoc 可以显示 /var/www/html/mydoc/build/html/index.html.

当前的设置下,输入127.0.0.1/mydoc,报错,找不到东西

luofeiyu 1.5k
2019-05-04 提问
0 个回答

撰写答案

推广链接