You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Arturo P <pe...@flashmail.com> on 2004/01/14 00:36:33 UTC

[users@httpd] Problems with UserDir Directive

Hello,

I just discovered, and am very excited about the Apache's UserDir 
directive. However on startup with the lines:

  UserDir enabled
  UserDir disabled root
  UserDir www

These lines were with a <VirtualHost> directive for users.mydomain.com.

First of all the conf. would not be accpepted. It sent up the following 
error:

  UserDir "enabled" keyword requires a list of usernames.

So just to try it out i used:

  UserDir myusername

The conf. was accepted. I then proceesed to try 
http://users.mydomain.com/~myusername, i got the following error:

  The requested URL /~myusername was not found on this server.

I proceeded to check the logs. But this apprently brings up no error. 
Myusername's home dir does have a subdir named www. What could the 
problem possibly be?

Also is it possible to get the UserDir effect but without the '~' ?

Thank you





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problems with UserDir Directive

Posted by "Roger B.A. Klorese" <ro...@queernet.org>.
> UserDir myusername ..... is suppose to be......UserDir 
> enablemyusername

Or is that
    UserDir enable myusername


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems with UserDir Directive

Posted by Arturo P <pe...@flashmail.com>.
Soryr about that...there is a typo:

UserDir myusername ..... is suppose to be......UserDir enablemyusername



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problems with UserDir Directive

Posted by Ben Yau <by...@cardcommerce.com>.
> > It's my fault
> > for not explaining the reason for my post clearly enough.
>
> ...but the doc page, of course, showed that too.  :)
>

It certainly did (it certainly does?) (is that supposed to be past tense or
present tense)

AGH!!!!!!!  MY HEAD!!!!!!!!

:D

Anyway, that was how I was familiar with it as well because the one thing I
remember about UserDir from the docs is that for security reasons it's
recommended to do:

UserDir disabled root

anyway, sorry again for the confusion on my part, and keep up the good work
:)

Ben Yau



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problems with UserDir Directive

Posted by "Roger B.A. Klorese" <ro...@queernet.org>.
> In one post people used past tense.
> 
> >Right.  "enabled" is only used to enable specific users *if* 
> a more general
> >"disabled" is found.  Otherwise you don't need it.
> 
> In a different post people used present tense
> 
> >> UserDir myusername ..... is suppose to be......UserDir
> >> enablemyusername
> >
> >Or is that
> >    UserDir enable myusername
> >
> 
> Which is why I was a bit confused. The intent of my post was 
> to ask if you
> were saying the keyword was "enable" instead of "enabled".   

Sorry, it's "enabled" indeed.  I corrected the space you left out and forgot
to add the "d" as well.

> It's my fault
> for not explaining the reason for my post clearly enough.

...but the doc page, of course, showed that too.  :)


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problems with UserDir Directive

Posted by Ben Yau <by...@cardcommerce.com>.
>
> It's not a command to do something -- it's a state description.
>
> Jeez, can't anyone else read a website?!
>

Calm down.
My bad for jumping in late and reading the email to quickly.

Anyway, good detailed follow-up post.

By the way, the reason I was confused is because I had thought you used the
"enabled" and "disabled" key words (like UserDir disabled root).

>From your posts, I wasn't sure if you were suggesting present or past tense:


In one post people used past tense.

>Right.  "enabled" is only used to enable specific users *if* a more general
>"disabled" is found.  Otherwise you don't need it.

In a different post people used present tense

>> UserDir myusername ..... is suppose to be......UserDir
>> enablemyusername
>
>Or is that
>    UserDir enable myusername
>

Which is why I was a bit confused. The intent of my post was to ask if you
were saying the keyword was "enable" instead of "enabled".   It's my fault
for not explaining the reason for my post clearly enough.

anyway, for those still reading, just go to apache.org (as always) to get
the proper information.  Here's the 2.0 version of the docs and userdir

http://httpd.apache.org/docs-2.0/mod/mod_userdir.html#userdir


Ben Yau


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problems with UserDir Directive

Posted by "Roger B.A. Klorese" <ro...@queernet.org>.
It's not a command to do something -- it's a state description.

Jeez, can't anyone else read a website?!

The UserDir directive sets the real directory in a user's home directory to
use when a request for a document for a user is received. Directory-filename
is one of the following:

- The name of a directory or a pattern such as those shown below. 
- The keyword disabled. This turns off all username-to-directory
translations except those explicitly named with the enabled keyword (see
below). 
- The keyword disabled followed by a space-delimited list of usernames.
Usernames that appear in such a list will never have directory translation
performed, even if they appear in an enabled clause. 
- The keyword enabled followed by a space-delimited list of usernames. These
usernames will have directory translation performed even if a global disable
is in effect, but not if they also appear in a disabled clause. 



