Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index index.php index.html index.htm;
- location ~ .php$ {
- try_files $uri =404;
- fastcgi_intercept_errors on;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass php-fpm;
- }
- server {
- listen 80;
- server_name app.com;
- root /var/www/app/;
- include /etc/nginx/default.d/php.conf;
- location / {
- root /var/www/app/frontend/dist;
- try_files $uri $uri/ /index.html =404;
- rewrite ^/deploy /var/www/app/deploy/deploy.php;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement