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

 找回密码
 立即注册
搜索

谁把httpd.conf给我一个

 关闭 [复制链接]
lan 发表于 2003-8-13 09:45:35 | 显示全部楼层 |阅读模式
完整的,带虚拟主机的配置的。别给我配置方法!谢谢
要文件
回复

使用道具 举报

lm92 发表于 2003-8-13 09:56:12 | 显示全部楼层
别人的路径和你的路径不同啊,怎么给?
回复

使用道具 举报

cqfanli 发表于 2003-8-13 10:08:55 | 显示全部楼层
把最后第三个部份虚拟主机打开就有行,有例子的?
回复

使用道具 举报

 楼主| lan 发表于 2003-8-13 10:29:20 | 显示全部楼层
Originally posted by lm92 at 2003-8-13 09:56 AM:
别人的路径和你的路径不同啊,怎么给?

我只想要一个完整的参考,不是要一个片段
路径的指定我想还是不会搞错的
关键的是搞了之后都指向了第一个虚拟主机的目录了,不知道为什么~
别的都不生效了,原来的主目录也指向到虚拟主机的目录里去了
回复

使用道具 举报

tonyvicky 发表于 2003-8-13 11:55:21 | 显示全部楼层
回复

使用道具 举报

cqfanli 发表于 2003-8-13 12:02:41 | 显示全部楼层
Originally posted by tonyvicky at 2003-8-13 11:55:
http://www.heblinux.org/tmp/1.txt


吼吼,我发现是WIN2K里面的,呵呵…
回复

使用道具 举报

tonyvicky 发表于 2003-8-13 12:07:29 | 显示全部楼层
呵呵,大同小异嘛,差不多的。
回复

使用道具 举报

 楼主| lan 发表于 2003-8-13 14:32:01 | 显示全部楼层
非常感谢。2k的也可以的~
请问您这个是您正在正常使用的吗?
我要可以正常使用的。按照说明我也可以写出来,但是有问题
所以想找一个正在工作的文件,然后从正在工作的ip,域名那里都看看~
同样感谢您

[ Last edited by lan on 2003-8-13 at 02:35 PM ]
回复

使用道具 举报

tonyvicky 发表于 2003-8-13 14:59:32 | 显示全部楼层
找到最后部分,有个IP地址218.12.48.138,根据自己的IP来改。
回复

