[Apache2] Only my first vhost is working

I'm having issues. I setup my first vhost for my main domain. And I know it works because I setup a simple html file, in its new directory. But the rest of my vhosts don't work. Firefox says "Server not found." As if the domain was not hosted at all. Here the vhost snippet of my httpd.conf:

NameVirtualHost *:80

 <directory>Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all</directory> 

 <virtualhost *:80="">ServerName fatal-error.ws
ServerAlias www.fatal-error.ws
DocumentRoot /home/vhosts/fatal-error.ws/</virtualhost> 

 <virtualhost *:80="">ServerName 7prox.info
ServerAlias www.7prox.info
DocumentRoot /home/vhosts/7prox.info/</virtualhost> 

 <virtualhost *:80="">ServerName lagnet.org
ServerAlias www.lagnet.org
DocumentRoot /home/vhosts/lagnet.org/</virtualhost> 

3 Replies

Have you set up DNS (nameservers) for your domains yet?

Did you restart Apache after editing the configuration file?

www.7prox.info gives DNS SERVFAIL errors. You've got to have working DNS before your websites will work.

Hrm… Oh damn. It just hit me what I forgot to do. I adjusted the nameservers for the domains all to ns1.linode.com, ns2 etc… But I forgot to add domain zones in my DNS manager. Doh!

Now I'm getting forbidden errors across all my domains though?

EDIT: Ugh, I got it. When I moved my index.htm file I accidentally renamed it to "inde.htm." Haha, thank you for your help Sweh.

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