wordpress.mydomian.com 404 Error

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 }

permalinks constantly needs re-saving

When you visit the Permalinks page, the permalinks rules are being flushed. It also forces WordPress to reload them. For this reason, you see the issue go away after saving permalink settings. But after some time, it comes back once again . Try following these steps: Deactivate all the plugins. Then activate one by one. … Read more

How to install WordPress on sub directory in ubuntu 16.4 in same vhost with AngularJS

I found the answer server { server_name www.example.com; return 301 $scheme://example.com$request_uri; } server { listen 80; server_name example.com www.example.com; return 301 https://example.com$request_uri; } server { listen 443 ssl; server_name example.com www.example.com; root /www/sites/Yoga-Frontend/dist/Yoga-Frontend; ssl_certificate /etc/ssl/bundle_example.com.crt; ssl_certificate_key /etc/ssl/example.com_private_key.key; location /yoga { index index.php index.html index.htm; try_files $uri $uri/ /yoga/index.php?q=$uri&$args; } location ~ \.php$ { fastcgi_split_path_info ^(/yoga)(/.*)$; … Read more