New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
google next time:
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-to-use-custom-error-pages-on-ubuntu-14-04
Am not able to read regarding .htaccess in your link. Is supported or not?
404:
301 to www
See above and no - .htaccess is not supported by nginx. That is a nuisance while switching, but easy to handle with some experience.
www to nonwww:
server_name lowendtalk.com www.lowendtalk.com;
nonwww to www:
server_name www.lowendtalk.com lowendtalk.com;
ssl
example conf.d file for owncloud:
http://pastebin.com/raw.php?i=nP3904ZE
simple wordpress config file(I pulled out some custom stuff, but it should work:
http://pastebin.com/raw.php?i=ufVath5E
Thank you guys. Seems complicated.
One more thing... If I install nginx in already running wordpress vps, should I change something after installation? What will heppend wirh the existing .htaccess file? Will they still work or not? Thank you!
htaccess isn't read by nginx. ja?
The site will load, but if you use custom path or other stuff in htaccess then no, those will need to go in the configs and converted by you manually. I believe there are htaccess to nginx converters, works most of the time.