Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[解决中] 局域网服务器(ComsenzEXP搭建)其他机器怎么浏览论坛?

[复制链接]
peter19870110 发表于 2010-5-4 22:04:37 | 显示全部楼层 |阅读模式
本帖最后由 peter19870110 于 2010-5-5 12:00 编辑

RT。。
以前用动网的是输入服务器的IP就可以了
discuz的是怎样的?能否在服务器上设置自定义的论坛地址?
如我想让局域网内电脑输入www.tdwsy.com就可以访问的话需要怎么做?
老谁家的小谁 发表于 2010-5-5 09:03:27 | 显示全部楼层
不是很明白你的问题

discuz和dz是一个东西
回复

使用道具 举报

 楼主| peter19870110 发表于 2010-5-5 11:18:13 | 显示全部楼层
是动网哈。。
回复

使用道具 举报

xiaoyuwxz 发表于 2010-5-5 11:25:57 | 显示全部楼层
可以在httpd.conf里新建虚拟主机并绑定域名进行访问
回复

使用道具 举报

 楼主| peter19870110 发表于 2010-5-5 11:31:38 | 显示全部楼层
本帖最后由 peter19870110 于 2010-5-5 12:03 编辑

有2个这个文件
需要改哪个?
修改哪个代码?
回复

使用道具 举报

 楼主| peter19870110 发表于 2010-5-5 11:40:00 | 显示全部楼层
本帖最后由 peter19870110 于 2010-5-5 11:49 编辑

http://faq.comsenz.com/viewnews-12
查了下这个,发现里面好多啊。。我是不是该选这个?
UCHome1.0 规则

Apache 独立主机用户:

RewriteEngine On
RewriteRule ^/(space|network)\-(.+)\.html$ /$1.php?Rewrite=$2 [L]
RewriteRule ^/(space|network)\.html$ /$1.php [L]
RewriteRule ^/([0-9]+)$ /space.php?uid=$1 [L]


打开G:\ComsenzEXP\Apache2\conf(有2个这个httpd.conf文件,不知道我选的这个对不对)
里面原来的代码:(我需要把上面的代码替换哪一段?)
ThreadsPerChild 250
MaxRequestsPerChild  0

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
    Satisfy all
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

ErrorLog logs/error.log

LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog logs/access.log common
</IfModule>

<IfModule alias_module>
</IfModule>

DefaultType text/plain

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
</IfModule>

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

### Discuz!EXP Web Server Settings

Listen 1108
ServerName localhost
ServerAdmin webmaster@domain.com
ServerRoot "g:\ComsenzEXP\Apache2"
DocumentRoot "g:\ComsenzEXP\wwwroot"
LoadModule php5_module "g:\ComsenzEXP\PHP5\php5apache2_2.dll"
LoadFile "g:\ComsenzEXP\PHP5\libmySQL.dll"
Loadfile "g:\ComsenzEXP\PHP5\php5ts.dll"
PHPIniDir "g:\ComsenzEXP\PHP5\php.ini"
  
  <Directory "g:\ComsenzEXP\wwwroot">
      Options Indexes FollowSymLinks
      Order Allow,Deny
      Allow from all
</Directory>
  
  Alias /icons/ "g:\ComsenzEXP\Apache2\icons\"
<Directory "g:\ComsenzEXP\Apache2\icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
  
  NameVirtualHost *:1108
<VirtualHost *:1108>
ServerName *
ServerAdmin webmaster@domain.com
DocumentRoot "g:\ComsenzEXP\wwwroot"
  
  <IfModule mod_rewrite.c>
RewriteRule ^(.*)/archiver/([a-z0-9-]+.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3
RewriteRule ^(.*)/space-(username|uid)-(.+).html$ $1/space.php?$2=$3
</IfModule>
  
   
</VirtualHost>
回复

使用道具 举报

 楼主| peter19870110 发表于 2010-5-5 11:53:59 | 显示全部楼层
是不是先插入下面代码
<IfModule mod_Rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
</IfModule>

然后把根据自己的UCHome1.0 规则把这个替换成下面这样?
<IfModule mod_Rewrite.c>
RewriteEngine On
RewriteEngine On
RewriteRule ^/(space|network)\-(.+)\.html$ /$1.php?Rewrite=$2 [L]
RewriteRule ^/(space|network)\.html$ /$1.php [L]
RewriteRule ^/([0-9]+)$ /space.php?uid=$1 [L]
</IfModule>
回复

使用道具 举报

xiaoyuwxz 发表于 2010-5-5 13:46:32 | 显示全部楼层
不是让添加伪静态规则,而是要添加以下这样的段来建虚拟主机


<VirtualHost *:80>

ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain

</VirtualHost>

<VirtualHost *:80>

ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain

</VirtualHost>
回复

使用道具 举报

 楼主| peter19870110 发表于 2010-5-5 14:10:31 | 显示全部楼层
本帖最后由 peter19870110 于 2010-5-5 19:12 编辑

<VirtualHost *:80>

ServerName www.domain.tld/
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain

</VirtualHost>

<VirtualHost *:80>

ServerName www.otherdomain.tld/
DocumentRoot /www/otherdomain

</VirtualHost>

红色的地方我都需要改吗?我需要改成什么,能说明下吗?
回复

使用道具 举报

 楼主| peter19870110 发表于 2010-5-5 19:15:35 | 显示全部楼层
第一次弄。。实在太菜
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-3 19:02 , Processed in 0.105830 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表