WordPress Installation for multi-domains with nginx and php-fpm

I am new to WordPress. I googled around but could not find precise steps to install WordPress with nginx multi-site configuration. I want to install wordpress 3.3.1 on Ubuntu 11.10. I already installed php5-fpm nginx mysql I have two domains that I want use same wordpress installation domain1.com domain2.com Could you provide nginx and wordpress … Read more

Multisite WordPress nginx uploaded files throw 404

I have a WordPress subdomain multisite install in the /blog subdirectory running on an nginx server. Everything works fine except files which do upload correctly but are not accessible via their url. The part of the config concerning the files is: location ~ ^/files/(.*)$ { try_files /blog/wp-content/blogs.dir/$blogid/$uri /blog/wp-includes/ms-files.php?file=$1 ; access_log off; log_not_found off; expires max; … Read more

Block PHP Files Nginx

In my server block in Nginx config, I have put: location ~* /wp-content/.*.php$ { deny all; access_log off; log_not_found off; } However, if I manually enter in a web browser: https://www.example.com/wp-content/themes/mytheme/functions.php The file is still executed. What am i missing? Also in my wp-config I have /** Absolute path to the WordPress directory. */ if … Read more

ERR_TOO_MANY_REDIRECTS status 302, how to configure NGINX locations to work with AWS ALB?

How to configure NGINX conf location to work with AWS ALB? I have a docker-compose that simulates a staging environment that is deployed to AWS ECS, that works fine, status 200 OK: /review-staging 200 OK /review-staging/wp-admin 200 OK /review-staging/graphql 200 OK Although this works great through Docker-compose setup, the same does not happen once I … Read more