Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(Compatible): Fix Compatible Model not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Feb 6, 2019
1 parent 2ffc1ac commit a1fb974
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

// web入口文件

require __DIR__ . '/../../../vendor/autoload.php';
require __DIR__ . '/../../vendor/autoload.php';

Rid\Config\Env::load(__DIR__ . '/../../../.env');
Rid\Config\Env::load(__DIR__ . '/../../.env');

$config = require __DIR__ . '/../config/http_compatible.php';
(new Rid\Http\Application($config))->run();
52 changes: 52 additions & 0 deletions migration/ridpt_compatible.nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
server
{
listen 80;
#listen [::]:80;
server_name ridpt.rhilip.info ;
index index.html index.htm index.php default.html default.htm default.php;
root /data/wwwroot/ridpt.rhilip.info/apps/public/;
index index.php index.html index.htm;

#error_page 404 /404.html;

# Deny access to PHP files in specific directory
location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}

location ~ ^(.+\.php)(.*)$ {
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
include fastcgi_params;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

location ~ /.well-known {
allow all;
}

location ~ /\.
{
deny all;
}

access_log /data/wwwlogs/ridpt.rhilip.info.log;
error_log /data/wwwlogs/ridpt_error.log;
}
File renamed without changes.

0 comments on commit a1fb974

Please sign in to comment.