Best unofficial Apache Server developers community |
|
I'm running a site on AmazonEC2 instance, and so far everything is ok, except a single glitch. When I navigate to www.mysite.com/somepage.html , browser happily opens the desired page. But when I try mysite.com/somepage.html , I go to the root of my site, i.e. to www.mysite.com LiveHTTPHeaders tells me that 301 redirection occurs. So here's the question: what configuration files do I need to change to make redirection respect URL path? Also, I noticed that nginx does the redirection. Does it mean that redirection is happening outside of EC2 instance or not? Thank you in advance.
posted via StackOverflow
|
|
 
|
You should have some kind of settings that is redirecting your request from Following is kind of conf. settings you should find in your
This tells NGINX to redirect request from If yes?, then blindly remove those two lines of conf. |