设定端口和 虚拟目录 在server.xml <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional informat
一 创建虚拟目录 环境准备: 系统:CentOS 7.4 软件:httpd-2.4.29 1.编辑主配置文件,添加命令运行子配置文件 vi /usr/local/httpd/conf/httpd.conf Include conf/conf.d/*.conf 2.创建虚拟目录配置文件 vi /usr/local/httpd/conf/conf.d/vdir.conf Alias /doc/ "/usr/share/doc/"