I'm trying to set up VHOST

I'm trying to set up VHOST on mt CentOS 7 box and am following this tutorial (https://www.linode.com/docs/web-servers/lamp/lamp-on-centos-7/).

Here's the error message I get when I try to restart the server with my VHOST file. When I take the VHOST away, it works just fine via IP:

sudo systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code.

My vhost file:

generationmillenniumtech.com *:80

<virtualhost *:80=""> ServerAdmin generationmillenniumtech.com ServerName generationmillenniumtech.com ServerAlias www.generationmillenniumtech.com DocumentRoot /var/www/html/generationmillenniumtech.com/public_html/ </virtualhost>

3 Replies

For anyone that is struggling with this in the world wide web here is the FIXED version of the vhost file:

<virtualhost *:80=""> ServerName www.generationmillenniumtech.com DocumentRoot /var/www/html/generationmillenniumtech.com/public_html/ ServerAlias generationmillenniumtech.com </virtualhost>

Greetings @yslish,

Thanks for posting the answer to your query. If anything else comes up be sure to let us know.

Best,
Preston
Linode Support Team

Do you want to setup vhost the try to follow this tutorial at https://www.opencloudmanifesto.org/

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct