Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name test.com;
- access_log /home/wwwlogs/test.access.log;
- error_log /home/wwwlogs/test.error.log;
- index index.html index.shtml index.php;
- root /home/wwwroot/test_backend/public;
- location / {
- root /home/wwwroot/test_fe/dist;
- try_files $uri $uri/ /index.html;
- }
- location /api {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location /web {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ .*\.(php)?$
- {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|woff)$
- {
- root /home/wwwroot/test_fe/dist;
- expires 30d;
- access_log off;
- log_not_found off;
- }
- location ~ .*\.(js|css)?$
- {
- root /home/wwwroot/test_fe/dist;
- expires 7d;
- access_log off;
- log_not_found off;
- }
- }
Add Comment
Please, Sign In to add comment