原来默认是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>
---------------------------------------------------------------------------------------------
默认文档
|
|