Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
timewalker
n00b
n00b


Joined: 16 Apr 2002
Posts: 21

PostPosted: Thu May 23, 2002 9:37 pm    Post subject: Apache... Reply with quote

Hi i was just wondering what to change in the /etc/apache/conf/commonapache.conf to be able to view files and directories in the public_html directory (in users homedir)
if i try localhost/~username and there is no index.html i get:
Forbidden
You don't have permission to access /~username/ on this server.
but if i put in a index.html it shows it just fine...
have changed some stuff in the commonapache.conf without any luck... (everything is now set back to default)
would really love to get it to work...
thanx for a great distro
Back to top
View user's profile Send private message
burzmali
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 238
Location: ca

PostPosted: Fri May 24, 2002 6:48 am    Post subject: Reply with quote

i am guessing, but try giving everyon read access to the public_html directory. now it is probably set to x only.
_________________
burzmali
www.burzmali.net
Back to top
View user's profile Send private message
timewalker
n00b
n00b


Joined: 16 Apr 2002
Posts: 21

PostPosted: Fri May 24, 2002 9:30 am    Post subject: ... Reply with quote

Everyone have read access to public_html
and even to my home dir... still doesn't work...
Back to top
View user's profile Send private message
ch3
n00b
n00b


Joined: 21 May 2002
Posts: 24
Location: Belgium

PostPosted: Fri May 24, 2002 9:51 am    Post subject: Reply with quote

In order to have directory listing, you must enable mod_autoindex in
apache.conf. Then, for user directory, you have to tell apache to index it.

Check http://httpd.apache.org/docs/mod/mod_autoindex.html for
more informations on the syntax.

Sorry, I can't help you more, I've never tried it (never needed it either :))
_________________
Tell a man there are 300 billion stars in the universe and he'll believe you.
Tell him a bench has wet paint on it and he'll have to touch to be sure.
Back to top
View user's profile Send private message
timewalker
n00b
n00b


Joined: 16 Apr 2002
Posts: 21

PostPosted: Fri May 24, 2002 1:52 pm    Post subject: DirectoryIndex... Reply with quote

Got it to work...
Code:
<Directory /home/*/public_html>
    AllowOverride All
##    Options MultiViews -Indexes Includes FollowSymLinks
    Options MultiViews Indexes Includes FollowSymLinks             
    Order allow,deny
    Allow from all
</Directory>

removed the "-" before Indexes and it works just fine :)
thanx
Back to top
View user's profile Send private message
darkwrath
n00b
n00b


Joined: 07 Oct 2002
Posts: 7

PostPosted: Wed Oct 09, 2002 5:25 am    Post subject: That helped alot Reply with quote

:D

Added this to my conf to make my individual virtualhosts work.

Code:
<Directory /home/*/www*>
        AllowOverride All
        Options MultiViews Indexes Includes FollowSymLinks
        Order allow,deny
        Allow from all
</Directory>


It limits my flexibility a little but its worth it.

Thanks guys.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Oct 09, 2002 6:06 am    Post subject: Reply with quote

If you don't trust your users, be careful here. AllowOverride all in user directories means among other things that users can turn ExecCGI on in an .htaccess file and drop potentially dangerous and insecure CGI scripts in there.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum