I have changed the root directive to server block and it works pretty well, special thanks to @RichardSmith, who have had mentioned the problem.
in case someone has the same Problem I will write a short explanation code.
server {
listen 80;
root /var/www/blog.mydomian.com
server_name blog.mydomian.com www.blog.mydomian.com
# the rest of configuration
}
Related Posts:
- WordPress Multisite, NGINX and WordPress Subdirectory Install
- WordPress Multisite with multiple domains using Nginx
- WordPress Multisite with NGINX, subfolders, and FROM a subfolder
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- NGINX Multisite Rewrite rules
- Nginx rules for subdomain multisite install (Bedrock)
- Multisite WordPress nginx uploaded files throw 404
- WordPress Installation for multi-domains with nginx and php-fpm
- how do I configure nginx for wordpress multisite, it occurs ERR_TOO_MANY_REDIRECTS
- Subdirectory multisite – only root admin available on NGINX
- WordPress multisite subdirectory on nginx behind reverse proxy
- Multisite setup on VVV with bedrock
- How to run a subdirectory multisite install under a subdomain
- NGINX rewrite rules for sub subdomains
- Mapping subdomain to point to sudirectory site in WordPress Multisite Network
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- WordPress Network (multisite) — how to ensure each site has their own admin URL?
- Nginx — WordPress multisite with root folder in own directory
- Help with multisite redirect issues using Cherokee OR solid nginx config?
- WordPress in subdirectory, Multisite using subdomains Nginx
- Some permalinks are not working and show 404
- Why WordPress w/ Nginx Multisite Only Lets Admin Upload ZIP Plugins But Not Themes? [closed]
- Setup another new subdomain root on top of multisite configuration
- WordPress multisite second site admin resulting in too many redirects error
- Possible to reverse proxy WP multisite to a separate server with NGINX?
- Multisite wp-admin redirecting to main wp-admin using NGINX
- Nginx rules for subdomain multisite install (Bedrock)
- WordPress Multisite FQDN Admin Access
- Using www along with non-www for main domain in multisite installation
- Why does defining MULTISITE true change the database connection in use
- WordPress on Nginx – Missing admin/toolbar
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- wordpress multisite is broken in nginx but working in apache
- How to disable a network enabled plugin for just one site?
- WordPress Multisite: How to make all media library items available for every site?
- How to setup LDAP authentication with WP multisite
- Set default avatar network-wide
- Multisite: Develop locally using production images with .htaccess
- latest 5 posts using switch_to_blog loop
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- How do I set a default theme in multisite network
- Two WordPress sites sharing the same database
- Multisite use language code as subdirectory
- Sub-subdomain getting redirected to main domain
- Multisite – create new site with precreated pages, menu etc
- WordPress (+WPMU) Import/Export ALL settings?
- How to work on a live WPMS blog when domain is unresolved? [closed]
- How do you load WordPress from an external script when using MultiSite? [duplicate]
- Has WP and MU fully merged?
- Hook up MU site creation
- Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation
- Fresh Multisite Install – Can’t Log In
- current_user_can() always returns true if user is super admin
- multisite hook for Add Existing User
- Displaying a message upon user registration
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- How can i redirect my Blog to a Subdomain?
- WordPress Multisite Redirection Issue
- Multisite user roles – capabilities not working
- WordPress: how to change URL for individual MultiSites?
- Enable “My blogs” in a custom installation
- HTTPS Warning and Certificate Error when Updating Network
- Complex WordPress Website
- Where to set individual blog quotas?
- Create sub-domain for multisite and multi languages?
- How to retrieve Post Excerpt from a different site in the Network
- Changing the language for each individual site in wordpress multisite
- how to have __() translating in languages different from admin?
- How to temporarily redirect front page of a network to one of the sites/blogs?
- Multisite: Redirect to appropriate domain if subdomain doesn’t exist
- How to change a user role after registering in multisite?
- Set a default page template to load for multi-site
- Multisite questions
- Delete user from multisite when removed from subsite
- how to control display switch_to_blog( $subsite->blog_id ); $tags = wp_tag_cloud
- WordPress multisite with domains and subdomains
- Which Multi-language option for WordPress is best from an SEO and Woocommerce perspective?
- Multisite 404 page
- Sort posts according to date
- Multisite for main in subdirectory, subdomain and subfolders (EN/ES)
- the_content not working on one of two Multisite sites
- filter posts without images or featured image
- Tracing non-uniform slowdown on a multisite install with multiple domains
- After switch domain, some parts of my site still point to my old domain
- Hook into ‘admin_url’ but only on Mysites admin bar menu
- Add file at the root of mapped domain in multisite
- Looking for most efficient way to ‘deploy’ single wordpress page to multiple external subdomains
- WordPress multisite REST API connection refused with android – redirects to home page when using IP address in Postman
- Multisite installation steps?
- Which action hook to update custom field at network/site-info.php in multisite on update site info
- How To Change the URL of a WordPress Multisite
- Can’t import posts in multisite
- User registration problem on multisites web
- Default sub-pages on WordPress Multisite
- Multi site and media uploader
- There is no featured image in my post in wordpress multisite theme [closed]
- Subdomain add comment redirect to 404 not found page iis server
- WPMU and Chrimes Family Link app