在此服务器上找不到URL / phpip

时间:2015-05-11 07:30:24

标签: php

我正在尝试安装新的Web应用程序。为了在我的debian服务器上执行此操作,我遵循了以下过程:

1)提取tarball分布。

tar –xzvf phpip-version.tar.gz

2)重命名目录。

mv phpip-version/ phpip/

3)将您的网络浏览器指向:http://your-server/phpip/

当我在浏览器中输入此URL时,我收到一条错误消息:

  

未找到在此服务器上找不到请求的URL / phpip

我去了日志:

tail -f /var/log/apache2/error.log

这就是我所拥有的:

  

文件不存在:/ var / www / phpip

事实上在var/www我只有index.html

我该怎么办?

以下是/ etc / apache2 / sites-available / phpip

的内容
<VirtualHost *:80>
        ServerName gestionip.ffdj.defense.gouv.fr
        Redirect        / https://gestionip.ffdj.defense.gouv.fr/
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName gestionip.ffdj.defense.gouv.fr
        ServerAdmin admin-intradef@ffdj.defense.gouv.fr
        DocumentRoot /home/web/phpip

        <Directory /home/web/phpip/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>


        AddDefaultCharset UTF-8

        LogLevel warn

        ServerName gestionip.ffdj.defense.gouv.fr
        #   SSL Engine Switch:
        #   Enable/Disable SSL for this virtual host.
        SSLEngine on

        SSLCertificateFile    /etc/ssl/certs/ffdj.defense.gouv.fr.crt
        SSLCertificateKeyFile /etc/ssl/private/server-web.key

#        SSLCertificateChainFile /etc/ssl/ca1.pem

        ErrorLog /home/logs/apache2/error-gestionip.log
        LogLevel warn

        CustomLog /home/logs/apache2/ssl_access-gestionip.log combined

    </VirtualHost>
    </IfModule>

1 个答案:

答案 0 :(得分:1)

将目录移至/var/www

$ mv phpip-version/ /var/www/phpip/