Re: Apache aliased directory invisible

2008-10-21 Thread Matthew Seaman

David Karapetyan wrote:
FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: 
Wed Oct  1 10:10:12 UTC 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


Hello all. I would like to make aliased directories in apache visible 
from the directory root. An example: When I visit http://myserver.com/, 
I would like to see the 'icons' folder (suppose that in my document root 
I have directories 'bobo' and 'gogo', but that /icons is actually an 
alias for /usr/local/share/icons). Bobo and gogo show up in the 
directoroy listing when I access http://myserver.com, but not /icons.  
How can I remedy this?




Options Indexes for the icons area?

Create a stub directory icons under your web-root?

Don't use Aliases within apache, but create symlinks instead and tell
Apache to FollowSymLinks?

One or other of those should work...

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Apache aliased directory invisible

2008-10-21 Thread Derek Ragona

At 10:16 PM 10/20/2008, David Karapetyan wrote:

FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0:
Wed Oct  1 10:10:12 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

Hello all. I would like to make aliased directories in apache visible
from the directory root. An example: When I visit http://myserver.com/,
I would like to see the 'icons' folder (suppose that in my document root
I have directories 'bobo' and 'gogo', but that /icons is actually an
alias for /usr/local/share/icons). Bobo and gogo show up in the
directoroy listing when I access http://myserver.com, but not /icons.
How can I remedy this?


add a symbolic link:

ln -s /usr/local/share/icons [path to your doc root]/icons

typically for apache22 this would be:

ln -s /usr/local/share/icons /usr/local/www/apache22/data/icons

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Apache aliased directory invisible

2008-10-21 Thread Barry Byrne
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Derek Ragona
 Sent: 21 October 2008 12:07
 To: David Karapetyan; freebsd-questions@freebsd.org
 Subject: Re: Apache aliased directory invisible
 
 At 10:16 PM 10/20/2008, David Karapetyan wrote:
 FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 
 7.0-RELEASE-p5 #0:
 Wed Oct  1 10:10:12 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
 
 Hello all. I would like to make aliased directories in apache visible
 from the directory root. An example: When I visit 
 http://myserver.com/,
 I would like to see the 'icons' folder (suppose that in my 
 document root
 I have directories 'bobo' and 'gogo', but that /icons is actually an
 alias for /usr/local/share/icons). Bobo and gogo show up in the
 directoroy listing when I access http://myserver.com, but not /icons.
 How can I remedy this?
 
 add a symbolic link:
 
 ln -s /usr/local/share/icons [path to your doc root]/icons
 
 typically for apache22 this would be:
 
 ln -s /usr/local/share/icons /usr/local/www/apache22/data/icons
 

You may also want to check your apache config that the FollowSymLinks option
is on.

Something like:

Options FollowSymLinks

is in the appropriate place. Otherwise, Apache will ignore symbolic links.

 - barry

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache aliased directory invisible

2008-10-20 Thread David Karapetyan
FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: 
Wed Oct  1 10:10:12 UTC 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

Hello all. I would like to make aliased directories in apache visible 
from the directory root. An example: When I visit http://myserver.com/, 
I would like to see the 'icons' folder (suppose that in my document root 
I have directories 'bobo' and 'gogo', but that /icons is actually an 
alias for /usr/local/share/icons). Bobo and gogo show up in the 
directoroy listing when I access http://myserver.com, but not /icons.  
How can I remedy this?

-- 
--
Best,
David Karapetyan
http://davidkarapetyan.homeunix.com
University of Notre Dame
Department of Mathematics
255 Hurley Hall
Notre Dame, IN 46556-4618
Phone: 574-631-5706
Cell:  202-460-5173
Fax:   574-631-6579

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]