By matt1114784
Hi everyone,
I really need some help…I’m a noob :)
I installed a site on DO using easyengine. I am able to get Wordpress to install and add content and such.
When I go into WP admin and change the site from nonwww to www the site crashes. The nonwww version works fine and 301’s the www version.
I am trying to follow these instructions:
Here is my problem. I followed the instructions. I opened up Putty, logged in and entered: sudo vi /etc/nginx/sites-enabled/default
After that loads, I get some white and blue text.
I enter :
server { listen 80; server_name example.com; return 301 $scheme://www.example.com$request_uri; }
Of course swapping out the example.com for my domain.
After I do that, I can’t figure out how to save the file.
I think that’s the last step where I get lost. Any advice would be greatly appreciated.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hope this helps… http://www.cyberciti.biz/faq/save-file-in-vi-vim-linux-apple-macos-unix-bsd/
If you are struggling with vi, you could always try nano. I much prefer nano for text editing and I’m also n00b.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.