[英]Apache Alias - PHP files are downloaded by browser instead
PHP files are downloaded by browser instead, when I visiting http://domain.com/hk .当我访问http://domain.com/hk时,PHP 文件由浏览器下载。
but http://domain.hk works fine但http://domain.hk工作正常
======= Platform: CentOS 6 (Plesk Panel) ======== 平台:CentOS 6(Plesk 面板)
My vhost.conf under domain.com我在 domain.com 下的 vhost.conf
AddType application/x-httpd-php5 .php
Alias "/hk" "/var/www/vhosts/domain.hk/httpdocs"
<Directory "/hk">
Options FollowSymlinks
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
There is an issues with your PHP-handler.您的 PHP 处理程序存在问题。 Try to remove that from your vhost config and check it.
尝试从您的 vhost 配置中删除它并检查它。
And also let me know which php version is installed on your server ?还让我知道您的服务器上安装了哪个 php 版本?
我本人也有同样的问题,这是很久以前的事了,但是您有解决方案吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.