백엔드 개발 PHP 튜토리얼 ApacheReferenceManual4_PHP教程

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 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25 : Myrise에서 모든 것을 잠금 해제하는 방법
4 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

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 – 손상된 파일 교체 원래 디렉터리에서 손상된 ma를 쉽게 교체할 수 있습니다

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에서 컨텍스트를 사용하여 요청 캐싱을 구현하는 방법 소개: 웹 애플리케이션을 구축할 때 성능 향상을 위해 요청을 캐시해야 하는 경우가 많습니다. Go 언어에서는 컨텍스트 패키지를 사용하여 요청 캐싱 기능을 구현할 수 있습니다. 이 기사에서는 컨텍스트 패키지를 사용하여 요청 캐싱을 구현하는 방법을 소개하고 독자의 이해를 돕기 위한 코드 예제를 제공합니다. 맥락이란 무엇입니까? : Go 언어에서 컨텍스트 패키지는 여러 고루틴 간을 전달하는 방법을 제공합니다.

Go에서 요청 링크 추적을 구현하기 위해 컨텍스트를 사용하는 방법 Go에서 요청 링크 추적을 구현하기 위해 컨텍스트를 사용하는 방법 Jul 21, 2023 pm 05:57 PM

Go에서 컨텍스트를 사용하여 요청 링크 추적을 구현하는 방법 마이크로서비스 아키텍처에서 요청 링크 추적은 여러 마이크로서비스 간의 요청 전송 및 처리를 추적하는 데 사용되는 매우 중요한 기술입니다. Go 언어에서는 컨텍스트 패키지를 사용하여 요청 링크 추적을 구현할 수 있습니다. 이 기사에서는 요청 링크 추적에 컨텍스트를 사용하는 방법을 소개하고 코드 예제를 제공합니다. 먼저, 컨텍스트 패키지의 기본 개념과 사용법을 이해해야 합니다. 컨텍스트 패키지는 메커니즘을 제공합니다.

PHP에서 구성 관리를 위해 ThinkPHP\Config를 어떻게 사용합니까? PHP에서 구성 관리를 위해 ThinkPHP\Config를 어떻게 사용합니까? May 31, 2023 pm 02:31 PM

PHP 언어의 지속적인 발전에 따라 PHP 백엔드 프레임워크에서 널리 사용되는 ThinkPHP도 지속적으로 개선되고 있습니다. 비즈니스 시나리오가 점점 더 복잡해짐에 따라 ThinkPHP의 구성 관리에 대한 수요도 증가하고 있습니다. 이러한 맥락에서 ThinkPHP는 풍부한 구성 관리 기능을 제공합니다. 오늘은 ThinkPHPConfig를 통해 구성 관리를 구현하는 방법을 소개하겠습니다. 1. ThinkPHPConfig 소개 ThinkPHPConfig는 씬(Thin)입니다

Windows Server 2025 미리보기 버전은 업데이트를 환영하며 Microsoft는 내부자 테스트 경험을 개선합니다. Windows Server 2025 미리보기 버전은 업데이트를 환영하며 Microsoft는 내부자 테스트 경험을 개선합니다. Feb 19, 2024 pm 02:36 PM

Microsoft는 Windows Server 빌드 26040 버전을 출시하면서 제품의 공식 이름을 Windows Server 2025로 발표했습니다. Windows11WindowsInsiderCanaryChannel 버전 build26040도 출시되었습니다. 일부 친구들은 수년 전에 누군가 Windows NT를 워크스테이션 모드에서 서버 모드로 성공적으로 전환하여 다양한 버전의 Microsoft 운영 체제 간의 공통점을 보여주었다는 것을 아직도 기억할 것입니다. 마이크로소프트의 현재 서버 운영체제 버전과 윈도우 11 사이에는 뚜렷한 차이가 있지만, 세부 사항에 주목하는 사람들은 윈도우 서버가 왜 브랜드를 업데이트했는지,

Go에서 컨텍스트를 사용하여 요청 매개변수를 전달하는 방법 Go에서 컨텍스트를 사용하여 요청 매개변수를 전달하는 방법 Jul 22, 2023 pm 04:43 PM

Go 언어의 컨텍스트 패키지는 프로그램에서 요청 컨텍스트 정보를 전달하는 데 사용됩니다. 이는 매개변수를 전달하고, 요청을 가로채고, 여러 고루틴에 걸쳐 함수 간 작업을 취소할 수 있습니다. Go에서 컨텍스트 패키지를 사용하려면 먼저 "컨텍스트" 패키지를 가져와야 합니다. 다음은 컨텍스트 패키지를 사용하여 요청 매개변수 전달을 구현하는 방법을 보여주는 예입니다. packagemainimport("컨텍스트&quot

See all articles