View previous topic :: View next topic |
Author |
Message |
timewalker n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 16 Apr 2002 Posts: 21
|
Posted: Thu May 23, 2002 9:37 pm Post subject: Apache... |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
burzmali Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Wolverine.gif)
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri May 24, 2002 6:48 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
timewalker n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 16 Apr 2002 Posts: 21
|
Posted: Fri May 24, 2002 9:30 am Post subject: ... |
|
|
Everyone have read access to public_html
and even to my home dir... still doesn't work... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ch3 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 21 May 2002 Posts: 24 Location: Belgium
|
Posted: Fri May 24, 2002 9:51 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
timewalker n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 16 Apr 2002 Posts: 21
|
Posted: Fri May 24, 2002 1:52 pm Post subject: DirectoryIndex... |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
darkwrath n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Oct 2002 Posts: 7
|
Posted: Wed Oct 09, 2002 5:25 am Post subject: That helped alot |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rac Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/42db5dbb3e1c92424d747.jpg)
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Oct 09, 2002 6:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|