首頁 後端開發 php教程 Apache Reference Manual (9)_PHP教程

Apache Reference Manual (9)_PHP教程

Jul 13, 2016 pm 05:12 PM
apache DE directive reference syntax

PidFile directive
Syntax: PidFile filename
Default: PidFile logs/httpd.pid
Context: server config
Status: core
The PidFile directive sets the file to which the server records the process id of the daemon. If the filename does not begin with a slash (/) then it is assumed to be relative to the ServerRoot. The PidFile is only used in standalone mode.
It is often useful to be able to send the server a signal, so that it closes and then reopens its ErrorLog and TransferLog, and re-reads its configuration files. This is done by sending a SIGHUP (kill -1) signal to the process id listed in the PidFile.
The PidFile is subject to the same warnings about log file placement and security.
--------------------------------------------------------------------------------
Port directive
Syntax: Port number
Default: Port 80
Context: server config
Status: core
Number is a number from 0 to 65535; some port numbers (especially below 1024) are reserved for particular protocols. See /etc/services for a list of some defined ports; the standard port for the http protocol is 80.
The Port directive has two behaviors, the first of which is necessary for NCSA backwards compatibility (and which is confusing in the context of Apache).
In the absence of any Listen or BindAddress directives specifying a port number, a Port directive given in the "main server" (i.e., outside any section) sets the network port on which the server listens. If there are any Listen or BindAddress directives specifying :number then Port has no effect on what address the server listens at.
The Port directive sets the SERVER_PORT environment variable (for CGI and SSI), and is used when the server must generate a URL that refers to itself (for example when creating an external redirect to itself). This behaviour is modified by UseCanonicalName.
In no event does a Port setting affect what ports a VirtualHost responds on, the VirtualHost directive itself is used for that.

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/629540.htmlTechArticlePidFile directive Syntax: PidFile filename Default: PidFile logs/httpd.pid Context: server config Status: core The PidFile directive sets the file to which the server records the pr...
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱門文章

倉庫:如何復興隊友
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
1 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱門文章

倉庫:如何復興隊友
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
1 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱門文章標籤

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

System76 提示 Fedora Cosmic 將於 2025 年與 Fedora 42 一起發布 System76 提示 Fedora Cosmic 將於 2025 年與 Fedora 42 一起發布 Aug 01, 2024 pm 09:54 PM

System76 提示 Fedora Cosmic 將於 2025 年與 Fedora 42 一起發布

c++屬於前端還是後端 c++屬於前端還是後端 Apr 22, 2024 pm 05:33 PM

c++屬於前端還是後端

PHP 框架效能比較:速度與效率的終極對決 PHP 框架效能比較:速度與效率的終極對決 Apr 30, 2024 pm 12:27 PM

PHP 框架效能比較:速度與效率的終極對決

html檔案怎麼產生網址 html檔案怎麼產生網址 Apr 21, 2024 pm 12:57 PM

html檔案怎麼產生網址

evasive 模組保護您的網站免受應用程式層 DOS 攻擊 evasive 模組保護您的網站免受應用程式層 DOS 攻擊 Apr 30, 2024 pm 05:34 PM

evasive 模組保護您的網站免受應用程式層 DOS 攻擊

golang函數並發控制與第三方函式庫的整合與擴展 golang函數並發控制與第三方函式庫的整合與擴展 Apr 25, 2024 am 09:27 AM

golang函數並發控制與第三方函式庫的整合與擴展

Java 並發程式設計如何進行並發測試與除錯? Java 並發程式設計如何進行並發測試與除錯? May 09, 2024 am 09:33 AM

Java 並發程式設計如何進行並發測試與除錯?

eclipse如何新增伺服器 eclipse如何新增伺服器 May 05, 2024 pm 07:27 PM

eclipse如何新增伺服器

See all articles