⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lsg46.htm

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTM
📖 第 1 页 / 共 4 页
字号:


<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Prevents CGI scripts from interfering with any log files written by the server software</FONT>







<TR>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







DMAXIMUM_DNS







</FONT>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Provides a more secure resolution system at the cost of performance</FONT>







<TR>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







DMINIMAL_DNS







</FONT>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Doesn't allow reverse name resolution, but speeds up performance</FONT>







<TR>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







DNO_PASS







</FONT>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Prevents multiple children from being spawned</FONT>







<TR>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







DPEM_AUTH







</FONT>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Enables PEM/PGP authentication schemes</FONT>







<TR>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







DXBITHACK







</FONT>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Provides a service check on the execute bit of an HTML file</FONT>







<TR>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







O2







</FONT>







<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>







Is an optimizing flag</FONT>







</TABLE><P>It is unlikely that you will need to change any of the flags in the CFLAGS section, but at least you now know what they do. Once you have checked the src/Makefile for its contents, you can compile the server software. Change into the src directory and issue the command:







<BR>







<BR>







<PRE>







<FONT COLOR="#000080">make</FONT></PRE>







<P>If you see error messages, check the configuration file carefully. The most common problem is the wrong platform (or multiple platforms) selected in the file.







<BR>







<P>Once the Web server software has been compiled, you have to compile the support applications, too. Change into the support directory and check the Makefile there. Once it is correct, issue the make command again. Then, change to the cgi-src directory and repeat the process.







<BR>







<BLOCKQUOTE>







<BLOCKQUOTE>







<HR ALIGN=CENTER>







<BR>







<NOTE>Some versions of NCSA Web server software (notably releases 1.4 or later) enable you to compile all three sets of source code with the command make sgi from the Web directory.</NOTE>







<BR>







<HR ALIGN=CENTER>







</BLOCKQUOTE></BLOCKQUOTE>







<BR>







<A NAME="E69E263"></A>







<H4 ALIGN=CENTER>







<CENTER>







<FONT SIZE=4 COLOR="#FF0000"><B>Configuring the Web Software</B></FONT></CENTER></H4>







<BR>







<P>Once the software is in the proper directories and compiled for your platform, it's time to configure the system. Begin with the httpd.conf-dist file. This file handles the httpd server daemon. Before you edit the file, you have to decide whether you will install the Web server software to run as a daemon, or whether it will be started by inetd. If you anticipate a lot of use, run the software as a daemon. For occasional use, either is acceptable.







<BR>







<P>Several variables in httpd.conf-dist need to be checked or have values entered for them. All the variables in the configuration file follow the following syntax:







<BR>







<BR>







<PRE>







<FONT COLOR="#000080">variable value</FONT></PRE>







<P>Note that there is no equal sign or special symbol between the variable name and the value assigned to it. For example, a few lines would look like this:







<BR>







<PRE>







<FONT COLOR="#000080">FancyIndexing on







HeaderName Header







ReadmeName README</FONT></PRE>







<P>Where pathnames or filenames are supplied, they are usually relative to the Web server directory, unless explicitly declared as a full pathname. The variables you need to supply in httpd.conf-dist are as follows:







<BR>







<UL>







<LI>The AccessConfig variable is the location of the access.conf configuration file. The default value is conf/access.conf. You can use either absolute or relative pathnames.







<BR>







<BR>







<LI>The AgentLog variable is the log file to record details of transactions. The default value is logs/agent_log.







<BR>







<BR>







<LI>The ErrorLog variable is the name of the file to record errors in. The default is /logs/error_log.







<BR>







<BR>







<LI>The Group variable is the Group ID the server should run as (used only when server is running as a daemon). It can be either a group name or group ID number. If it is a number, it must be preceded by #. The default is #-1.







<BR>







<BR>







<LI>The IdentityCheck variable is used to verify that a remote user has logged in as himself/herself. Not many systems support this varable. The default is Off.







