apache本地域名ip重定向,使本机通过指定域名访问到指定ip路径。

1、apache配置apache/conf/httpd.conf  : 开启配置 Include conf/extra/httpd-vhosts.conf

2、apache配置apache/conf/extra/httpd-vhosts.conf :  

<VirtualHost *:80>
ServerAdmin webmaster@appjh51.ingenidev
DocumentRoot "D:/WWW/App_wxjh"
ServerName appjh51.com
ErrorLog "logs/appjh51.log"
CustomLog "logs/appjh51.log" common
</VirtualHost>

3、系统盘C:\Windows\System32\drivers\etc\hosts  :   添加 127.0.0.1       appjh51.com

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-12-11
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-01-02
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案