I want to Mask a destiny site in wordops with another domain (i manage both domains an sites) using proxy pass. Tried everything, from using native command:
wo site create origindomain.tld --proxy=destinydomain.tld
Adding more flexible CORS headers on destiny:
more_set_headers 'Access-Control-Allow-Origin: *';
more_set_headers "X-Frame-Options : ALLOWALL";
Or even manually create my vhost conf file in sites-enabled:
`
server {
server_name origindomain.tdl www.origindomain.tdl;
location / {
proxy_pass http://destinydomain.tdl;
proxy_redirect off;
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-Host $server_name;
}
}
`
The best result i get is "502 bad gateway nginx".
Have someone used proxy_pass or --proxy another way than to local IPs? This was really easy on Apache, or even another nginx servers, but with wordops it simply fails.
Iframe or redirect options none is viable.