Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Little Problem with apache and .htaccess [solved]
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
hansolocg
n00b
n00b


Joined: 26 Feb 2006
Posts: 22

PostPosted: Sat Jul 07, 2007 12:59 am    Post subject: Little Problem with apache and .htaccess [solved] Reply with quote

Hi,

i'm trying to set up a webpage locally on my machine to later just copy it to a webhoster.
As the site's only purpose will be communication and photo-exchange with some friends spread over the country i want to make it password-protected. However, when i set it up and put a .htaccess-file in /var/www/localhost/htdocs it is just ignored, if i put it in a subdirectory it works.
I have this entry in my httpd.conf
Code:

<Directory /var/www/localhost/htdocs>
         AllowOverride All
</Directory>


If i move and modify the .htaccess file and move it to ./subdirectory and modify the entry in httpd.conf accordingly it works fine.

Do i have to use a dummy file in ./htdocs which only redirects to another directory, or is there a way to do this correctly?

Besides this entry in httpd.conf the configs are more or less as they come with a fresh install.

Andreas


Last edited by hansolocg on Sat Jul 07, 2007 7:49 am; edited 1 time in total
Back to top
View user's profile Send private message
godish
n00b
n00b


Joined: 05 Oct 2004
Posts: 50
Location: Boston MA

PostPosted: Sat Jul 07, 2007 3:38 am    Post subject: Reply with quote

Have you taken a look at your....
Code:

/etc/apache2/vhosts.d/00_default_vhost.conf

file?

The /etc/apache2/httpd.conf contains "generic" settings (at least that is what i got from it) and the default vhost file is where i put all those configurations like...

Code:
    <Directory "/Web/Goldfish">
        Options Indexes FollowSymLinks
        AllowOverride all

        Order allow,deny
        Allow from all
    </Directory>

_________________
Nobody makes me bleed my own blood... NOBODY!
Back to top
View user's profile Send private message
hansolocg
n00b
n00b


Joined: 26 Feb 2006
Posts: 22

PostPosted: Sat Jul 07, 2007 7:48 am    Post subject: Reply with quote

Thanks a lot, i saw the include at the end of the httpd.conf, but since it's the first time i set up apache i just didn't realize that the file is important as well.
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