18
我在Ubuntu上运行Apache。我在/ var/WWW文件夹包含两个目录用Apache服务多个目录
/codeigniter
/wordpress
的,我想mydomain.com指向/笨和mydomain.com/blog指向/ WordPress的。我已经实现了第一个,但不是第二个。
我已在现场可用/ mydomain.com
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.mydomain.com
ServerAlias mydomain.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /var/www/codeigniter/public
<Directory "/var/www/codeigniter/public">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
这工作,当我去mydomain.com在我的浏览器需要我给我的笨目录下。然而,当我去mydomain.com/blog时,我该如何让apache带我到我的wordpress目录?
由于这个工程。但是,如果我去像mydomain.com/blog/article-1这样的事情,我会再次回到codeigniter目录。你知道如何阻止它吗? – Pattle 2013-05-07 22:49:24
AliasMatch ^/blog /(*)/html/file.php – dave 2013-05-08 01:13:51