Apache子域显示404文件的PHP文件

时间:2012-01-06 13:44:59

标签: apache .htaccess subdomain

我为其中一个域创建了一个子域,现在我有以下问题:

if I go to blog.domain.com it shows me index.html which is fine  
if I go to blog.domain.com/index.html it shows me index.html which is fine  
if I go to blog.domain.com/somelog.txt it shows me somelog.txt which is fine  

但如果我尝试访问任何.php文件(wordpress),它将显示我找不到404页面。

我做错了什么?我是否以错误的方式设置了apache?

apache / httpd.conf中的以下信息:

<VirtualHost 00.00.00:80>
ServerAdmin info@domain.com
ServerName domain.com
ServerAlias domain.com
DocumentRoot /var/www/domain.com
<Directory /var/www/domain.com>
Order Deny,Allow
Allow from all
Options -Indexes
</Directory>
</VirtualHost>

这是新添加的子域名:

<VirtualHost 00.00.00:80>
ServerAdmin info@domain.com
ServerName blog.domain.com
ServerAlias blog.domain.com
DocumentRoot /var/www/domainBLOG
<Directory /var/www/domainBLOG>
Order Deny,Allow
Allow from all
Options -Indexes
</Directory>
</VirtualHost>

0 个答案:

没有答案