[thelist] symlinks/freebsd/apache

Daniel J. Cody djc at five2one.org
Thu Oct 5 12:58:39 CDT 2000


Martin - 

Doing an alias in your apache httpd.conf file would work bunches better.

Alias /photos "/where/ever/pics"
Alias /photoes "/where/ever/pics"
Alias /photos/ "/where/ever/pics"
Alias /photoes/ "/where/ever/pics"

You could also use the 'ReDirect' directive :)

Shout if you need more..

.djc.

martin burns wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> What I'm trying to do is a fairly sensible symlink on
> my server - my main photos section lives at
> http://www.easyweb.co.uk/pics/
> but knowing some people, I'll get attempts to
> get to it at
> http://www.easyweb.co.uk/photo/ and
> http://www.easyweb.co.uk/photos/
> (and having Dan Quayle as a mate (jk) also
> http://www.easyweb.co.uk/photoes/ )
> 
> So I did the sensible thing and set up a couple
> of symlinks:
> bash$ ln -s pics photos
> bash$ ln -s pics photoes
> 
> which gives me (extract):
> lrwxrwxrwx   1 web3060  3060      4 Oct  5 16:40 photo -> pics
> lrwxrwxrwx   1 web3060  3060      4 Oct  5 16:41 photoes -> pics
> lrwxrwxrwx   1 web3060  3060      4 Oct  5 16:41 photos -> pics
> drwxr-xr-x  10 web3060  3060   1024 Oct  3 22:04 pics
> 
> Smurfy, eh? Those Unix classes last year pay off.
> cd photo (etc) gives me exactly what I'd expect - it takes
> me into a dir with all the same content as /pics/.
> 
> So why the hell when I try to access
> http://www.easyweb.co.uk/photo/ or
> http://www.easyweb.co.uk/photo/index.html
> (etc)
> do I get 403 errors?




More information about the thelist mailing list