Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name test.blabla.com;
- root /var/www/wp01/site;
- index index.php index.html;
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- }
- location ~ \.(jpg|jpeg|svg|png)$ {
- rewrite ^ /wp01/site$uri break;
- proxy_pass https://blabla-assets.fra1.digitaloceanspaces.com;
- proxy_hide_header Strict-Transport-Security;
- autoindex on;
- root /wp01/site;
- }
- location ~ \.css$ {
- rewrite ^ /wp01/site$uri break;
- proxy_pass https://blabla-assets.fra1.digitaloceanspaces.com;
- proxy_hide_header Strict-Transport-Security;
- add_header Content-Type text/css;
- autoindex on;
- root /wp01/site;
- }
- location ~ \.js$ {
- rewrite ^ /wp01/site$uri break;
- proxy_pass https://blabla-assets.fra1.digitaloceanspaces.com;
- proxy_hide_header Strict-Transport-Security;
- add_header Content-Type application/javascript;
- autoindex on;
- root /wp01/site;
- }
- location ~* \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass XX.XX.XX.XX:9100;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_intercept_errors on;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement