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

Possible to reverse proxy WP multisite to a separate server with NGINX?

I’m not sure if it works first time, but lets try. server { server_name mydomain.com www.mydomain.com; root /var/www/html/wordpress/mydomain.com/wordpress/; # The “^~” modifier makes this location to take priority over regex-matched locations location ^~ /oldsite { proxy_pass http://my.old.ip; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } index index.php index.html; location /wp-content … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)