outlet.ee Posted June 1, 2015 Share Posted June 1, 2015 I am running my PS 152 on nginx and it works otherwise fine. The only thing is that the error pages are displayed the nginx default. Not only that it is not redirecting but even the error page doesn't open if I navigate there directly: myshop.com/index.php?controller=pagenotfound myshop.com/index.php?controller=404 myshop.com/index.php?controller=PageNotFound myshop.com/index.php?controller=pagenotfound myshop.com/lang/page-not-found None of these work, it always gives the nginx default error page. How can I first get the error page working, and how to redirect to the page once I have got it working (there are so many .ini and .conf files in the server, many of them with identical contents, would be grateful to find out the correct file). Link to comment Share on other sites More sharing options...
selectshop.at Posted June 1, 2015 Share Posted June 1, 2015 (edited) You should configure on your apache/ngnix if you are using default error pages or not. Perhaps this topic will help you or your server admin to configure the nginx correctly. http://serverfault.com/questions/354803/nginx-custom-404-error-page-for-virtual-host or at least this one, more specific: http://stackoverflow.com/questions/1024199/nginx-customizing-404-page Edited June 1, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
outlet.ee Posted June 1, 2015 Author Share Posted June 1, 2015 Thank you very much, it was in /etc/nginx/sites-enabled/site-name.me.vhost, had to turn it off at 'fastcgi_intercept_errors on' and restart the nginx. Link to comment Share on other sites More sharing options...
selectshop.at Posted June 1, 2015 Share Posted June 1, 2015 you're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now