We are looking for someone who can help us in setting up a wordpress server hosted at `example.com/blog`. The service `example.com` is hosted on a different machine/server and the wordpress has to be setup on a different server.

`example.com`uses Nginx as reverse proxy.

Current solution(Not fully working):
* Hosted wordpress on a server with IP say, `a.b.c.d`
* Used nginx on `example.com` server as reverse procy with these rules:
      location ^~ /blog [
        rewrite ^/blog(?:/(.*))?$ /$1 break;
        proxy_pass http://a.b.c.d;
        proxy_set_header X-Forwarded-Proto https;
    ]
* Set `siteurl` and `home`in wp_options as `https://example.com/blog`

This solution renders the homepage of wordpress correctly, but any other page/url like `https://example.com/blog/hello-world` gives Internal server error. The apache logs say:

‘AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.’

Hourly Range: $5.00-$12.00

Posted On: March 31, 2022 22:11 UTC
Category: DevOps Engineering
Skills:WordPress, Web Hosting, NGINX

Country: India

click to apply

Generated by Feedzy