This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Compatible): Fix Compatible Model not work
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.