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

[cobalt-users] AW: AW: .htaccess issue



the ## lines causes the problems! with ## comment .htaccess is working!


<VirtualHost 212.>
ServerName www.
ServerAdmin site1
## DirectoryIndex index.html index.htm index.shtml index.cgi index.php
index.php default.html default.htm default.shtml default.cgi
default.php default.php3
DocumentRoot /home/sites/site1/web
ServerAlias insolvenzmarkt.de www.
## php_value include_path "/home/sites/site1/web/include/"
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^212.(:80)?$
RewriteCond %{HTTP_HOST}                !^www.(:80)?$
RewriteRule ^/(.*)                      http://www./$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
# AddHandler chiliasp .asp
# AddHandler chiliasp .asa
## AddType application/x-httpd-php .php4
## AddType application/x-httpd-php .php3
## AddType application/x-httpd-php .php
## AddType application/x-httpd-php .htm
## AddType application/x-httpd-php .html
## AddType application/x-httpd-php .asp
# htaccess (added by <h.eilhard@xxxxxxxxxxxxx>)
## AccessFileName .htaccess
## AddHandler cgi-wrapper .cgi
## AddHandler cgi-wrapper .pl
## AddHandler server-parsed .shtml
## AddType    text/html     .shtml
</VirtualHost>

> -----Ursprüngliche Nachricht-----
> Von: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Im Auftrag von Paul Mullett
> Gesendet: Mittwoch, 12. Dezember 2001 12:42
> An: cobalt-users@xxxxxxxxxxxxxxx
> Betreff: Re: [cobalt-users] AW: .htaccess issue
>
>
> I expect the problem is in the httpd.conf file, as my .htaccess
> file and my
> access.conf file are identical to some I have been sent as
> working examples
> (thank yo to those who sent me the examples).
>
> Could you go into more detail of what information was causing the problem
> that you removed?
>
> Thank you.
>
> Paul Mullett
>
> ----- Original Message -----
> From: "Felix Pantlen" <cobalt@xxxxxxxxxxx>
> To: <cobalt-users@xxxxxxxxxxxxxxx>
> Cc: <paul.mullett@xxxxxxxxxxxxxxxxxx>
> Sent: Wednesday, December 12, 2001 11:15 AM
> Subject: [cobalt-users] AW: .htaccess issue
>
>
> >
> > Hi Paul,
> >
> > I found, that my error is in the http.conf
> > where you can configure the virtual hosts.
> >
> > Developers entered to much data.
> >
> > Best,
> >
> > Felix
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: cobalt-users-admin@xxxxxxxxxxxxxxx
> > > [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Im Auftrag von Paul Mullett
> > > Gesendet: Dienstag, 11. Dezember 2001 16:13
> > > An: cobalt-users@xxxxxxxxxxxxxxx
> > > Betreff: Re: [cobalt-users] .htaccess issue
> > >
> > >
> > >
> > > > > I wonder if anyone can shed any light on this for me.  I have a
> RaQ4i
> > > > > dedicated server with Verio in the UK, and I am having
> > > trouble with the
> > > > > .htaccess settings.
> > > > >
> > > > > I am using the .htaccess files with no problem when it comes to
> > > > > turning off
> > > > > directory snooping, making Symlinks and denying IP addresses
> > > access etc.
> > > > >
> > > > > BUT, my problem is as soon as I try to use htpasswd it's falls
> > > > > flat on it's
> > > > > face.  That is to say, I create the .htaccess file in a
> > > > > sub-directory which
> > > > > looks like this:
> > > > >
> > > > > order allow,deny
> > > > > allow from all
> > > > > require valid-user
> > > > > AuthName "Private Area"
> > > > > Authtype basic
> > > > > AuthUserFile /home/sites/site1/web/whateverfolder/.htpasswd
> > > > > AccessList
> > > > > AuthPAM_Enabled off
> > > > >
> > > > > I then create the auth file using:
> > > > >
> > > > > htpasswd -c .htpasswd username
> > > > >
> > > > > As far as I can tell this is correct.  I then attempt to access
> > > > > the password
> > > > > protected folder (which I could access with no problems before
> > > > > creating the
> > > > Are you putting the .htpasswd file in the same directory you are
> > > protecting?
> > > >
> > > > As a habit, we put all the password files out of site (left of
> .../web )
> > > > Here's an example of a htaccess file we use on a raq2 site.
> > > > >>>>>>
> > > > #Access File
> > > > order allow,deny
> > > > allow from all
> > > > require valid-user
> > > > Authname "ourfaqsite.com Affiliate Zone"
> > > > AuthPAM_Enabled off
> > > > Authtype Basic
> > > > ErrorDocument 404 /Public/Affiliates.html
> > > > AuthUserFile
> > > /home/sites/www.ourfaqsite.com/xxxxx/AffiliateHTAccessPWDFile
> > > > <<<<<<
> > > >
> > > > Hope that helps.
> > > >
> > > > Paul
> > >
> > > I have tried both, but the same result.  I assume SOMETHING must
> > > be amiss in
> > > my access.conf file?  But I have followed the instructions I
> have found.
> > >
> > > This is so annoying as I need to password protect a directory ASAP.
> > >
> > > Thanks again.
> > >
> > > Paul Mullett
> > >
> > >
> > > _______________________________________________
> > > cobalt-users mailing list
> > > cobalt-users@xxxxxxxxxxxxxxx
> > > To Subscribe or Unsubscribe, please go to:
> > > http://list.cobalt.com/mailman/listinfo/cobalt-users
> > >
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To Subscribe or Unsubscribe, please go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>