Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

.htaccess not looked at in aliased directory

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  timeout error message  
Author Message
demonnews

External


Since: Jul 15, 2003
Posts: 2



(Msg. 1) Posted: Tue Jul 15, 2003 5:11 am
Post subject: .htaccess not looked at in aliased directory
Archived from groups: alt>apache>configuration (more info?)

Hi all, really appreciate some help on this!

All my files within /var/www/html obey their .htaccess fine, including LIMIT
commands and php_flag settings.

However, I have an Alias in my httpd.conf like this...

Alias /squirrelmail /var/www/squirrelmail/

and if I put a .htaccess in /var/www/squirrelmail, it is not even looked at,
I could do a deny from all and it is ignored.

Is there any reason for this?

Thanks a lot!

Bix.

 >> Stay informed about: .htaccess not looked at in aliased directory 
Back to top
Login to vote
nospam173

External


Since: Jul 02, 2003
Posts: 52



(Msg. 2) Posted: Tue Jul 15, 2003 5:11 am
Post subject: Re: .htaccess not looked at in aliased directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 15 Jul 2003 02:11:43 +0100, The Other Guy responded to a post
from "Bix" <demonnews DeleteThis @NOSPAMPLEASEbix.cc> who wrote in
alt.apache.configuration:

 >Alias /squirrelmail /var/www/squirrelmail/

Try
Alias /squirrelmail /var/www/squirrelmail

if the first parameter ends with a slash, the second should as well
(or include the slash in the first one and leave the second with it,
but that is not as good as the first solution).

See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_alias.html#alias" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_alias.html#alias</a>

Also, have you set up the aliased directory container to include

AllowOverride AuthConfig

<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride</a>

You should put your htaccess info in that same directory container as
opposed to having the separate file in the directory.

HTH
TOG

--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: .htaccess not looked at in aliased directory 
Back to top
Login to vote
demonnews

External


Since: Jul 15, 2003
Posts: 2



(Msg. 3) Posted: Tue Jul 15, 2003 2:49 pm
Post subject: Re: .htaccess not looked at in aliased directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I forgot to AllowOverride

Have done now and it works fine, cheers mate!
"The Other Guy" <nospam.DeleteThis@this.addy> wrote in message
news:i8m6hv0fv5pbad6538123nsujtrp3hgs6o@4ax.com...
 > On Tue, 15 Jul 2003 02:11:43 +0100, The Other Guy responded to a post
 > from "Bix" <demonnews.DeleteThis@NOSPAMPLEASEbix.cc> who wrote in
 > alt.apache.configuration:
 >
  > >Alias /squirrelmail /var/www/squirrelmail/
 >
 > Try
 > Alias /squirrelmail /var/www/squirrelmail
 >
 > if the first parameter ends with a slash, the second should as well
 > (or include the slash in the first one and leave the second with it,
 > but that is not as good as the first solution).
 >
<font color=purple> > See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_alias.html#alias</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_alias.html#alias</font</a>>
 >
 > Also, have you set up the aliased directory container to include
 >
 > AllowOverride AuthConfig
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride</font</a>>
 >
 > You should put your htaccess info in that same directory container as
 > opposed to having the separate file in the directory.
 >
 > HTH
 > TOG
 >
 > --
 > ./configure --prefix=~/zyterion
 > Not this guy or that guy, The Other Guy.
 >
 > This spot may contain a satirical comment or comedic source,
 > and is meant to be funny. If you are easily offended, gullible
 > or don't have a sense of humour we suggest you read elsewhere.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: .htaccess not looked at in aliased directory 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
newbie question about .htaccess - I have a private website folder which I would like to password protect so I have followed the instructions on the Apache website and some other sites to write an .htaccess file. This results in a pop up box which asks for the username and password. The..

password protection (.htaccess) and streaming mp3's - Hey folks, just for the record this work in winamp. I have an apache web server with an mp3 link that is password protected. After authorization you can see the mp3's. Click on a link and the little web engine I'm using (Zina) automagically creates a..

Newbie - Directory Set-up Question - I would like to run an FTP program (I was thinking about using WarFTP) and Apache on my machine. What is the best way to set up the directories? If I would like to update pages remotely, should my Web directories be inside my FTP directories? I would....

Customize directory listing - Hi If I go to http://localhost/directory/ and if there is no index.html file, the default directory listing is shown. I would like Apache to send the page http://localhost/navigation.php?d=/directory/ instead, but *without* redirecting. Is this..

Turn off Directory Browsing / Indexing - RH 9.0 Apache 2.0.x I would like to turn off the ability of the general public to come to my web site and browse my directories. I know that putting a index.html inside each subdirectory will solve this but isn't there a configuration option to turn..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]