ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Apache virual hosts
@ 2004-11-24 10:09 Jury Levykin
  2004-11-24 10:13 ` Denis Klykvin
  2004-11-24 10:15 ` Mike Lykov
  0 siblings, 2 replies; 6+ messages in thread
From: Jury Levykin @ 2004-11-24 10:09 UTC (permalink / raw)
  To: community

ALM 2.2 Apache 1.3.33

Можно настроить виртуальнык хосты так, чтобы при отсутствии index.html
отображалось содержимое кталога вместо:
You don't have permission to access /dirname/ on this server.

Прaва следующие:
# ls -la
total 16
drwxrwsr-x    3 root     webmaster     4096 Nov 24 12:56 .
drwxr-xr-x    6 root     webmaster     4096 Nov 24 12:21 ..
-rw-r--r--    1 root     webmaster     3978 Nov 24 12:41 _index.html
drwxr-sr-x    2 root     webmaster     4096 Nov 24 12:56 dirname

# ls -la dirname/
total 12
drwxr-sr-x    2 root     webmaster     4096 Nov 24 12:56 .
drwxrwsr-x    3 root     webmaster     4096 Nov 24 12:56 ..
-rw-r--r--    1 root     webmaster     3978 Nov 24 12:41 _index.html

при указании в браузере http://myurl/_index.html
файл _index.html отображается.

В не виртуальном, главном хосте, содержимое каталога отображается.



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

end of thread, other threads:[~2004-11-24 10:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-24 10:09 [Comm] Apache virual hosts Jury Levykin
2004-11-24 10:13 ` Denis Klykvin
2004-11-24 10:27   ` Jury Levykin
2004-11-24 10:30     ` Denis Klykvin
2004-11-24 10:38       ` Jury Levykin
2004-11-24 10:15 ` Mike Lykov

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