分享
 
 
 

5L下HTTPServer的配置文档及简要说明

王朝other·作者佚名  2006-11-23
窄屏简体版  字體: |||超大  

一般HTTPServer刚装好后,必须修改的几个地方是

BindAddress * #刚安装好的时候这个前面有#配置的时候去掉(我新装了一台机器是打开的:)

ServerName aix #这个是你的机器名,如果有dns设成域名即可,必须要设置

Port 80 #这一行好像安装完后是被禁止的,一定打开(这个也是打开的)

一般设置了ServerName就可以通过ip地址访问了

HTTPServer的安装文档在随机光盘里标着Expansion pack的那张光盘,跟netscape一起

或者down个apache也一样

下面是具体的配置文件

##

## httpd.conf -- Apache HTTP server configuration file

##

# This is the main server configuration file. See URL http://www.apache.org/

# for instructions.

# Do NOT simply read the instructions in here without understanding

# what they do, if you are unsure consult the online docs. You have been

# warned.

# Originally by Rob McCool

# These two directives are used to combine the three config files into one.

# The three config files are a legacy setup and are not needed.

AccessConfig /dev/null

ResourceConfig /dev/null

# ServerRoot: The directory the server's config, error, and log files

# are kept in.

# NOTE! If you intend to place this on a NFS (or otherwise network)

# mounted filesystem then please read the LockFile documentation,

# you will save yourself a lot of trouble.

ServerRoot /usr/HTTPServer #注意这个是你HTTPServer安装的目录,如果装apache目录会不同,不用修改

# Dynamic Shared Object (DSO) Support

#

# To be able to use the functionality of a module which was built as a DSO you

# have to place corresponding `LoadModule' lines at this location so the

# directives contained in it are actually available _before_ they are used.

# Please read the file README.DSO in the Apache 1.3 distribution for more

# details about the DSO mechanism and run `httpd -l' for the list of already

# built-in (statically linked and thus always available) modules in your httpd

# binary.

#

# Example:

# LoadModule foo_module libexec/mod_foo.so

LoadModule env_module libexec/mod_env.so

LoadModule config_log_module libexec/mod_log_config.so

LoadModule mime_magic_module libexec/mod_mime_magic.so

LoadModule mime_module libexec/mod_mime.so

LoadModule negotiation_module libexec/mod_negotiation.so

#LoadModule status_module libexec/mod_status.so

LoadModule includes_module libexec/mod_include.so

LoadModule autoindex_module libexec/mod_autoindex.so

LoadModule dir_module libexec/mod_dir.so

LoadModule cgi_module libexec/mod_cgi.so

LoadModule asis_module libexec/mod_asis.so

LoadModule imap_module libexec/mod_imap.so

LoadModule action_module libexec/mod_actions.so

#LoadModule speling_module libexec/mod_speling.so

#LoadModule proxy_module libexec/libproxy.so

LoadModule userdir_module libexec/mod_userdir.so

LoadModule alias_module libexec/mod_alias.so

LoadModule rewrite_module libexec/mod_rewrite.so

LoadModule access_module libexec/mod_access.so

LoadModule auth_module libexec/mod_auth.so

#LoadModule anon_auth_module libexec/mod_auth_anon.so

LoadModule dbm_auth_module libexec/mod_auth_dbm.so

#LoadModule cern_meta_module libexec/mod_cern_meta.so

#LoadModule expires_module libexec/mod_expires.so

#LoadModule headers_module libexec/mod_headers.so

#LoadModule usertrack_module libexec/mod_usertrack.so

LoadModule unique_id_module libexec/mod_unique_id.so

LoadModule setenvif_module libexec/mod_setenvif.so

LoadModule weblogic_module libexec/mod_wl.so

# Reconstruction of the complete module list from all available modules

# (static and shared ones) to achieve correct module execution order.

# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]

ClearModuleList

AddModule mod_so.c

AddModule mod_env.c

AddModule mod_log_config.c

AddModule mod_mime_magic.c

AddModule mod_mime.c

AddModule mod_negotiation.c

#AddModule mod_status.c

AddModule mod_include.c

AddModule mod_autoindex.c

AddModule mod_dir.c

