View previous topic :: View next topic |
Author |
Message |
bfdi533 Tux's lil' helper

Joined: 11 Jun 2003 Posts: 133
|
Posted: Fri Jul 21, 2006 4:25 am Post subject: apache2 and .htaccess woes [Solved] |
|
|
I have a webserver that does not work properly. I am using apache-2.0.55 and have post 80, 443 setup on localhost and have 1 named virtual host.
I have a .htaccess file that does not get acted upon when the server is accessed via http/80. However, when I access it with https/443 it does get acted upon.
Any clues on which config file to check into would be very helpful.
Last edited by bfdi533 on Fri Jul 21, 2006 4:34 pm; edited 1 time in total |
|
Back to top |
|
 |
azuriel Apprentice


Joined: 27 Feb 2005 Posts: 166
|
Posted: Fri Jul 21, 2006 5:21 am Post subject: |
|
|
I don't have SSL on my apache2 install, but here are the parts of my configuration relevent to .htaccess:
Code: | # httpd.conf
AccessFileName .htaccess
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
|
Code: | # vhosts.d/00_default_vhost.conf
<Directory "/var/www/localhost/htdocs">
AllowOverride All
</Directory>
|
I can't imagine SSL adding that much more complexity to using a .htaccess file. Then again, if you have root and can edit httpd.conf and vhosts.d/*, then you shouldn't be using .htaccess at all (like it says in the Apache documentation). _________________ Adopt an unanswered post
TJGames.org
The folly of mistaking a torrent of verbiage for a spring of capital truths, and oneself for an oracle, is inborn in us. -Valery |
|
Back to top |
|
 |
bfdi533 Tux's lil' helper

Joined: 11 Jun 2003 Posts: 133
|
Posted: Fri Jul 21, 2006 4:34 pm Post subject: |
|
|
First, I wanted to say thanks for replying.
azuriel wrote: |
Code: | # vhosts.d/00_default_vhost.conf
<Directory "/var/www/localhost/htdocs">
AllowOverride All
</Directory>
|
|
This was the missing part. Somehow this was switched to "AllowOverride None" thus keeping these from being used in the .htaccess file. Maybe a recent etc-update clobbered this setting.
azuriel wrote: |
I can't imagine SSL adding that much more complexity to using a .htaccess file. Then again, if you have root and can edit httpd.conf and vhosts.d/*, then you shouldn't be using .htaccess at all (like it says in the Apache documentation). |
Yes, of course I have root access and can edit these file but I have searched for this and cannot find it. I would be grateful if you could point me to a url reference on this. |
|
Back to top |
|
 |
azuriel Apprentice


Joined: 27 Feb 2005 Posts: 166
|
Posted: Fri Jul 21, 2006 4:47 pm Post subject: |
|
|
A .htaccess file is the same as what you put in a <Directory></Directory> block, where the Directory is what folder the .htaccess file is stored in.
Check out http://httpd.apache.org/docs/1.3/howto/htaccess.html#when, where they say the same thing. _________________ Adopt an unanswered post
TJGames.org
The folly of mistaking a torrent of verbiage for a spring of capital truths, and oneself for an oracle, is inborn in us. -Valery |
|
Back to top |
|
 |
bfdi533 Tux's lil' helper

Joined: 11 Jun 2003 Posts: 133
|
Posted: Fri Jul 21, 2006 6:20 pm Post subject: |
|
|
Thank you very much for the referenced link; I have read it and understand the issue. I will change over the ones that need this to the httpd.conf file. |
|
Back to top |
|
 |
sleepingsun Guru


Joined: 03 May 2006 Posts: 477 Location: Bosnia
|
Posted: Wed Nov 08, 2006 11:11 pm Post subject: |
|
|
Thanks its also helps me ! |
|
Back to top |
|
 |
|