ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Кудрявцев Сергей" <KudryavtsevSV@rambler.ru>
To: community@lists.altlinux.org
Subject: [Comm] Виртуальные хосты Apache
Date: Thu, 30 Oct 2008 13:28:57 +0300
Message-ID: <49098C69.1070106@rambler.ru> (raw)

Вот конфиг вирт хостов:

NameVirtualHost a.b.c.d

<VirtualHost a.b.c.d>
        ServerAdmin webmasterr@site1.org
        ServerName site1.org:80
        ServerAlias www.site1.org
        DocumentRoot "/var/www/apache2/html/site1.org"
        <Directory />
                Include conf/extra-available/Directory_root_default.conf
        </Directory>
        <Directory "/var/www/apache2/html/site1.org">
                Include conf/extra-available/Directory_html_default.conf
                DirectoryIndex index.php
        </Directory>
        <IfModule log_config_module>
                ErrorLog /var/log/httpd2/site1.org/error_log
                CustomLog /var/log/httpd2/site1.org/access_log combined
                LogLevel debug
        </IfModule>
</VirtualHost>

<VirtualHost a.b.c.d>
        ServerAdmin webmasterr@site2.org
        ServerName site2.org:80
        ServerAlias www.site2.org
        DocumentRoot "/var/www/apache2/html/site2.org"
        <Directory />
                Include conf/extra-available/Directory_root_default.conf
        </Directory>
        <Directory "/var/www/apache2/html/site2.org">
                Include conf/extra-available/Directory_html_default.conf
                DirectoryIndex index.php
        </Directory>
        <IfModule log_config_module>
                ErrorLog /var/log/httpd2/site2.org/error_log
                CustomLog /var/log/httpd2/site2.org/access_log combined
                LogLevel debug
        </IfModule>
</VirtualHost>


При запуске апач пише:
Checking configuration sanity for httpd2:  httpd2: Could not reliably 
determine the server's fully qualified domain name, using a.b.c.d for 
ServerName
[Thu Oct 30 13:17:42 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
Syntax OK
                                                                                                                    
[ DONE ]
Starting httpd2 service: httpd2: Could not reliably determine the 
server's fully qualified domain name, using a.b.c.d for ServerName
[Thu Oct 30 13:17:42 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
                                                                                                                    
[FAILED]

Файл hosts содержит:
a.b.c.d site1 site2


             reply	other threads:[~2008-10-30 10:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-30 10:28 Кудрявцев Сергей [this message]
2008-10-30 10:55 ` Желудков Д.В.
2008-10-30 10:55   ` Кудрявцев Сергей
2008-10-30 11:00     ` Желудков Д.В.
2008-10-30 11:05       ` Кудрявцев Сергей
2008-10-30 11:05       ` Желудков Д.В.
2008-10-30 11:06         ` Кудрявцев Сергей
2008-10-30 11:14           ` Желудков Д.В.
2008-10-30 11:19             ` Кудрявцев Сергей
2008-10-30 11:24               ` Желудков Д.В.
2008-10-30 11:28               ` Желудков Д.В.
2008-10-30 11:34                 ` Кудрявцев Сергей
2008-10-30 11:48                   ` Желудков Д.В.
2008-10-30 11:51                     ` Кудрявцев Сергей
2008-10-31 18:22                       ` Aleksey Avdeev
2008-10-30 11:25 ` Андрей Жмурин
2008-10-30 12:04   ` Кудрявцев Сергей
2008-10-30 12:23     ` Андрей Жмурин
2008-10-30 12:33       ` Кудрявцев Сергей

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49098C69.1070106@rambler.ru \
    --to=kudryavtsevsv@rambler.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git