Hello i’ve got just 2 Servers.
Both are running nginx 0.8.39. Server 1 should be a reverse proxy to
another Server 2 with nginx and a php backend. but when i set proxy_pass
http://server2/; i can’t open admincp/index.php with the url of server
1, it brings me error 404…
This is my location of server 1
location /test/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
#proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://server2:80;
}
know when I got a php script on server 2 that redirect to
server2/directory/index.php i get an error 404
Posted at Nginx Forum:
Can somebody help me?!
I just wan’t to proxy a phpbb to another server. in a colocation. But it
only proxies the index.php and no other pages, when i click on a link
like “domain.org/test/showthread.php?…” it gives me a error 404…
Posted at Nginx Forum:
On Sat, Jun 5, 2010 at 1:04 AM, kleinchris [email protected] wrote:
Can somebody help me?!
I just wan’t to proxy a phpbb to another server. in a colocation. But it only proxies the index.php and no other pages, when i click on a link like “domain.org/test/showthread.php?…” it gives me a error 404…
You didn’t give the configuration for server2, so I can’t understand,
what do you want and what is your problem.
You can try to replace
proxy_pass http://server2:80;
with
proxy_pass http://server2:80/;
–
Boris D…
http://nopaste.info/f43f7c82f5.html
This is Configuration of server2. the / don’t work. same error…
Posted at Nginx Forum: