R
R
ryzhak2014-09-22 22:11:57
Apache HTTP Server
ryzhak, 2014-09-22 22:11:57

Why does the site on vds not work without www?

The first time I bought a vds server. They gave me his ip address 93.188.163.180.
Bought the bookiebeater.net domain. In the dns zone in the registrar's control panel, I added the following entries:
94aab7b85aa24f86b973617fa629e5d0.png
That is, I created 3 A entries leading to ip VDS *, @, www.
On the server, I added the following virtual host:

<VirtualHost *:80>
  ServerName bookiebeater.net
  ServerAlias www.bookiebeater.net
  ServerAdmin [email protected]
  DocumentRoot /var/www/bookiebeater/

  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory /var/www/bookiebeater/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

As a result, www.bookiebeater.net works correctly, that is, it opens the desired folder on the server, but for some reason the bookiebeater.net address opens the root folder of the server. Tell me where to dig, DNS settings or something wrong with Apache?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Optimus, 2014-09-22
Pyan @marrk2

Usually aliases are registered with www and without www, but apparently it didn’t register or you haven’t found where yet, ask the hosting support.

I
iSize1ce, 2014-09-23
@Pavell18RUS

It's easier to buy ISPmanager.

S
SashkaPro, 2014-09-23
@SashkaPro

Visually, everything is done correctly, it's not about DNS - for sure.
Try specifying the DocumentRoot without the trailing slash (DocumentRoot /var/www/bookiebeater).
In the rest with the config of a difference I do not see.
--
Now I thought, why do
Options FollowSymLinks
AllowOverride None
if you have /var/www/bookiebeater?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question