if I change hostname apache doesnt work

August 30, 2016 672 views
Apache Ubuntu

Hi, I want to change my hostname (hostnamectl set-hostname lamp-512mb-nyc3-01) to the same as my domain (xxxxx.com)
But if I change with hostnamectl set-hostname example.com

Then apache doesn't work and showme 404 error.

Where also I need to change the hostname ?

2 comments
  • A little more information would be helpful. What can you tell us about your apache configuration? Are you running multiple virtualhosts? Is the name of your apache virtualhost the same as the hostname you are setting? Is this the webroot (example.org/ ) that you are getting a 404 for or is it a specific page?

1 Answer

I fixed it ... I only need to disable 000-default of apache sites

Have another answer? Share your knowledge.