AddModule mod_cgi.c

AddModule mod_asis.c

AddModule mod_imap.c

AddModule mod_actions.c

#AddModule mod_speling.c

#AddModule mod_proxy.c

AddModule mod_userdir.c

AddModule mod_alias.c

AddModule mod_rewrite.c

AddModule mod_access.c

AddModule mod_auth.c

#AddModule mod_auth_anon.c

AddModule mod_auth_dbm.c

#AddModule mod_cern_meta.c

#AddModule mod_expires.c

#AddModule mod_headers.c

#AddModule mod_usertrack.c

AddModule mod_unique_id.c

AddModule mod_setenvif.c

AddModule mod_weblogic.c

# ServerType is either inetd, or standalone.

ServerType standalone

# If you are running from inetd, go to "ServerAdmin".

# Port: The port the standalone listens to. For ports < 1023, you will

# need httpd to be run as root initially.

Port 80 #这一行好像安装完后是被禁止的,一定打开

# Listen: The Listen directive is required only if the server will

# be listening on more than 1 port.

#Listen 80

# HostnameLookups: Log the names of clients or just their IP numbers

# e.g. www.apache.org (on) or 204.62.129.132 (off)

# The default is off because it'd be overall better for the net if people

# had to knowingly turn this feature on.

HostnameLookups off

# If you wish httpd to run as a different user or group, you must run

# httpd as root initially and it will switch.

# User/Group: The name (or #number) of the user/group to run httpd as.

# On SCO (ODT 3) use User nouser and Group nogroup

# On HPUX you may not be able to use shared memory as nobody, and the

# suggested workaround is to create a user www and use that user.

# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)

# when the value of (unsigned)Group is above 60000;

# don't use Group #-1 on these systems!

User nobody

Group nobody

# ServerAdmin: Your address, where problems with the server should be

# e-mailed.

ServerAdmin you@your.address

# BindAddress: You can support virtual hosts with this option. This option

# is used to tell the server which IP address to listen to. It can either

# contain "*", an IP address, or a fully qualified Internet domain name.

# See also the VirtualHost directive.

BindAddress * #刚安装好的时候这个前面有#配置的时候去掉

# ErrorLog: The location of the error log file. If this does not start

# with /, ServerRoot is prepended to it.

ErrorLog /usr/HTTPServer/logs/error_log

# LogLevel: Control the number of messages logged to the error_log.

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn

# The following directives define some format nicknames for use with

# a CustomLog directive (see below).

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

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

# The location of the access logfile (Common Logfile Format).

# If this does not start with /, ServerRoot is prepended to it.

CustomLog /usr/HTTPServer/logs/access_log common

# If you would like to have an agent and referer logfile uncomment the

# following directives.

#CustomLog /usr/HTTPServer/logs/referer_log referer

#CustomLog /usr/HTTPServer/logs/agent_log agent

# If you prefer a single logfile with access, agent and referer information

# (Combined Logfile Format) you can use the following directive.

#CustomLog /usr/HTTPServer/logs/access_log combined

# PidFile: The file the server should log its pid to

PidFile /usr/HTTPServer/logs/httpd.pid

# ScoreBoardFile: File used to store internal server process information.

# Not all architectures require this. But if yours does (you'll know because

# this file is created when you run Apache) then you *must* ensure that

# no two invocations of Apache share the same scoreboard file.

ScoreBoardFile /usr/HTTPServer/logs/httpd.scoreboard

# The LockFile directive sets the path to the lockfile used when Apache

# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or

# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at

# its default value. The main reason for changing it is if the logs

# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL

# DISK. The PID of the main server process is automatically appended to

# the filename.

#

#LockFile /usr/HTTPServer/logs/httpd.lock

# ServerName allows you to set a host name which is sent back to clients for

# your server if it's different than the one the program would get (i.e. use

# "www" instead of the host's real name).

#

# Note: You cannot just invent host names and hope they work. The name you

# define here must be a valid DNS name for your host. If you don't understand

# this, ask your network administrator.

ServerName aix #这个是你的机器名,如果有dns设成域名即可

# UseCanonicalName: (new for 1.3) With this set

[1] [2] [3] 下一页

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有