<BR>







<BR>







<LI>The MaxServers variable is the maximum number of children allowed.







<BR>







<BR>







<LI>The PidFile variable is the file in which you want to record the process ID of each httpd copy. The default is /logs/httpd.pid. Used only when the server is in daemon mode.







<BR>







<BR>







<LI>The Port variable is the port number httpd should listen to for clients. Default port is 80. If you don't want the Web server to be generally available, choose another number.







<BR>







<BR>







<LI>The ResourceConfig variable is the path to the srm.conf file, usually conf/srm.conf.







<BR>







<BR>







<LI>The ServerAdmin variable is the e-mail address of the administrator.







<BR>







<BR>







<LI>The ServerName variable is the domain name of the server.







<BR>







<BR>







<LI>The ServerRoot variable is the path above which users cannot move (usually the Web server top directory or usr/local/etc/httpd).







<BR>







<BR>







<LI>The ServerType variable is either stand-alone (daemon) or inetd.







<BR>







<BR>







<LI>The StartServers variable is the number of server processes that can run concurrently (that is, the number of clients allowed).







<BR>







<BR>







<LI>The TimeOut variable is the amount of time in seconds to wait for a client request, after which it is disconnected (default is 1800, which should be reduced).







<BR>







<BR>







<LI>The TransferLog variable is the path to the location of the logs. The default is logs/access_log.







<BR>







<BR>







<LI>The TypesConfig variable is the path to the location of the MIME configuration file. The default is conf/mime.conf.







<BR>







<BR>







<LI>The User variable defines the user ID the server should run as (only valid if running as daemon). It can be a name or number, but it must be preceded by # if it is a number. The default is #-1.







<BR>







<BR>







</UL>







<P>The next configuration file to check is srm.conf, which is used to handle the server resources. The variables that have to be checked or set in the srm.conf file are as follows:







<BR>







<UL>







<LI>The AccessFileName variable is the file that gives access permissions (default is .htaccess).







<BR>







<BR>







<LI>The AddDescription variable provides a description of a type of file. For example, an entry could be AddDescription &quot;PostScript file&quot; *.ps. Multiple entries are allowed.







<BR>







<BR>







<LI>The AddEncoding variable indicates that filenames with a specified extension are encoded somehow, such as AddEncoding compress Z. Multiple entries are allowed.







<BR>







<BR>







<LI>The AddIcon variable gives the name of the icon to display for each type of file.







<BR>







<BR>







<LI>The AddIconbyEncoding variable is the same as AddIcon, but it adds encoding information.







<BR>







<BR>







<LI>The AddIconType variable uses MIME type to determine the icon to use.







<BR>







<BR>







<LI>The AddType variable overrides MIME definitions for extensions.







<BR>







<BR>







<LI>The Alias variable substitutes one pathname for another, such as Alias data /usr/www/data.







<BR>







<BR>







<LI>The DefaultType variable is the default MIME type, usually text/html.







<BR>







<BR>







<LI>The DefaultIcon variable is the default icon to use when FancyIndexing is on (default is /icons/unknown.xbm).







<BR>







<BR>







<LI>The DirectoryIndex variable is the filename to return when the URL is for your service only. The default value is index.html.







<BR>







<BR>







<LI>The DocumentRoot variable is the absolute path to the httpd document directory. The default is /usr/local/etc/httpd/htdocs.







<BR>







<BR>







<LI>The FancyIndexing variable adds icons and filename information to the file list for indexing. The default is on. (This option is for backward compatibility with the first release of HTTP.)







<BR>







<BR>







<LI>The HeaderName variable is the filename used at the top of a list of files being indexed. The default is HEADER.







<BR>







<BR>







<LI>The IndexOptions variable specifies the indexing parameters (including FancyIndexing, IconsAreLinks, ScanHTMLTitles, SuppressLastModified, SuppressSize, and SuppressDescription).







<BR>







<BR>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -