ApacheReferenceManual4_PHP教程

Jul 13, 2016 pm 05:28 PM
config context server syntax

Syntax: ... Context: server config, virtual host Status: Core. Compatibility: Available in Apache 1.3 and later and are used to enclose a group of directives which will apply only to the named directory and sub-directories of that directory, the same as . However, it takes as an argument a regular expression. For example: would match directories in /www/ that consisted of three numbers. See Also: for a description of how regular expressions are mixed in with normal s. See also: How Directory, Location and Files sections work for an explanation of how these different sections are combined when a request is received -------------------------------------------------------------------------------- DocumentRoot directive Syntax: DocumentRoot directory-filename Default: DocumentRoot /usr/local/apache/htdocs Context: server config, virtual host Status: core This directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document. Example: DocumentRoot /usr/web then an access to http://www.my.host.com/index.html refers to /usr/web/index.html. There appears to be a bug in mod_dir which causes problems when the DocumentRoot has a trailing slash (i.e., "DocumentRoot /usr/web/") so please avoid that. -------------------------------------------------------------------------------- ErrorDocument directive Syntax: ErrorDocument error-code document Context: server config, virtual host, directory, .htaccess Status: core Override: FileInfo Compatibility: The directory and .htaccess contexts are only available in Apache 1.1 and later. In the event of a problem or error, Apache can be configured to do one of four things, output a simple hardcoded error message output a customized message redirect to a local URL to handle the problem/error redirect to an external URL to handle the problem/error The first option is the default, while options 2-4 are configured using the ErrorDocument directive, which is followed by the HTTP response code and a message or URL. Messages in this context begin with a single quote ("), which does not form part of the message itself. Apache will sometimes offer additional information regarding the problem/error. URLs can begin with a slash (/) for local URLs, or be a full URL which the client can resolve. Examples: ErrorDocument 500 http://foo.example.com/cgi-bin/tester ErrorDocument 404 /cgi-bin/bad_urls.pl ErrorDocument 401 /subscription_info.html ErrorDocument 403 "Sorry cant allow you access today Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as "http" in front of it) Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server.. This has several implications, the most important being that if you use an "ErrorDocument 401" directive then it must refer to a local document. This results from the nature of the HTTP basic authentication scheme. See Also: documentation of customizable responses. -------------------------------------------------------------------------------- ErrorLog directive Syntax: ErrorLog filename|syslog[:facility] Default: ErrorLog logs/error_log (Unix) Default: ErrorLog logs/error.log (Windows and OS/2) Context: server config, virtual host Status: core The error log directive sets the name of the file to which the server will log any errors it encounters. If the filename does not begin with a slash (/) then it is assumed to be relative to the ServerRoot. If the filename begins with a pipe (|) then it is assumed to be a command to spawn to handle the error log. Apache 1.3 and above: Using syslog instead of a filename enables logging via syslogd(8) if the system supports it. The default is to use syslog facility local7, but you can override this by using the syslog:facility syntax where facility can be one of the names usually documented in syslog(1). SECURITY: See the security tips document for details on why your security could be compromised if the directory where logfiles are stored is writable by anyone other than the user that starts the server. See also: LogLevel -------------------------------------------------------------------------------- directive Syntax: ... Context: server config, virtual host, .htaccess Status: core Compatibility: only available in Apache 1.2 and above. The directive provides for access control by filename. It is comparable to the directive and directives. It should be matched with a directive. The directives given within this section will be applied to any object with a basename (last component of filename) matching the specified filename. sections are processed in the order they appear in the configuration file, after the sections and .htaccess files are read, but before sections. Note that can be nested inside sections to restrict the portion of the filesystem they apply to. The filename argument should include a filename, or a wild-card string, where `? matches any single character, and `* matches any sequences of characters. Extended regular expressions can also be used, with the addition of the ~ character. For example: would match most common Internet graphics formats. In Apache 1.3 and later, is preferred, however. Note that unlike and sections, sections can be used inside .htaccess files. This allows users to control access to their own files, at a file-by-file level. See also: How Directory, Location and Files sections work for an explanation of how these different sections are combined when a request is received ------------------------------------------------

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/531747.htmlTechArticleSyntax: ... Context: server config, virtual host Status: Core. Compatibility: Available in Apache 1.3 and later and are used to enclose a group of directives which will apply only...
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

Video Face Swap

Video Face Swap

完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

ホットツール

メモ帳++7.3.1

メモ帳++7.3.1

使いやすく無料のコードエディター

SublimeText3 中国語版

SublimeText3 中国語版

中国語版、とても使いやすい

ゼンドスタジオ 13.0.1

ゼンドスタジオ 13.0.1

強力な PHP 統合開発環境

ドリームウィーバー CS6

ドリームウィーバー CS6

ビジュアル Web 開発ツール

SublimeText3 Mac版

SublimeText3 Mac版

神レベルのコード編集ソフト(SublimeText3)

.NET パーサーによって返されるエラー 0xC00CE556 を修正する方法 .NET パーサーによって返されるエラー 0xC00CE556 を修正する方法 Apr 25, 2023 am 08:34 AM

新しいバージョンのアプリケーションのインストール中に、Windows で「C:\\Windows\Microsoft.Net\Framework\v2.0.50727\Config\machine.configParser の解析中にエラーが発生しました。エラー 0xC00CE556 が返されました」というエラー メッセージが表示されることがあります。この問題は、システムの起動時にも発生します。どのような状況でこの問題が発生しても、.NETFramework が舞台裏の真の原因です。このエラー コードが再び表示されないようにするために使用できる非常に簡単な修正がいくつかあります。修正 1 – 破損したファイルを置き換える 破損したファイルは元のディレクトリから簡単に置き換えることができます

