当前位置:论坛首页 > Linux面板 > 求助

站点默认访问有问题

发表在 Linux面板2017-11-1 13:11 [复制链接] 1 1411

原来默认是index.php  我修改为首页默认访问1.php  但是访问站点的时候还是index.php
------------------------------------------------------------------------------------------------
配置文件如下
<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/wx.auvla.cn/"
    ServerName 249ad48c.wx.auvla.cn
    ServerAlias wx.auvla.cn
    ErrorLog "/www/wwwlogs/wx.auvla.cn-error_log"
    CustomLog "/www/wwwlogs/wx.auvla.cn-access_log" combined
    #HTTP_TO_HTTPS_START
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule (.*) https://%{SERVER_NAME}$1 [L,R=301]
    </IfModule>
    #HTTP_TO_HTTPS_END

    #PHP
    <FilesMatch \.php$>
            SetHandler "proxy:unix:/tmp/php-cgi-56.sock|fcgi://localhost"
    </FilesMatch>

    #PATH
    <Directory "/www/wwwroot/wx.auvla.cn/">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        DirectoryIndex 1.php
    </Directory>
</VirtualHost>
<VirtualHost *:443>
    ServerAdmin webmasterexample.com
    DocumentRoot "/www/wwwroot/wx.auvla.cn//"
    ServerName SSL.wx.auvla.cn
    ServerAlias wx.auvla.cn
    errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/wx.auvla.cn-error_log"
    CustomLog "/www/wwwlogs/wx.auvla.cn-access_log" combined

    #SSL
    SSLEngine On
    SSLCertificateFile /etc/letsencrypt/live/wx.auvla.cn/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/wx.auvla.cn/privkey.pem
    SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
    SSLProtocol All -SSLv2 -SSLv3
    SSLHonorCipherOrder On

    #PHP
    <FilesMatch \.php$>
            SetHandler "proxy:unix:/tmp/php-cgi-56.sock|fcgi://localhost"
    </FilesMatch>

    #PATH
    <Directory "/www/wwwroot/wx.auvla.cn//">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex 1.php
    </Directory>
</VirtualHost>


---------------------------------------------------------------------------------------------
默认文档
微信图片_20171101130926.png

使用道具 举报 只看该作者 回复
发表于 2017-11-1 15:00:45 | 显示全部楼层
看配置文件没发现问题  根目录确定有1.php文件?你清下浏览器缓存试试?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表