Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Gordon Campbell 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
-
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
-
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
-
Thanks! I'll go give it a whirl ...
-
Gordon Campbell wrote:
> Thanks! I'll go give it a whirl ...
Hallelujah! It works! Thank you so much, Damien!
-
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 :(
-
> > 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
-
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
-
er and make sure thats
as you suggested, not
--
Damien