错误信息提示:
错误号:12142

错误原因:

错误SQL语句:
select * from user_skin where  find_in_set('sysai.net',replace(host,'|',','))

Warning: fopen(/error/2025-07-19.txt): failed to open stream: No such file or directory in /opt/lampp/htdocs/sysai/inc/datai.php on line 247
文件 2025-07-19.txt 不可写

sysai
『 333333 』
현재위치 : HOME > 자료실 > 333333
apache不重启绑定域名的办法(非Rewrite重写)
글쓴이 : 매니저 작성일 : 2017-03-14

apache不重启绑定域名的办法(非Rewrite重写)

  • 空间
 

win2003+apache的服务器,apache绑定域名需要重启,比较麻烦。

apache不重启绑定域名的办法(非Rewrite重写)

目录结构是这样规划的

D:/website    --- 所有的网站都放在这里
D:/website/域名后缀/域名
例如:
  1. 我现在需要绑定一个 http://www.domain.com/ 域名
       哪么 我只要建立 D:/website/com/domain.com 文件夹即可。
   2. 如果要绑定一个 http://www.domain.com.cn 域名
      我只要建立一个 D:/website/cn/domain.com.cn 文件夹即可。
默认 www.domain.com 和 domain.com 是绑定在同一个目录下面的。

下面是vhosts配置代码:(在Apache2.2下面测试通过)

# ------------ 解析www.* 站点 ---------------

   VirtualDocumentRoot "D:/website/%-1/%2+/"
   ServerName www.*
   ServerAlias www.*

# ------------ 解析通用站点 ---------------

   VirtualDocumentRoot "D:/website/%-1/%0/"
   ServerName *.localhost
   ServerAlias *


# ------------ 目录权限 ---------------

   Options Includes FollowSymLinks
   AllowOverride all
   Order allow,deny
   Allow from all

목록


홈으로 | 이용안내 | 이용약관 | 개인정보보호정책 | 제휴문의 | 질문과답변 | 자주하는 질문
Copyright © 2011 - 2014 SYSAI Work Group, All Rights Reserved 주소:길림성연길시,우편:133300 Version 3.0 Run Time 0.253s