[ Pobierz całość w formacie PDF ]
.Also, you could choose to comment out theCustomLog /etc/httpd/logs/access_log combined line and use the definition for the combined format instead.Adding a SignatureAny page that is generated by the Apache server can have a signature line added to the bottom of the page.Examples of server-generated pages include a directory listing, error page, a status page, or an info page.TheServerSignature directive can be set to On, Off, or EMail.Here is how ServerSignature appears by default:# Optionally add a line containing the server version and virtual host# name to server-generated pages (error documents, FTP directory listings,# mod_status and mod_info output etc., but not CGI generated documents).# Set to "EMail" to also include a mailto: link to the ServerAdmin.# Set to one of: On | Off | EMail#ServerSignature OnWith the ServerSignature directive On, this line appears at the bottom of server-generated pages:Apache/1.3.20 Server at mycoolserver.com Port 80With ServerSignature set to EMail, a link to the Web page's administrative e-mail account is added to thesignature line (the server name becomes the link).If the directive is Off, the line doesn't appear at all.Aliasing relocated contentThere are various ways to define alias content.These include the Alias directive and the ScriptAlias directive:# # Aliases: Add here as many aliases as you need (with no limit).The format is# Alias fakename realname## Note that if you include a trailing / on fakename then the server will# require it to be present in the URL.So "/icons" isn't aliased in this# example, only "/icons/".If the fakename is slash-terminated, then the# trailing slash, the realname must also omit it.#Alias /icons/ "/var/www/icons/"Options Indexes MultiViewsAllowOverride NoneOrder allow,denyAllow from all## ScriptAlias: This controls which directories contain server scripts.# ScriptAliases are essentially the same as Aliases, except that# documents in the realname directory are treated as applications and# run by the server when requested rather than as documents sent to the client.# The same rules about trailing "/" apply to ScriptAlias directives as to# Alias.#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"## "/var/www/cgi-bin" should be changed to whatever your ScriptAliased# CGI directory exists, if you have that configured.#AllowOverride NoneOptions ExecCGIOrder allow,denyAllow from allThe Alias directive implements a similar feature but points to a file system location (not necessarily within theDocumentRoot, either).For example, with the following line in place:Alias /bigjob /home/newguy/projany client request for a document in /bigjob (http://www.mybox.com/bigjob/index.html, for example) wouldresult in the retrieval of /home/newguy/proj/index.html.The ScriptAlias directive also performs a related function, but the directories that it aliases contain executablecode (most likely CGI scripts).The syntax is the same as for the Alias directive.Redirecting requests for old contentAs content changes on your Web server, some content will become obsolete while other content may move toa different place in the file system or to a different server.Using the Redirect directive, you can redirectrequests for old content to new locations.By default, there are no Redirect directives set for your Apache server.However, here is the text describingthe directive:## Redirect allows you to tell clients about documents which used to exist in# your server's namespace, but do not anymore.This allows you to tell the # clients where to look for the relocated document.# Format: Redirect old-URI new-URLRedirect can be used to instruct clients that the document they seek has moved elsewhere (to the same serveror to an external location) by simply indicating the old and new locations.If the following Redirect optionwere in place:Redirect /test http://www.mybox.com/proda client s attempt to access http://www.mybox.com/test/dmgr.html would result in a redirect tohttp://www.mybox.com/prod/dmgr.html.Defining indexingIt's possible to have your Apache server show different icons for different types of files.To use this feature,IndexOptions should be set to FancyIndexing, and AddIconByEncoding, AddIconByType, and AddIcondirectives should be used:## FancyIndexing: whether you want fancy directory indexing or standard#IndexOptions FancyIndexing NameWidth=*## AddIcon* directives tell the server which icon to show for different# files or filename extensions.These are only displayed for# FancyIndexed directories.#AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzipAddIconByType (TXT,/icons/text.gif) text/*AddIconByType (IMG,/icons/image2.gif) image/*AddIconByType (SND,/icons/sound2.gif) audio/*AddIconByType (VID,/icons/movie.gif) video/*AddIcon /icons/binary.gif.bin.exeAddIcon /icons/binhex.gif.hqxAddIcon /icons/tar.gif.tarAddIcon /icons/world2.gif.wrl.wrl.gz.vrml.vrm.ivAddIcon /icons/compressed.gif.Z.z.tgz.gz.zipAddIcon /icons/a.gif.ps.ai.epsAddIcon /icons/layout.gif.html.shtml.htm.pdfAddIcon /icons/text.gif.txtAddIcon /icons/c.gif.cAddIcon /icons/p.gif.pl.pyAddIcon /icons/f.gif.forAddIcon /icons/dvi.gif.dviAddIcon /icons/uuencoded.gif.uuAddIcon /icons/script.gif.conf.sh [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • szamanka888.keep.pl