- Lighttpd
- Andre Bogus
- 175字
- 2021-08-25 18:06:21
Extended Virtual Hosting
Too simple? Well, we can gain one level of complexity by using mod_evhost
. The "e" stands for extended and while it does a little more than mod_simple_vhost
, the configuration is even more minimal. In fact, there is only one option:
evhost.path-pattern = "/var/www/vhost/%3.%0/htdocs"
This example would do exactly the same as the code above, only using mod_evhost
instead of mod_simple_vhost
. The percent-signs with numbers are placeholders for the following values (in our example for the subdomain some.domain.myvirtualhost.net):

This implies that "%0" could also be stated as "%2.%1". We do not gain much flexibility over mod_simple_vhost
; the most common usage is:
evhost.path-pattern = "/var/www/vhost/%0/%3/htdocs"
So, we can have a directory per-domain containing a directory for each subdomain, or if we serve only one domain, we can leave out the domain name:
evhost.path-pattern = "/var/www/vhost/%3/htdocs"
Now, we have omitted the domain name in our path. We can also use a similar pattern to create per-user homepages under http://username.myvirtualhost.net
where every user has a home directory under /home/username
with a subdirectory html
:
evhost.path-pattern = "/home/%3/html"
- 中文版3ds Max 2013-VRay效果圖制作從新手到高手
- 創意UI:Photoshop玩轉移動UI設計
- Excel 2013電子表格處理
- ABAQUS基礎入門與案例精通
- 專業級音樂制作理論與實踐Pro Tools:從入門到應用
- 中文版Rhino 5.0完全自學教程(第3版)
- 中文版CorelDRAW X6基礎培訓教程(第2版)
- SolidWorks 2018有限元:運動仿真與流場分析自學手冊
- Premiere Pro CC 2018基礎教程(第3版)
- 邊做邊學:Photoshop CS6數碼藝術照片后期處理教程
- Indesign平面排版技術應用
- After Effects印象 影視高級特效光影篇
- Photoshop攝影后期必修5項核心技法 基本調整+光影校正+色彩修飾+局部處理+銳化降噪
- 從零開始:Photoshop CS6中文版基礎培訓教程
- Photoshop CS5數字圖像處理