ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] vhosts in Apache
@ 2001-02-20  3:56 Dmitry Samoyloff
  2001-02-20  8:58 ` Maxim Savrilov
  0 siblings, 1 reply; 10+ messages in thread
From: Dmitry Samoyloff @ 2001-02-20  3:56 UTC (permalink / raw)
  To: mandrake-russian

Здравствуйте!

Помогите мне, пожалуйста. Я хочу настроить name-based virtual hosts в Apache 
на домашней машине для отладки cgi-скриптов, но пока я в этом деле полный 
чайник. В httpd.conf прописал всё как в примере из документации:

Port 80
ServerName localhost.localdomain

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
DocumentRoot /home/httpd/html
ServerName localhost.localdomain
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot /home/dmitry/public_html
ServerName dmitry.localhost.localdomain
</VirtualHost> 

Если в браузере ввести dmitry.localhost.localdomain, то он нормально 
показывает index.html из /home/dmitry/public_html. Но вот если ввести 
dmitry.localhost.localdomain/cgi-bin, он пытается искать скрипт не в 
/home/dmitry/public_html/cgi-bin (как следовало ожидать), а в 
/home/httpd/cgi-bin !

error-log:
<...>
[Tue Feb 20 02:24:44 2001] [error] [client 127.0.0.1] attempt to invoke 
directory as script: /home/httpd/cgi-bin


Кстати, если в /home/dmitry/public_html/index.html находится форма, которая 
вызывает скрипт в /home/dmitry/public_html/cgi-bin, то скрипт нормально 
работает! А вот сразу его не запустить :-(

То есть, с permissions всё в порядке, дело явно в настройках Apache, 
посоветуйте что-нибудь, а?

С уважением, Дмитрий Самойлов



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

end of thread, other threads:[~2001-02-25  4:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-20  3:56 [mdk-re] vhosts in Apache Dmitry Samoyloff
2001-02-20  8:58 ` Maxim Savrilov
2001-02-20  9:34   ` Re[2]: " Sergey Krivulja
2001-02-20  9:41     ` Maxim Savrilov
2001-02-21  4:43   ` Dmitry Samoyloff
2001-02-22 12:38     ` Mikhail Zabaluev
2001-02-22 12:51       ` Maxim Savrilov
2001-02-23  6:07         ` Dmitry Samoyloff
2001-02-24 20:16           ` Mikhail Zabaluev
2001-02-25  4:39             ` Dmitry Samoyloff

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