Windows サーバーのバックアップをインストール、アンインストール、リセットする方法 Windows サーバーのバックアップをインストール、アンインストール、リセットする方法 Mar 06, 2024 am 10:37 AM

WindowsServerBackup は、WindowsServer オペレーティング システムに付属する機能で、ユーザーが重要なデータとシステム構成を保護し、中小企業、エンタープライズ レベルの企業に完全なバックアップおよび回復ソリューションを提供できるように設計されています。この機能を使用できるのは、Server2022 以降を実行しているユーザーのみです。この記事では、WindowsServerBackup のインストール、アンインストール、またはリセットの方法を説明します。 Windows Server バックアップをリセットする方法 サーバー バックアップで問題が発生したり、バックアップに時間がかかりすぎたり、保存されているファイルにアクセスできない場合は、Windows Server バックアップ設定をリセットすることを検討してください。 Windowsをリセットするには

コンテキストとはどういう意味ですか? コンテキストとはどういう意味ですか? Aug 04, 2023 pm 05:27 PM

コンテキストとは、プログラムが実行されるときの環境や状態情報のことで、変数の値、関数の呼び出しスタック、プログラムの実行場所など、プログラムが対応付けられるようにするためのさまざまな情報が含まれます。さまざまなコンテキストに基づいて決定を行い、対応する操作を実行します。

コンテキストを使用して Go でリクエスト キャッシュを実装する方法 コンテキストを使用して Go でリクエスト キャッシュを実装する方法 Jul 22, 2023 pm 10:51 PM

コンテキストを使用して Go でリクエスト キャッシュを実装する方法 はじめに: Web アプリケーションを構築するとき、パフォーマンスを向上させるためにリクエストをキャッシュする必要があることがよくあります。 Go 言語では、コンテキスト パッケージを使用してリクエスト キャッシュ機能を実装できます。この記事では、コンテキスト パッケージを使用してリクエスト キャッシュを実装する方法を紹介し、読者の理解を助けるコード例を示します。コンテキストとは何ですか? : Go 言語では、コンテキスト パッケージは複数のゴルーチン間を渡す方法を提供します。

コンテキストを使用して Go でリクエスト リンク トラッキングを実装する方法 コンテキストを使用して Go でリクエスト リンク トラッキングを実装する方法 Jul 21, 2023 pm 05:57 PM

コンテキストを使用して Go でリクエスト リンク トラッキングを実装する方法: マイクロサービス アーキテクチャでは、リクエスト リンク トラッキングは、複数のマイクロサービス間のリクエストの配信と処理を追跡するために使用される非常に重要なテクノロジです。 Go 言語では、コンテキスト パッケージを使用してリクエスト リンク トラッキングを実装できます。この記事では、リクエスト リンク トラッキングにコンテキストを使用する方法とコード例を紹介します。まず、コンテキスト パッケージの基本概念と使用法を理解する必要があります。 context パッケージはメカニズムを提供します

PHP での構成管理に ThinkPHP\Config を使用するにはどうすればよいですか? PHP での構成管理に ThinkPHP\Config を使用するにはどうすればよいですか? May 31, 2023 pm 02:31 PM

PHP 言語の継続的な開発に伴い、PHP バックエンド フレームワークで広く使用されている ThinkPHP も継続的に改良されています。ビジネス シナリオがますます複雑になるにつれて、ThinkPHP での構成管理の需要も高まっています。そこで、ThinkPHP には豊富な構成管理機能が備わっていますので、今回は ThinkPHPConfig を使用して構成管理を実装する方法を紹介します。 1. ThinkPHPConfig の概要 ThinkPHPConfig は Thin

コンテキストを使用して Go でリクエスト タイムアウト制御を実装する方法 コンテキストを使用して Go でリクエスト タイムアウト制御を実装する方法 Jul 21, 2023 pm 12:18 PM

コンテキストを使用して Go でリクエスト タイムアウト制御を実装する方法 はじめに: ネットワーク リクエストを行うと、リクエスト タイムアウトの問題が頻繁に発生します。ネットワーク要求が長時間応答しないと、サーバー リソースが無駄になるだけでなく、全体的なパフォーマンスにも影響します。この問題を解決するために、Go 言語ではリクエストのタイムアウト制御を実装するために使用できるコンテキスト パッケージが導入されました。この記事では、コンテキスト パッケージを使用して Go でリクエスト タイムアウト制御を実装する方法を紹介し、対応するコード例を添付します。 1. コンテキストパッケージ co を理解する

Windows Server 2025 プレビュー バージョンがアップデートを歓迎、Microsoft が Insider テスト エクスペリエンスを改善 Windows Server 2025 プレビュー バージョンがアップデートを歓迎、Microsoft が Insider テスト エクスペリエンスを改善 Feb 19, 2024 pm 02:36 PM

Windows Server のビルド 26040 バージョンのリリースに際し、Microsoft は製品の正式名を Windows Server 2025 と発表しました。 Windows11WindowsInsiderCanaryChannel バージョン build26040 もリリースされました。何年も前に、誰かが Windows NT をワークステーション モードからサーバー モードに変換し、Microsoft オペレーティング システムのさまざまなバージョン間の共通点を示したことをまだ覚えている人もいるでしょう。 Microsoft の現在のバージョンのサーバー オペレーティング システムと Windows 11 には明らかな違いがありますが、詳細に注目する人は、なぜ Windows Server がブランドを更新したのか、

See all articles