通达oa 绑定多个域名

我们是想用OA系统提供的WEB和数据库服务直接来装一个Discuz!论坛
然后用域名bbs.abc.com来访问这个论坛

 

nginx环境下,配置方法如下:
1、在myoa\nginx\conf\nginx.conf中添加以下内容:
#bbs 
server { 
     #bbs端口 
     listen 8081;      (说明:若主机名一样,则多个虚拟主机时添加多个listen 端口;反之,则添加多个主机名,用域名或者别名【注:host中可添加别名,在C:\Windows\System32\drivers\etc 里,编辑Hosts文件进行添加】)
     server_name localhost;    
     root D:\long\bbs;  
     index index.php index.html index.htm; 
     include  common.conf; 
     #charset gbk; 
     #access_log logs/host.access.log main; 
     #error_page 404  /404.html; 

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:8002 
     # 
     location ~ \.php$ { 
     fastcgi_pass  127.0.0.1:8002; 
     fastcgi_index index.php; 
     include  fastcgi.conf; 
  } 
}

2、service.ini中添加:

[OfficeFPM2]
Listen = 8002
ProcessNumber = 2
FastCGICmd = D:\MYOA\bin\php-cgi.exe -c D:\MYOA\bin\php_bbs.ini

3、在myoa\bin下拷贝一份该文件php.ini,并重命名为php_bbs.ini,并在该文件中extension=php_apc.dll前加“;”号注释掉该项,并修改

路径如下:
error_log = D:\MYOA\logs\php_error_bbs.log
include_path = ".;D:\long\bbs"
doc_root = D:\long\bbs

重启office_web服务生效。

posted @ 2018-10-23 22:19  小东2008  阅读(682)  评论(0编辑  收藏  举报