<table class=”text”>
<tr class=”li1″><td class=”ln”><pre class=”de1″>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 ServerName test.com DocumentRoot “/home/test/www” DirectoryIndex index.php index.html
1.在配置文件httpd.conf(/etc/httpd/conf)中添加监听端口,如:Listen 8008 2.配置虚拟主机,如: ServerName test.com DocumentRoot /home/test/www DirectoryIndex index.php index.html AllowOverride all Require all granted 3.(注意防火墙)在iptables
<table class=”text”>
<tr class=”li1″>