php教程 php手册 Apache Reference Manual (7)

Apache Reference Manual (7)

Jun 13, 2016 am 10:13 AM
apache co directive location reference syntax url

directive
Syntax: ...
Context: server config, virtual host
Status: core
Compatibility: Location is only available in Apache 1.1 and later.
The directive provides for access control by URL. It is similar to the directive, and starts a subsection which is terminated with a directive. sections are processed in the order they appear in the configuration file, after the sections and .htaccess files are read, and after the sections.
Note that URLs do not have to line up with the filesystem at all, it should be emphasized that operates completely outside the filesystem.
For all origin (non-proxy) requests, the URL to be matched is of the form /path/, and you should not include any http://servername prefix. For proxy requests, the URL to be matched is of the form scheme://servername/path, and you must include the prefix.
The URL may use wildcards In a wild-card string, `?' matches any single character, and `*' matches any sequences of characters.
Apache 1.2 and above: Extended regular expressions can also be used, with the addition of the ~ character. For example:
     
would match URLs that contained the substring "/extra/data" or "/special/data". In Apache 1.3 and above, a new directive exists which behaves identical to the regex version of .
The Location functionality is especially useful when combined with the SetHandler directive. For example, to enable status requests, but allow them only from browsers at foo.com, you might use:
    
    SetHandler server-status
    order deny,allow
    deny from all

본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

뜨거운 기사 태그

메모장++7.3.1

메모장++7.3.1

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

SublimeText3 중국어 버전

SublimeText3 중국어 버전

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

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

C++는 프론트엔드인가요, 백엔드인가요? C++는 프론트엔드인가요, 백엔드인가요? Apr 22, 2024 pm 05:33 PM

C++는 프론트엔드인가요, 백엔드인가요?

PHP 프레임워크 성능 비교: 속도와 효율성의 궁극적인 대결 PHP 프레임워크 성능 비교: 속도와 효율성의 궁극적인 대결 Apr 30, 2024 pm 12:27 PM

PHP 프레임워크 성능 비교: 속도와 효율성의 궁극적인 대결

HTML 파일에서 URL을 생성하는 방법 HTML 파일에서 URL을 생성하는 방법 Apr 21, 2024 pm 12:57 PM

HTML 파일에서 URL을 생성하는 방법

회피 모듈은 애플리케이션 계층 DOS 공격으로부터 웹사이트를 보호합니다. 회피 모듈은 애플리케이션 계층 DOS 공격으로부터 웹사이트를 보호합니다. Apr 30, 2024 pm 05:34 PM

회피 모듈은 애플리케이션 계층 DOS 공격으로부터 웹사이트를 보호합니다.

Java 동시 프로그래밍에서 동시성 테스트 및 디버깅을 수행하는 방법은 무엇입니까? Java 동시 프로그래밍에서 동시성 테스트 및 디버깅을 수행하는 방법은 무엇입니까? May 09, 2024 am 09:33 AM

Java 동시 프로그래밍에서 동시성 테스트 및 디버깅을 수행하는 방법은 무엇입니까?

golang 함수 동시성 제어 및 타사 라이브러리 통합 및 확장 golang 함수 동시성 제어 및 타사 라이브러리 통합 및 확장 Apr 25, 2024 am 09:27 AM

golang 함수 동시성 제어 및 타사 라이브러리 통합 및 확장

Eclipse에서 서버를 추가하는 방법 Eclipse에서 서버를 추가하는 방법 May 05, 2024 pm 07:27 PM

Eclipse에서 서버를 추가하는 방법

58 초상화 플랫폼 구축에 알고리즘 적용 58 초상화 플랫폼 구축에 알고리즘 적용 May 09, 2024 am 09:01 AM

58 초상화 플랫폼 구축에 알고리즘 적용

See all articles