久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

EZ Publish/EZ Publish虛擬主機(jī)設(shè)置

來(lái)自站長(zhǎng)百科
跳轉(zhuǎn)至: 導(dǎo)航、? 搜索

EZ Publish | EZ Publish安裝與卸載 | EZ Publish的使用 | EZ Publish常見問題 | EZ Publish其他

本條目介紹了如何在Apache 中為eZ Publish 配置虛擬主機(jī)。只有當(dāng)使用主機(jī)名訪問方法(最安全的方法)時(shí),才需要配置虛擬主機(jī)。

通過(guò)使用虛擬注意,可以在同一臺(tái)服務(wù)器上運(yùn)行多個(gè)站點(diǎn)。站點(diǎn)通常是通過(guò)它們各自的主機(jī)名來(lái)區(qū)分。Apache 會(huì)根據(jù)訪問的域名使用相應(yīng)的配置。

通用虛擬注意配置[ ]

虛擬主機(jī)通常在"httpd.conf"(Apache 服務(wù)器的主要配置文件)結(jié)尾處定義??梢詮?fù)制以下內(nèi)容并替換方括號(hào)"[]"內(nèi)部的內(nèi)容。參閱下面真實(shí)的虛擬主機(jī)配置文件示例。

NameVirtualHost [IP_ADDRESS]
<VirtualHost [IP_ADDRESS]:[PORT]>
<Directory [PATH_TO_EZPUBLISH]>
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule mod_php5.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
</IfModule>
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule content/treemenu/?$ /index_treemenu.php [L]
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* -
[L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/robots\.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug\.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
RewriteRule .* /index.php
</IfModule>
DocumentRoot [PATH_TO_EZPUBLISH]
ServerName [SERVER_NAME]
ServerAlias [SERVER_ALIAS]
</VirtualHost>
[IP_ADDRESS] 虛擬主機(jī)的IP 地址,例如:"128.39.140.28"。Apache 允許使用通配符("*")
[PORT] WEB 服務(wù)器的監(jiān)聽端口。端口配置是可選配置,默認(rèn)端口為80。IP 地址與端口的組合通常被稱為套接字。Apache 允許使用通配符("*")
[PATH_TO_EZPUBLISH] eZ Publish 安裝目錄的絕對(duì)路徑。如:"/var/www/ezpublish-3.6.0"
[SERVER_NAME] Apache 需要監(jiān)控的IP 地址或主機(jī)名。如果匹配,對(duì)應(yīng)的虛擬主機(jī)配置會(huì)被使用
[SERVER_ALIAS] Apache 需要監(jiān)控的附加的主機(jī)名/IP 地址。如果匹配,對(duì)應(yīng)的虛擬主機(jī)配置會(huì)被使用

注意:"mod_rewrite"模塊必須在"httpd.conf"中啟用,才能使用Rewrite Rules。


NameVirtualHost[ ]

"NameVirtualHost"配置可能已經(jīng)存在。如果定義新的NameVirtualHost 會(huì)造成沖突。如果“ Apache 報(bào)告如“NameVirtualHost [IP_ADDRESS]沒有VirtualHost ”或“ 不能混用*端口和非*端口的NameVirtualHost 地址 ”的錯(cuò)誤,嘗試注釋NameVirtualHost 這一行。詳情請(qǐng)參閱http://httpd.apache.org/docs/1.3/mod/core.html#namevirtualhost 了解更多關(guān)于NameVirtualHost 的內(nèi)容。

SOAP 與WebDAV[ ]

如果希望在eZ Publish 中使用SOAP 與/或WebDAV,需要在虛擬主機(jī)配置文件中添加以下內(nèi)容:

RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) /webdav.php [L]
RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) /soap.php [L]
ServerAlias soap.example.com
ServerAlias webdav.example.com

配置示例[ ]

此示例演示了如何在Apache 中為eZ Publish 配置虛擬主機(jī)。假設(shè)eZ Publish 安裝在"/var/www/example",并且可以通過(guò)以下URL 訪問:

? http://www.example.com (公共站點(diǎn)入口)

? http://admin.example.com(管理界面站點(diǎn)入口)

為了達(dá)到這個(gè)目的,需要配置Apache 和eZ Publish 從而保證它們可以正確相應(yīng)不同的請(qǐng)求。

配置eZ Publish[ ]

站點(diǎn)入口配置eZ Publish 需要被配置為使用主機(jī)名訪問方法??梢酝ㄟ^(guò)安裝向?qū)Щ蚴謩?dòng)編輯"settings/override/site.ini.append.php"。典型的配置如下:

...
[SiteAccessSettings]
AvailableSiteAccessList[]
AvailableSiteAccessList[]=example
AvailableSiteAccessList[]=example_admin
MatchOrder=host
HostMatchMapItems[]=www.example.com;example
HostMatchMapItems[]=admin.example.com;example_admin
...

