webadmin_prob_users_links_point_to_root

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Simple [I think] apache question
From: Huub Schuurmans <twasm@aimnet.com>
Date: Wed, 26 Apr 2000 12:20:03 -0400

Eric Fixler wrote:
> 
> Hello all.
> 
> I have an apache that has user directories, in the standard place
> [~/public_html] enabled.
> 
> It works fine, except that URLs that begin "/" in files in the user
> dirs (i.e. you got to them by using a URL with a ~) point at files in
> the main web root directory.
> 
> I'd like them to point to ~/public_html/ instead (i.e. the root for
> the particular user)
> 
> What's the right/simple way to do this?
> 

one obvious solution: use relative addressing (i.e. do not start with
"/").
Huub

===

Subject: Re: Simple [I think] apache question 
From: J C Lawrence <claw@cp.net>
Date: Wed, 26 Apr 2000 13:16:30 -0700

On Wed, 26 Apr 2000 12:05:17 -0700 
Eric Fixler <fix@idiom.com> wrote:

> I'd like them to point to ~/public_html/ instead (i.e. the root
> for the particular user)

Use the BASE directive in your HTML?

===

Subject: Re: Simple [I think] apache question
From: Eric Fixler <fix@idiom.com>
Date: Wed, 26 Apr 2000 14:55:20 -0700

Hello all.  Thanks for the replies.

I am aware of relative addressing and base hrefs.

The gist of this is that a userdir space is being used for 
prototyping something that will eventually be moved elsewhere.  I 
don't have full control over the HTML, so I was hoping that I could 
use configuration drectives in apache to do this.

After all, he root directory of a userdir really is, conceptually at 
least, ~/html.

===

Subject: Re: Simple [I think] apache question
From: Huub Schuurmans <twasm@aimnet.com>
Date: Wed, 26 Apr 2000 15:58:23 -0400

Eric Fixler wrote:
> 
> Hello all.  Thanks for the replies.
> 
> I am aware of relative addressing and base hrefs.
> 
> The gist of this is that a userdir space is being used for
> prototyping something that will eventually be moved elsewhere.  I
> don't have full control over the HTML, so I was hoping that I could
> use configuration drectives in apache to do this.
> 
> After all, he root directory of a userdir really is, conceptually at
> least, ~/html.
> 
> thx
> eric
> 
> >
> >one obvious solution: use relative addressing (i.e. do not start with
> >"/").
> >Huub
> 

OK another (obvious) try: set DocumentRoot in httpd.conf to the
userdir/html (this will break all other links of course).
Less obvious: setup a virtual host, e.g. at port 8080 ('Listen 8080' in
httpd.conf) with DocumentRoot set to userdir/htm (<VirtualHost IP:8080>
ServerName DocumentRoot etc. </Virtual Host> in httpd.conf). Now you
have a 'production server' at the standard port 80 and a 'development
server' at 8080.

===

Subject: Re: Simple [I think] apache question
From: Ray Dillinger <bear@sonic.net>
Date: Wed, 26 Apr 2000 16:29:49 -0700 (PDT)

Actually I've been wondering about this too.  My ISP uses 
RedHat, and the user's html  directories are all in 

/home/WWW_pages/.  My particular homepage is in the directory 

/home/WWW_pages/bear .

a friend of mine has his homepage in 

/home/WWW_pages/xodiac .

And my URL is http://www.sonic.net/~bear and his is 
http://www.sonic.net/~xodiac.  

We didn't have to do anything special with our HTML to 
achieve this.

I haven't been able to get the tilde to work the same way on 
my home system.  

===

Subject: Re: Simple [I think] apache question
From: Eric Fixler <fix@idiom.com>
Date: Wed, 26 Apr 2000 16:57:58 -0700

I haven't been able to get the tilde to work the same way on
my home system.


Generally speaking you put a folder called 'public_html' into your 
home directory, and that becomes the root of the path referenced by 
~user (note, my problem wasn't getting that working, it's dealing 
what I consider a path anomaly in the way it works) (But Huub's last 
idea was really good.  Thanks!)

Anyhow, this should work in Apache by default, check the docs for the 
UserDir module.  If you want to call the folder something else 
instead of public_html you do a userDir directive in httpd.conf, 
something like:

UserDir my_html

===

Subject: Re: Simple [I think] apache question 
From: J C Lawrence <claw@cp.net>
Date: Thu, 27 Apr 2000 11:41:39 -0700

On Wed, 26 Apr 2000 16:29:49 -0700 (PDT) 
Ray Dillinger <bear@sonic.net> wrote:

> Actually I've been wondering about this too.  My ISP uses RedHat,
> and the user's html directories are all in
...deletia...
> I haven't been able to get the tilde to work the same way on my
> home system.

The magic of symlinks.

===

Subject: Re: Simple [I think] apache question 
From: Chris Maresca <ckm@crust.net>
Date: Thu, 27 Apr 2000 21:51:10 -0700 (PDT)

The ~ is actually controlled by srm.conf.

In there, you can specify both the name of the user html dir and the
character the it uses....
===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu