Ubuntu 10.04
Ничего понять не могу. 3й день мучаюсь.
Нужно прикрутить домен к VPS.
Конфиг: /etc/apache2/sites-available/q_hasker_ru.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/hasker
ServerName q.hasker.ru
<Directory />
allow from all
Options +Indexes
</Directory>
ScriptAlias /cgi-bin/ "/var/www/hasker/cgi-bin/"
CustomLog /var/www/hasker/acces.log common
ErrorLog /var/www/hasker/error.log
</VirtualHost>
В /etc/apache2/sites-enabled символьная ссылка.
Портс
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Итог: не работает.
С сервера открывает. По IP - загрушку. По домену файл, лежащий /var/www/hasker
Рестарс апаче:
* Restarting web server apache2 [Thu May 17 19:17:31 2012] [warn] NameVirtualHost 46.4.***.***:0 has no VirtualHosts
[Thu May 17 19:17:31 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting [Thu May 17 19:17:32 2012] [warn] NameVirtualHost 46.4.***.***:0 has no VirtualHosts
[Thu May 17 19:17:32 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]
Перепробовал уже, наверное, 2^9 вариантов. Такое ощущение, что фокспроги и апаче - это параллельные прямые.
Да и А запись на домене = IP сервера.
Помогите разобраться.