Question
if I change hostname apache doesnt work
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 ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
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?
Thanks !