Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name _;
- access_log /var/log/nginx/app.access.log;
- error_log /var/log/nginx/app.error.log;
- # Options
- charset utf-8;
- client_max_body_size 200M;
- # Locations
- location /api/v1/backend/ {
- alias /home/vagrant/www/backend/web/;
- try_files $uri /index.php?$args;
- location ~ ^/api/v1/backend/(.*) {
- include fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_NAME /index.php;
- fastcgi_param SCRIPT_FILENAME ${document_root}index.php;
- }
- }
- location /api/v1/frontend/ {
- alias /home/vagrant/www/frontend/web/;
- try_files $uri /index.php?$args;
- location ~ ^/api/v1/frontend/(.*) {
- include fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_NAME /index.php;
- fastcgi_param SCRIPT_FILENAME ${document_root}index.php;
- }
- }
- location ~ \.(ht|svn|git) {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement