On Fri, Oct 28, 2016 at 10:17:11AM -0400, stuwat wrote:
Hi there,
> We're trying to point example.com at a site hosted at github...
In general, you proxy_pass to something that you control.
> So we need example.com to point to the site hosted at example.github.io
>
> So a user visits example.c
We're trying to point example.com at a site hosted at github...
So we need example.com to point to the site hosted at example.github.io
So a user visits example.com they get the page hosted at example.github.com,
but with example.com still in the address bar.
HTH
Stuart
Posted at Nginx Forum:
You may want to define example.org as an upstream if it is just an
application server that handles requests, but not entirely sure what you're
trying to accomplish...
upstream anything.you.want {
server 127.0.0.1:PORT # or domain name;
}
server {
server_name example.com;
location / {
proxy_pass
Hi
I have the virtualhost file configured as the following:-
server {
server_name example.com;
location / {
proxy_pass http://example.org;
}
}
When I visit example.com it redirects correctly to example.org, but I need
it to show example.com in the address bar. How can I do this?
i tried chan