2013-09-23 46 views
3

我正在測試HipHop虛擬機,以獲得Web應用程序。以前,我是用用這個htacess文件中LAMP environement運行它HHVM - 重寫單入點的規則

Options +FollowSymLinks 
IndexIgnore */* 
# Turn on the RewriteEngine 
RewriteEngine On 
# Rules 
RewriteRule ^(Templates|Ressources)($|/) - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . index.php 

有誰可以告訴我如何在公共秩序的hhvm.hdf文件配置VirutalHost實現這一目標?

回答

3

您可以嘗試的AllowedDirectories虛擬主機組合:

AllowedDirectories { 
    * = Templates 
    * = Ressources 
} 

VirtualHost { 
    * { 
     Pattern = .* 
     RewriteRules { 
      * { 
       pattern = ^(.*)$ 
       to = index.php$1 
       qsa = true 
      } 
     } 
    } 
} 
+0

謝謝康斯坦丁! – adrien334