You are not logged in.
Pages: 1
Topic closed
Hello,
Have managed to get nginx working, however, when I try accessing phpMyAdmin; http://my-ip/dbacp it gets redirected to http://localhost/dbacp.
I'm then unable to access phpMyAdmin.
Does anyone know how to solve this? I followed the wiki.
Ed1t: This also occur to other sub-folder I have in my document root of nginx.
Last edited by MindTooth (2009-12-04 10:19:33)
Offline
I have the same problem with lighttpd. Using php-cgi. May that be the problem?
Offline
No one out there with an solution? I had hoped to change to either lighttpd or nginx, but if I can't solve this, I must go back to Apache.
Offline
The cause:
When nginx corrects a missing trailing slash, it uses the server_name entry for the redirection URL.
By default /etc/nginx/sites-available/default has the entry server_name localhost;
The solution:
Add the entry server_name_in_redirect off; to the config ( like just below the server_name entry )
http://wiki.nginx.org/NginxHttpCoreModu … n_redirect
( I know the thread is old, but this was one of the first places google pointed me, so came back to post the answer )
Offline
Thank you so incredible much! Where at great help
Had forgot about this and, and though phpBB behaved as well.. Now I know that this was a nginx design. Once again, thank you ![]()
Offline
I had this problem but only in the Chrome browser.
After setting "server_name_in_redirect off" I also had to clear the browser cache.
Offline
eliasw, welcome to the forums. We have a policy to not necrobump. You have provided additional info, which is fine, but I will close this thread now so we don't get any power posts.
https://wiki.archlinux.org/index.php/Fo … Bumping.22
Closing...
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Hi eliasw, and Welcome to Arch Linux ![]()
Be careful of old threads. In this case, it looks like your post is relevant to the topic, even though it is ancient. Thank you. But, I have not seen the participants in the thread for as long as I can remember, so I would not anticipate a response.
Leaving open....
Edit, nope. I guess I won't be leaving it open. My colleague beat me to it.
Last edited by ewaller (2014-03-19 15:20:44)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed