Closed kuroroXF closed 5 years ago
I set up my easyii by using nginx , and my nginx file like this:
server { charset utf-8; client_max_body_size 128M; listen 80; server_name www.easyiicms.test; root /path/to/easyiiCMS; index index.php; access_log /path/to/easyiiCMS/log/access.log; error_log /path/to/easyiiCMS/log/error.log; location ^~ /assets/ { root /path/to/easyiiCMS/assets/; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
But I found that the files in the assets folder can't not be load, the chrome tell me : /assets/501ebee/css/bootstrap.css 403 Forbidden can you tell me how to write the nginx config file , thx !
I fix it , not the nginx config file problem, it's my hold folder power, user chmod to fix it
I set up my easyii by using nginx , and my nginx file like this:
But I found that the files in the assets folder can't not be load, the chrome tell me : /assets/501ebee/css/bootstrap.css 403 Forbidden can you tell me how to write the nginx config file , thx !