View previous topic :: View next topic |
Author |
Message |
hansolocg n00b
Joined: 26 Feb 2006 Posts: 22
|
Posted: Sat Jul 07, 2007 12:59 am Post subject: Little Problem with apache and .htaccess [solved] |
|
|
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 |
|
|
godish n00b
Joined: 05 Oct 2004 Posts: 50 Location: Boston MA
|
Posted: Sat Jul 07, 2007 3:38 am Post subject: |
|
|
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 |
|
|
hansolocg n00b
Joined: 26 Feb 2006 Posts: 22
|
Posted: Sat Jul 07, 2007 7:48 am Post subject: |
|
|
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 |
|
|
|