|
@@ -1,19 +1,19 @@
|
|
|
server {
|
|
|
- listen 9600;
|
|
|
- access_log /data/logs/nginx/api/access.log;
|
|
|
- error_log /data/logs/nginx/api/error.log;
|
|
|
- index index.html index.php;
|
|
|
- root /data/gitcode/yuanchengpasc/public/;
|
|
|
+ listen 9600;
|
|
|
+ access_log /data/logs/nginx/api/access.log;
|
|
|
+ error_log /data/logs/nginx/api/error.log;
|
|
|
+ index index.html index.php;
|
|
|
+ root /data/code/yuanchengpasc/public/;
|
|
|
|
|
|
- #add_header Access-Control-Allow-Origin '*';
|
|
|
- #add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
|
|
|
- #add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'
|
|
|
- location / {
|
|
|
- if (!-e $request_filename) {
|
|
|
- rewrite ^/(.*)$ /index.php/$1 last;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ #add_header Access-Control-Allow-Origin '*';
|
|
|
+ #add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
|
|
|
+ #add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'
|
|
|
+ location / {
|
|
|
+ if (!-e $request_filename) {
|
|
|
+ rewrite ^/(.*)$ /index.php/$1 last;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
location ~ \.(js|css|gif|jpg|jpeg|png|html)$ {
|
|
|
root /data/code/yuanchengpasc/public/;
|