> -----Original Message-----
> From: Ben Yau [mailto:byau@cardcommerce.com] 
> Sent: Tuesday, January 13, 2004 4:52 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Problems with UserDir Directive
> 
> 
> 
> > 
> > It needs to be set like;
> > 
> >     UserDir www
> >     UserDir disabled
> >     UserDir enabled yourusername
> > 
> 
> UserDir enable www
> UserDir disable
> UserDir enable yourusername
> 
> is it present tense or past tense?  present tense right? 
> 
> Ben Yau
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problems with UserDir Directive

Posted by Ben Yau <by...@cardcommerce.com>.
> 
> It needs to be set like;
> 
>     UserDir www
>     UserDir disabled
>     UserDir enabled yourusername
> 

UserDir enable www
UserDir disable
UserDir enable yourusername

is it present tense or past tense?  present tense right? 

Ben Yau


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems with UserDir Directive

Posted by Chip Cuccio <ch...@norlug.org>.
* Arturo P wrote (Tue, Jan 13, 2004 at 07:36:33PM -0400):
> So just to try it out i used:
> 
>  UserDir myusername
> 
> The conf. was accepted. I then proceesed to try 
> http://users.mydomain.com/~myusername, i got the following error:
> 
>  The requested URL /~myusername was not found on this server.

It needs to be set like;

    UserDir www
    UserDir disabled
    UserDir enabled yourusername

> Also is it possible to get the UserDir effect but without the '~' ?

with mod_rewrite

-- 
Chip Cuccio                    |  chipster[at]norlug[.]org
NORLUG VP and Sysadmin         |  <http://norlug.org/~chipster/>
Northfield Linux Users' Group  |  Northfield, Minnesota USA


Re: [users@httpd] Problems with UserDir Directive

Posted by Arturo P <pe...@flashmail.com>.
Sorry about all that,

I have found the problem, slight, but hard to notice typo. I had 
misspelt the server name. But thanks with your advice on teh enabled 
directive, I just took it out. But why does the error show "enable" not 
"enabled"?

I wil be sure to check out mod_rewrite

Merci.


Roger B.A. Klorese wrote:

>>First of all the conf. would not be accepted. It sent up the 
>>following 
>>error:
>>
>>  UserDir "enabled" keyword requires a list of usernames.
>>    
>>
>
>Right.  "enabled" is only used to enable specific users *if* a more general
>"disabled" is found.  Otherwise you don't need it.
>
>  
>
>>So just to try it out I used:
>>
>>  UserDir myusername
>>    
>>
>
>That says that every user's UserDir is a subdirectory called "myusername".
>Are you really saying http://www.example.tld/~myusername should be the
>directory "~myusername/username"?  I suspect not.
>
>  
>
>>The conf. was accepted. I then processed to try 
>>http://users.mydomain.com/~myusername, I got the following error:
>>
>>  The requested URL /~myusername was not found on this server.
>>
>>I proceeded to check the logs. But this apparently brings up no error. 
>>Myusername's home dir does have a subdir named www. What could the 
>>problem possibly be?
>>    
>>
>
>Do you still have the
>
>	UserDir www
>
>directive? 
>
>  
>
>>Also is it possible to get the UserDir effect but without the '~' ?
>>    
>>
>
>See mod_rewrite.
>
>
>  
>

RE: [users@httpd] Problems with UserDir Directive

Posted by "Roger B.A. Klorese" <ro...@queernet.org>.
> First of all the conf. would not be accepted. It sent up the 
> following 
> error:
> 
>   UserDir "enabled" keyword requires a list of usernames.

Right.  "enabled" is only used to enable specific users *if* a more general
"disabled" is found.  Otherwise you don't need it.

> So just to try it out I used:
> 
>   UserDir myusername

That says that every user's UserDir is a subdirectory called "myusername".
Are you really saying http://www.example.tld/~myusername should be the
directory "~myusername/username"?  I suspect not.

> The conf. was accepted. I then processed to try 
> http://users.mydomain.com/~myusername, I got the following error:
> 
>   The requested URL /~myusername was not found on this server.
> 
> I proceeded to check the logs. But this apparently brings up no error. 
> Myusername's home dir does have a subdir named www. What could the 
> problem possibly be?

Do you still have the

	UserDir www

directive? 

> Also is it possible to get the UserDir effect but without the '~' ?

See mod_rewrite.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org