使用道具 举报

 楼主| lan 发表于 2003-8-13 15:25:00 | 显示全部楼层


  1. ServerRoot "/data/httpd/"


  2. <IfModule !mpm_winnt.c>
  3. <IfModule !mpm_netware.c>
  4. #LockFile logs/accept.lock
  5. </IfModule>
  6. </IfModule>


  7. <IfModule !mpm_netware.c>
  8. <IfModule !perchild.c>
  9. #ScoreBoardFile logs/apache_runtime_status
  10. </IfModule>
  11. </IfModule>


  12. #
  13. # PidFile: The file in which the server should record its process
  14. # identification number when it starts.
  15. #
  16. <IfModule !mpm_netware.c>
  17. PidFile logs/httpd.pid
  18. </IfModule>

  19. #
  20. # Timeout: The number of seconds before receives and sends time out.
  21. #
  22. Timeout 300


  23. KeepAlive On


  24. MaxKeepAliveRequests 100


  25. KeepAliveTimeout 15




  26. <IfModule prefork.c>
  27. StartServers         5
  28. MinSpareServers      5
  29. MaxSpareServers     10
  30. MaxClients         150
  31. MaxRequestsPerChild  0
  32. </IfModule>


  33. <IfModule worker.c>
  34. StartServers         2
  35. MaxClients         150
  36. MinSpareThreads     25
  37. MaxSpareThreads     75
  38. ThreadsPerChild     25
  39. MaxRequestsPerChild  0
  40. </IfModule>


  41. <IfModule perchild.c>
  42. NumServers           5
  43. StartThreads         5
  44. MinSpareThreads      5
  45. MaxSpareThreads     10
  46. MaxThreadsPerChild  20
  47. MaxRequestsPerChild  0
  48. </IfModule>

  49. # WinNT MPM
  50. # ThreadsPerChild: constant number of worker threads in the server process
  51. # MaxRequestsPerChild: maximum  number of requests a server process serves
  52. <IfModule mpm_winnt.c>
  53. ThreadsPerChild 250
  54. MaxRequestsPerChild  0
  55. </IfModule>

  56. # BeOS MPM
  57. # StartThreads: how many threads do we initially spawn?
  58. # MaxClients:   max number of threads we can have (1 thread == 1 client)
  59. # MaxRequestsPerThread: maximum number of requests each thread will process
  60. <IfModule beos.c>
  61. StartThreads               10
  62. MaxClients                 50
  63. MaxRequestsPerThread       10000
  64. </IfModule>   

  65.                   
  66. <IfModule mpm_netware.c>
  67. ThreadStackSize      65536
  68. StartThreads           250
  69. MinSpareThreads         25
  70. MaxSpareThreads        250
  71. MaxThreads            1000
  72. MaxRequestsPerChild      0
  73. </IfModule>


  74. <IfModule mpmt_os2.c>
  75. StartServers           2
  76. MinSpareThreads        5
  77. MaxSpareThreads       10
  78. MaxRequestsPerChild    0
  79. </IfModule>



  80. Listen 80

  81. LoadModule php5_module        modules/libphp5.so

  82. <IfModule !mpm_winnt.c>
  83. <IfModule !mpm_netware.c>

  84. User nobody
  85. Group #-1
  86. </IfModule>
  87. </IfModule>


  88. ServerAdmin ci@i.net



  89. ServerName www.leonlinux.org:80


  90. UseCanonicalName Off

  91. DocumentRoot "/data/httpd//htdocs"


  92. <Directory />
  93.     Options FollowSymLinks
  94.     AllowOverride None
  95. </Directory>




  96. <Directory "/data/httpd//htdocs">


  97.     Options Indexes FollowSymLinks


  98.     AllowOverride None

  99.     Order allow,deny
  100.     Allow from all

  101. </Directory>

  102. UserDir public_html



  103. DirectoryIndex index.html index.php index.htm index.html.var


  104. AccessFileName .htaccess


  105. <Files ~ "^\.ht">
  106.     Order allow,deny
  107.     Deny from all
  108. </Files>


  109. TypesConfig conf/mime.types

  110. DefaultType text/plain


  111. <IfModule mod_mime_magic.c>
  112.     MIMEMagicFile conf/magic
  113. </IfModule>

  114. HostnameLookups Off



  115. ErrorLog logs/error_log

  116. LogLevel warn

  117. LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
  118. LogFormat "%h %l %u %t "%r" %>s %b" common
  119. LogFormat "%{Referer}i -> %U" referer
  120. LogFormat "%{User-agent}i" agent


  121. CustomLog logs/access_log common


  122. ServerTokens Full


  123. ServerSignature On


  124. Alias /icons/ "/data/httpd//icons/"

  125. <Directory "/data/httpd//icons">
  126.     Options Indexes MultiViews
  127.     AllowOverride None
  128.     Order allow,deny
  129.     Allow from all
  130. </Directory>


  131. AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/data/httpd//manual$1"

  132. <Directory "/data/httpd//manual">
  133.     Options Indexes
  134.     AllowOverride None
  135.     Order allow,deny
  136.     Allow from all

  137.     <Files *.html>
  138.         SetHandler type-map
  139.     </Files>

  140.     SetEnvIf Request_URI ^/manual/de/ prefer-language=de
  141.     SetEnvIf Request_URI ^/manual/en/ prefer-language=en
  142.     SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
  143.     SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
  144.     SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
  145.     SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
  146.     RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
  147. </Directory>


  148. ScriptAlias /cgi-bin/ "/data/httpd//cgi-bin/"

  149. <IfModule mod_cgid.c>

  150. #Scriptsock            logs/cgisock
  151. </IfModule>

  152. <Directory "/data/httpd//cgi-bin">
  153.     AllowOverride None
  154.     Options None
  155.     Order allow,deny
  156.     Allow from all
  157. </Directory>



  158. IndexOptions FancyIndexing VersionSort


  159. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

  160. AddIconByType (TXT,/icons/text.gif) text/*
  161. AddIconByType (IMG,/icons/image2.gif) image/*
  162. AddIconByType (SND,/icons/sound2.gif) audio/*
  163. AddIconByType (VID,/icons/movie.gif) video/*

  164. AddIcon /icons/binary.gif .bin .exe
  165. AddIcon /icons/binhex.gif .hqx
  166. AddIcon /icons/tar.gif .tar
  167. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  168. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  169. AddIcon /icons/a.gif .ps .ai .eps
  170. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  171. AddIcon /icons/text.gif .txt
  172. AddIcon /icons/c.gif .c
  173. AddIcon /icons/p.gif .pl .py
  174. AddIcon /icons/f.gif .for
  175. AddIcon /icons/dvi.gif .dvi
  176. AddIcon /icons/uuencoded.gif .uu
  177. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  178. AddIcon /icons/tex.gif .tex
  179. AddIcon /icons/bomb.gif core

  180. AddIcon /icons/back.gif ..
  181. AddIcon /icons/hand.right.gif README
  182. AddIcon /icons/folder.gif ^^DIRECTORY^^
  183. AddIcon /icons/blank.gif ^^BLANKICON^^

  184. DefaultIcon /icons/unknown.gif


  185. ReadmeName README.html
  186. HeaderName HEADER.html

  187. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t


  188. AddLanguage da .dk
  189. AddLanguage nl .nl
  190. AddLanguage en .en
  191. AddLanguage et .et
  192. AddLanguage fr .fr
  193. AddLanguage de .de
  194. AddLanguage he .he
  195. AddLanguage el .el
  196. AddLanguage it .it
  197. AddLanguage ja .ja
  198. AddLanguage pl .po
  199. AddLanguage ko .ko
  200. AddLanguage pt .pt
  201. AddLanguage nn .nn
  202. AddLanguage no .no
  203. AddLanguage pt-br .pt-br
  204. AddLanguage ltz .ltz
  205. AddLanguage ca .ca
  206. AddLanguage es .es
  207. AddLanguage sv .sv
  208. AddLanguage cs .cz .cs
  209. AddLanguage ru .ru
  210. AddLanguage zh-CN .zh-cn
  211. AddLanguage zh-TW .zh-tw
  212. AddLanguage hr .hr


  213. LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw


  214. ForceLanguagePriority Prefer Fallback


  215. AddDefaultCharset ISO-8859-1


  216. AddCharset ISO-8859-1  .iso8859-1  .latin1
  217. AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
  218. AddCharset ISO-8859-3  .iso8859-3  .latin3
  219. AddCharset ISO-8859-4  .iso8859-4  .latin4
  220. AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
  221. AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
  222. AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
  223. AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
  224. AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
  225. AddCharset ISO-2022-JP .iso2022-jp .jis
  226. AddCharset ISO-2022-KR .iso2022-kr .kis
  227. AddCharset ISO-2022-CN .iso2022-cn .cis
  228. AddCharset Big5        .Big5       .big5
  229. # For russian, more than one charset is used (depends on client, mostly):
  230. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  231. AddCharset CP866       .cp866
  232. AddCharset KOI8-r      .koi8-r .koi8-ru
  233. AddCharset KOI8-ru     .koi8-uk .ua
  234. AddCharset ISO-10646-UCS-2 .ucs2
  235. AddCharset ISO-10646-UCS-4 .ucs4
  236. AddCharset UTF-8       .utf8

  237. AddCharset GB2312      .gb2312 .gb
  238. AddCharset utf-7       .utf7
  239. AddCharset utf-8       .utf8
  240. AddCharset big5        .big5 .b5
  241. AddCharset EUC-TW      .euc-tw
  242. AddCharset EUC-JP      .euc-jp
  243. AddCharset EUC-KR      .euc-kr
  244. AddCharset shift_jis   .sjis


  245. AddType application/x-tar .tgz
  246. AddType application/x-httpd-php .php
  247. AddType image/x-icon .ico


  248. AddHandler type-map var


  249. BrowserMatch "Mozilla/2" nokeepalive
  250. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  251. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  252. BrowserMatch "Java/1\.0" force-response-1.0
  253. BrowserMatch "JDK/1\.0" force-response-1.0


  254. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  255. BrowserMatch "^WebDrive" redirect-carefully
  256. BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  257. BrowserMatch "^gnome-vfs" redirect-carefully





  258. <IfModule mod_ssl.c>
  259.     Include conf/ssl.conf
  260. </IfModule>



  261. #NameVirtualHost *
  262. NameVirtualHost 10.98.150.80


  263. <VirtualHost 10.98.150.80>
  264.     ServerAdmin webmaster@dummy-host.example.com
  265.     DocumentRoot /data/httpd/htdocs/mail
  266.     ServerName mail.leonlinux.org
  267.     ErrorLog logs/mail-error_log
  268.     CustomLog logs/mail-access_log common
  269. </VirtualHost>

复制代码

这是我的配置文件,域名解析在本地都已经配置好
现在无论访问www.leonlinux.org还是mail.leonlinux.org或者是10.98.150.80都把目录指向到了我的mail.leonlinux.org目录了。
请分析是哪里错了?
apache 版本2.0.47

[ Last edited by lan on 2003-8-13 at 03:45 PM ]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-13 18:56 , Processed in 0.090168 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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