-1
我在遠程服務器和Apache上配置了apache和php。 當我將我的php文件放在/ var/www中時,URL不重定向。Apache無法重定向到遠程服務器的根文件夾
當我鍵入URL http://xxx.xx.xx.x 我得到以下的輸出:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
在/etc/apache2/apache.conf我不覺得下面的框 我添加下面的框,並重新啓動Apache的還是它沒有按't重定向到/ var/www
<VirtualHost *:80>
ServerName xxx.xx.xx.x
DocumentRoot /var/www/
</VirtualHost>
請讓我知道。
您是否爲/ var/www添加了指令讓apache知道您將允許訪問該目錄? –
teambob
2013-03-18 03:50:11