浏览代码

Minor changes to index.php

main
Simon Bowie 3 年前
父节点
当前提交
30c7483b6e
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. +2
    -2
      nginx/default.conf
  2. +1
    -0
      site/public/index.php

+ 2
- 2
nginx/default.conf 查看文件

server { server {


listen 80; listen 80;
index index.php index.html;
index index.php index.phtml index.html;
server_name localhost; server_name localhost;
error_log /var/log/nginx/error.log; error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log; access_log /var/log/nginx/access.log;
root /var/www/html/public; root /var/www/html/public;


location ~ \.php$ {
location ~ \.(php|phtml)$ {
try_files $uri =404; try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000; fastcgi_pass php:9000;

+ 1
- 0
site/public/index.php 查看文件

?> ?>


</body> </body>
</html>

正在加载...
取消
保存