Koozali.org: home of the SME Server

User's webspace revisited

Gordon Campbell

User's webspace revisited
« on: November 04, 2000, 04:23:17 AM »
OK. I know that E-smith 4 doesn't support web space for users. Not out of the box, anyway. Because the software thinks my DSL connection is a dial-up, I also can't use i-bays. I didn't really want to go that route, anyway. Too clumsy.

What I'm looking for is a little assistance in knowing what to hack to make http://www.servername.org/~user/ actually pull up something useful other than an HTTP 404 message.

Help?

Thanks.

Cheers,
.....G

Damien Curtain

RE: User's webspace revisited
« Reply #1 on: November 04, 2000, 05:10:26 AM »
well what you could do is in /etc/e-smith/templates/etc/httpd/conf/httpd.conf

set the user dir arg in 50UserDir00, edit it, eg.
perl -pi -e 's/#U/U/' 50UserDir00

then youll need something like the following

cat > 90e-smithAccess50userdir << EOF

    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
   
        Order allow,deny
        Allow from all
   

   
        Order deny,allow
        Deny from all
   


EOF

then

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd reload

and after that maybe you can see the files in ~user/public_html dir, hope that helps

--
 Damien

Damien Curtain

RE: User's webspace revisited
« Reply #2 on: November 04, 2000, 05:27:09 AM »
That didnt come out correct, got to love html based boards:(, perhaps this will work then

for the web:

cat > 90e-smithAccess50userdir << EOF

<Directory /home/e-smith/files/users/*/public_html>

    AllowOverride FileInfo AuthConfig Limit

    Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec

    <Limit GET POST OPTIONS PROPFIND>

        Order allow,deny

        Allow from all

    </Limit>

    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY
MOVE LOCK UNLOCK>

        Order deny,allow

        Deny from all

    </Limit>

</Directory>

EOF

for email:
(ignore the comment tags)



(substitute that where relevant)

--
 Damien

Gordon Campbell

RE: User's webspace revisited
« Reply #3 on: November 04, 2000, 05:31:18 AM »
Thanks! I'll go give it a whirl ...

Gordon Campbell

RE: User's webspace revisited
« Reply #4 on: November 04, 2000, 06:26:06 AM »
Gordon Campbell wrote:

> Thanks! I'll go give it a whirl ...

Hallelujah! It works! Thank you so much, Damien!

Scott Duncan

RE: User's webspace revisited
« Reply #5 on: November 20, 2000, 11:08:52 AM »
Gordon Campbell wrote:

> Gordon Campbell wrote:
>
> > Thanks! I'll go give it a whirl ...
>
> Hallelujah! It works! Thank you so much, Damien!

Really?   I still get a 403 Forbidden error :(

stephen noble

RE: User's webspace revisited
« Reply #6 on: November 21, 2000, 07:56:33 AM »
> > Gordon Campbell wrote: > > > Thanks! I'll go give
> it a whirl ... > > Hallelujah! It works! Thank you so
> much, Damien!
>
> Really?   I still get a 403 Forbidden error :(

i can't get it to work either
should

be
that doesn't work either :-(
do the permissions matter for public_html, the case ?
could you e-mail the fragment that works ?
i'll make it a rpm, e-smith-public_html

Damien Curtain

RE: User's webspace revisited
« Reply #7 on: November 21, 2000, 12:30:52 PM »
stephen noble wrote:

> i can't get it to work either should > /home/e-smith/files/users/*/public_html> be > /home/e-smith/files/users/*/HOME/public_html> that doesn't
> work either :-( do the permissions matter for public_html, the
> case ? could you e-mail the fragment that works ? i'll make it
> a rpm, e-smith-public_html

well depends. if your putting your public_html dir in /home/e-smith/files/$USER/public_html as I did then no. If however you want them in /home/e-smith/files/$USER/home/public_html as your suggesting (I think) then youll need to change these to

in /etc/e-smith/templates(-custom)/etc/httpd/conf/httpd.conf

cat > 50UserDir00 << EOF
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is recieved.

UserDir home/public_html
EOF

cat > 90e-smithAccess50userdir << EOF

    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
   
        Order allow,deny
        Allow from all
   

   
        Order deny,allow
        Deny from all
   


EOF

then
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd reload

youll need to chmod a+x ~/home and ~/home/public_html

oh and I think someone is already packaging this up to be included, and theres a few other neat little things that go with the above to make things even better, so just hang tight and it will be out soon enough

Regards
--
 Damien

Damien Curtain

RE: User's webspace revisited
« Reply #8 on: November 21, 2000, 12:57:28 PM »
er and make sure thats



as you suggested, not



--
 Damien