Loading...

Administrator
03-23 17:39

Apache添加虚拟主机-端口

# 监听8080端口
Listen 8080
# *号代表任意ip,8080为运行在哪个端口上
<VirtualHost *:8080>
  # 网站根路径
  DocumentRoot /html/wordpress
  # 服务器名
  ServerName localhost
  # 不是很懂为什么这里还要再写一遍路径
  <Directory /html/wordpress>
    # 允许所有人访问
    Require all granted
  </Directory>
</VirtualHost>
0