RE: [users@httpd] .htaccess problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Hulya Gurer [mailto:hulya.gurer@xxxxxxxxxxxxx]
> Sent: Mittwoch, 7. Dezember 2005 03:34
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@httpd] .htaccess problem
> 
> 
> 
> 
> Hi,
> 
> I am still trying to make .htaccess to work.  

Your problem is that your homepage has some resources (images, CSS file) which are located in a password-protected realm. This is why you get the password challenge immediately - the homepage loads OK, but then the client requests all the additional resources and discovers that they are password-protected.

Move all your images, CSS etc. out of the protected realm so that they are freely accessible.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> If I use, the 
> directives for 
> my directory that I want to set up
> .htaccess password for, as
> 
> <Directory>
> AllowOverride None
> <Directory />
> 
> <Location /somedirectory/documents>
> AllowOverride All
> </Location>
> 
> where should I put it on httpd.conf file that nothing will 
> affect before 
> it's executed.  And should I comment out any other 
> AloowOverride  directive?
> 
> Thanks much -- Hulya
> 
> 
> 
> RELATED PART OF HTTPD. CONF FILE
> 
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory "/documentroot/docs">
> 
> #
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch 
> ExecCGI MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important.  Please see
> # http://httpd.apache.org/docs-2.0/mod/core.html#options
> # for more information.
> #
>      Options -Indexes FollowSymLinks
> 
> #
> # AllowOverride controls what directives may be placed in 
> .htaccess files.
> # It can be "All", "None", or any combination of the keywords:
> #   Options FileInfo AuthConfig Limit Indexes
> #
>     AllowOverride None
> 
> 
> #
> # Controls who can get stuff from this server.
> #
>      Order allow,deny
>      Allow from all
> 
> </Directory>
> 
> #
> # UserDir: The name of the directory that is appended onto a 
> user's home
> # directory if a ~user request is received.
> #
> UserDir public_html
> 
> #
> # Control access to UserDir directories.  The following is an example
> # for a site where these directories are restricted to read-only.
> #
> #<Directory /home/*/public_html>
> #    AllowOverride FileInfo AuthConfig Limit Indexes
> #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> #    <Limit GET POST OPTIONS PROPFIND>
> #        Order allow,deny
> #        Allow from all
> #    </Limit>
> #    <LimitExcept GET POST OPTIONS PROPFIND>
> #        Order deny,allow
> #        Deny from all
> #    </LimitExcept>
> #</Directory>
> #
> # DirectoryIndex: sets the file that Apache will serve if a directory
> # is requested.
> #
> # The index.html.var file (a type-map) is used to deliver content-
> # negotiated documents.  The MultiViews Option can be used for the
> # same purpose, but it is much slower.
> #
> DirectoryIndex index.html index.html.var index.php
> 
> #
> # AccessFileName: The name of the file to look for in each directory
> # for additional configuration directives.  See also the AllowOverride
> # directive.
> #
> AccessFileName .htaccess
> 
> 
> #
> # The following lines prevent .htaccess and .htpasswd files from being
> # viewed by Web clients.
> #
> <FilesMatch "^\.ht">
>      Order allow,deny
>      Deny from all
> </FilesMatch>
> 
> #
> # TypesConfig describes where the mime.types file (or equivalent) is
> # to be found.
> #
> TypesConfig conf/mime.types
> 
> #
> # DefaultType is the default MIME type the server will use 
> for a document
> 
> 
> 
> 
> 
> 
> 
> 
> > > Hello,
> > >
> > > I have apache 2.0.55 running on solaris 8, along with PHP and 
> > mysql.  For#        Order allow,deny
> >
> > > some reason I am getting strange responses
> > > from .htaccess.
> > >
> > > First of all, my .htaccess file is on the second level 
> subdirectory but for
> > > some reason, I get the password window
> > > at home page, and when I click on cancel two, three 
> times, it shows the
> > > page without the header which is SSI.
> > > My home page is "index.html" and sub directory pages are 
> being served 
> > from php.
> > >
> > > My configuration for .htaccess is like below, which is set to
> > > "AuthConfig"  Is there anything else that needs to be 
> added / changed?
> > > Is there any specific setting for serving php controlled pages?
> >
> >Give us some more concrete information about exactly where your
> >.htaccess file, DocumentRoot, etc are, and exactly what you 
> see in the
> >access_log and error_log.
> >
> >Joshua.
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP 
> Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> >For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux