首页 > 代码库 > lamp----4 虚拟目录

lamp----4 虚拟目录

301 mkdir /ggg
302 echo "<h1>gggggggg</h1>" > /ggg/index.html
303 cat /ggg/index.html
304 ll -d -Z /web/
305 ll -d -Z /web/upload/
306 chcon -R -t httpd_sys_rw_content_t /ggg/

 vi /etc/httpd/conf/httpd.conf

Alias /ggg "/ggg"
<Directory "/ggg">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

 

技术分享

 

技术分享

lamp----4 虚拟目录