Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-25-2004, 11:58 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
apache .htaccess

is there anything besides: AccessFileName .htaccess that i need to do in the apache config to make it recognize .htaccess files? i'm working on a red hat server and it doesn't seem to acknowledge the file.
__________________
Mike
sde is offline   Reply With Quote
Old 08-25-2004, 01:38 PM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
from my httpd.conf

Quote:
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
'All' might be a security problem, I am the only person using my machine so I don't worry about it.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 08-26-2004, 08:06 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
thanks matt, .. something is still preventing this from working .. I think it is because they have webmin installed and it's doing something funky.
__________________
Mike
sde is offline   Reply With Quote
Old 08-26-2004, 09:44 AM   #4 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
what is webmin? are you getting any errors, or just not working?

try 'tail -f /var/log/apache/error_log' (i think that is the path) then hit the page again.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 08-26-2004, 09:59 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
no errors, just not working .. well, i will check apache later.. can't get in right now.

thanks.
__________________
Mike
sde is offline   Reply With Quote
Old 08-26-2004, 10:14 AM   #6 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
hmmm... error logs probably won't tell you much if you aren't getting any errors... the only time i have ever had problems with .htaccess i was getting 500 errors, so i am not much help with it just not working... sorry dude.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 08-26-2004, 11:48 AM   #7 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
Webmin is a web-based system administration panel for *nix systems. I even got it to work with Cygwin once.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 08-26-2004, 11:55 AM   #8 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
sde, with no errors, assuming Apache was restarted, it sounds like AllowOverride is set to None. "None" basically disables .htaccess files. This is mostly a vague memory, but I confirmed that at apache.org. If you haven't seen it already, check out the .htaccess Tutorial
technobard is offline   Reply With Quote
Old 08-26-2004, 11:59 AM   #9 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
Nevermind. I just saw your post in another forum where you posted the same link. Ignore my previous post.
technobard is offline   Reply With Quote
Old 08-26-2004, 12:13 PM   #10 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
yes, i definately set it to ALL just to see if it would work. restarted too. Since it doesn't, I think that webmin is somehow hijacking that parameter, or forcing it's own .htaccess userfile. i can get webmin access, i just didn't want to have to deal with that crap.
__________________
Mike
sde is offline   Reply With Quote
Old 08-27-2004, 07:21 AM   #11 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
Quote:
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig
that was my problem .. the .htaccess file was in my /home/*/public_html directory. i was editing the allowoverride in the wrong place.
__________________
Mike
sde is offline   Reply With Quote
Old 08-27-2004, 07:46 AM   #12 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 170
DavH27 is on a distinguished road
I could av told you that
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote
Old 08-27-2004, 07:49 AM   #13 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
your timing is a little off. hah
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server config / .htaccess DavH27 Lounge 12 08-26-2004 05:16 PM
fresh apache install sde Linux / BSD / OS X 3 01-05-2003 10:53 AM


All times are GMT -8. The time now is 03:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting