ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Виртуальные хосты Apache
@ 2008-10-30 10:28 Кудрявцев Сергей
  2008-10-30 10:55 ` Желудков Д.В.
  2008-10-30 11:25 ` Андрей Жмурин
  0 siblings, 2 replies; 19+ messages in thread
From: Кудрявцев Сергей @ 2008-10-30 10:28 UTC (permalink / raw)
  To: community

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

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-10-31 18:22 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 10:28 [Comm] Виртуальные хосты Apache Кудрявцев Сергей
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       ` Кудрявцев Сергей

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