以上配置要求eZ Publish 為"www.example.com"使用"example"站點(diǎn)入口,為"admin.example.com"使用"example_admin"站點(diǎn)入口。參閱“EZ Publish基本概念(二)”中的“站點(diǎn)管理”章節(jié)了解更多站點(diǎn)管理的內(nèi)容。

Apache 配置[ ]

虛擬主機(jī)配置

對(duì)此我們先做出一個(gè)安裝假設(shè)

? eZ Publish 被安裝在"/var/www/example"

? 服務(wù)器IP 地址為128.39.140.28

? 希望通過(guò)"www.example.com"和"admin.example.com"訪問站點(diǎn)

以下虛擬主機(jī)配置需要被添加到"http.conf"結(jié)尾處:

NameVirtualHost 128.39.140.28
<VirtualHost 128.39.140.28>
<Directory /var/www/example>
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule mod_php5.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
</IfModule>
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule content/treemenu/?$ /index_treemenu.php [L]
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* -
[L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/robots\.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug\.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
RewriteRule .* /index.php
</IfModule>
DocumentRoot /var/www/example
ServerName www.example.com
ServerAlias admin.example.com
</VirtualHost>

注意:不必為"admin.example.com"配置單獨(dú)的虛擬主機(jī),它可以作為"ServerAlias"添加。

可以在同一個(gè)虛擬主機(jī)內(nèi)使用apache1 和apache2。這種方式允許用戶為兩個(gè)服務(wù)器中使用同一個(gè)虛擬主機(jī)。

<IfModule mod_php5.c>
# If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
# instead of <IfModule mod_php5.c>.
# some parts/addons might only run safe mode on
php_admin_flag safe_mode Off
# security just in case
php_admin_value register_globals 0
# performance
php_value magic_quotes_gpc 0
# performance
php_value magic_quotes_runtime 0
#http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
php_value allow_call_time_pass_reference 0
</IfModule>
<IfModule sapi_apache2.c>
# If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
# instead of <IfModule mod_php5.c>.
# some parts/addons might only run safe mode on
php_admin_flag safe_mode Off
# security just in case
php_admin_value register_globals 0
# performance
php_value magic_quotes_gpc 0
# performance
php_value magic_quotes_runtime 0
#http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
php_value allow_call_time_pass_reference 0
</IfModule>

參考來(lái)源[ ]

EZ Publish使用手冊(cè)導(dǎo)航

EZ Publish安裝卸載

EZ Publish正常安裝 | EZ Publish手動(dòng)安裝 | EZ Publish自動(dòng)安裝 | EZ Publish虛擬主機(jī)設(shè)置 | EZ Publish使用擴(kuò)展 | EZ Publish的卸載

EZ Publish的使用

模板使用:

EZ Publish節(jié)點(diǎn)模板 | EZ Publish系統(tǒng)模板 | EZ Publish Pagelayout頁(yè)頭信息 | EZ Publish Pagelayout變量 | EZ Publish 模板注釋 | EZ Publish 模板變量類型 | EZ Publish 模板變量用法 | EZ Publish 調(diào)查數(shù)組和對(duì)象 | EZ Publish 模板控制結(jié)構(gòu) | EZ Publish 函數(shù)與操作符 | EZ Publish URL處理 | EZ Publish 內(nèi)容提取 | EZ Publish 模板重設(shè)系統(tǒng)
系統(tǒng)功能: EZ Publish 系統(tǒng)記帳 | EZ Publish 策略功能 | EZ Publish 多語(yǔ)言使用(一) | EZ Publish 多語(yǔ)言使用(二) | EZ Publish 集群的使用 | EZ Publish 安裝包的使用 | EZ Publish Cronjob腳本的使用 | EZ Publish 多貨幣功能 | EZ Publish 通知功能
其他功能: EZ Publish 增值稅(VAT)系統(tǒng) | EZ Publish 改進(jìn)的商品配送系統(tǒng) | EZ Publish 多語(yǔ)言URL別名 | EZ Publish 登錄后高級(jí)重定向 | EZ Publish 檢索引擎 | EZ Publish WebDAV | EZ Publish 視圖緩存

EZ Publish常見問題

EZ Publish 安裝常見問題 | EZ Publish 使用常見問題

EZ Publish其他

EZ Publish內(nèi)部結(jié)構(gòu) | EZ Publish內(nèi)容與界面 | EZ Publish內(nèi)容管理(一) | EZ Publish內(nèi)容管理(二) | EZ Publish配置模型 | EZ Publish模塊與視圖 | EZ Publish URL 翻譯 | EZ Publish 界面 | EZ Publish訪問控制 | EZ Publish網(wǎng)絡(luò)商店 | EZ Publish工作流