.htaccess for script aliased directoriesþ

.htaccess for script aliased directoriesþ

am 25.04.2008 00:28:00 von Pam Astor

--_b1047eb8-d0d1-416a-8db6-9db813fd7318_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


I am trying to password protect a sub directory within the web space of a domain that is serving site statistics of awstats generated pages. The path to the dir is /home/user1/www/awstats. When testing, I am able to get a username and password prompt for the front page of the site, i.e. for www.mydomain.com, when I place the .htaccess file in www. But I can’t get a functional prompt for www.mydomain.com/awstats when I place the .htaccess in the awstats dir. The login box comes up but it won't accept my username password combo, even though it will accept it when I have the same .htaccess file in the www dir.

I am using the below script alias in the virtual domain conf.d file for this site the awstats directory is located in, so that awstats can generate the log file stats and alias them to the awstats dir which is empty:
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/

I’m assuming that’s why I can’t get a functional login prompt.

Any suggestions as to how to protect the awstats dir with .htaccess for a script alias’ed directory?
The .htaccess file which I was using and works fine for the main www dir is:

AuthName “/www”
AuthType Basic
AuthUserFile /home/user1/.htpasswd
Require user guest

____________________________________________________________ _____
In a rush? Get real-time answers with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_ TAGLM_WL_Refresh_realtime_042008
--_b1047eb8-d0d1-416a-8db6-9db813fd7318_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






I am trying to password protect a sub directory within the web space of a domain that is serving site statistics of awstats generated pages.  The path to the dir is /home/user1/www/awstats.  When testing, I am able to get a username and password prompt for the front page of the site, i.e. for when I place the .htaccess in the awstats dir.  The
login box comes up but it won't accept my username password combo, even though it will accept it when I have the same .htaccess file in the www dir.


 


I am using the below script alias in the virtual domain conf.d file for this site the awstats directory is located in, so that awstats can generate the log file stats and alias them to the awstats dir which is empty:


ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/


 


I’m assuming that’s why I can’t get a functional login prompt.


 


Any suggestions as to how to protect the awstats dir with .htaccess for a script alias’ed directory?


The .htaccess file which I was using and works fine for the main www dir is:


 


AuthName “/www”


AuthType Basic


AuthUserFile /home/user1/.htpasswd


Require user guest


 



In a rush?

--_b1047eb8-d0d1-416a-8db6-9db813fd7318_--

Re: .htaccess for script aliased directoriesþ

am 25.04.2008 15:26:39 von Joshua Slive

2008/4/24 Pam Astor :
>
>
>
> I am trying to password protect a sub directory within the web space of a
> domain that is serving site statistics of awstats generated pages. The path
> to the dir is /home/user1/www/awstats. When testing, I am able to get a
> username and password prompt for the front page of the site, i.e. for
> www.mydomain.com, when I place the .htaccess file in www. But I can't get a
> functional prompt for www.mydomain.com/awstats when I place the .htaccess in
> the awstats dir. The login box comes up but it won't accept my username
> password combo, even though it will accept it when I have the same .htaccess
> file in the www dir.

See:
http://httpd.apache.org/docs/2.2/howto/htaccess.html

Your problem is that you don't have AllowOverride set correctly for
the relevant directory. But beyond that, you probably don't want to be
using .htaccess at all. Just put the directives in the relevant
section in httpd.conf.

Joshua.

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

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 16:43:15 von Pam Astor

--_e928febc-5b32-44ea-be05-b39b17be10f3_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


> > I am trying to password protect a sub directory within the web space of a> > domain that is serving site statistics of awstats generated pages. The path> > to the dir is /home/user1/www/awstats. When testing, I am able to get a> > username and password prompt for the front page of the site, i.e. for> > www.mydomain.com, when I place the .htaccess file in www. But I can't get a> > functional prompt for www.mydomain.com/awstats when I place the .htaccess in> > the awstats dir. The login box comes up but it won't accept my username> > password combo, even though it will accept it when I have the same .htaccess> > file in the www dir.> > See:> http://httpd.apache.org/docs/2.2/howto/htaccess.html> > Your problem is that you don't have AllowOverride set correctly for> the relevant directory.
But beyond that, you probably don't want to be> using .htaccess at all. Just put the directives in the relevant> section in httpd.conf.> > Joshua.
Thanks Joshua,

I read the above DOC you posted thanks. Just to clarify, do you
reccomend that I use the method in the main httpd.conf file
as described in the above, instead ot .htaccess?
____________________________________________________________ _____
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Defaul t.aspx?Locale=en-US?ocid=TAG_APRIL
--_e928febc-5b32-44ea-be05-b39b17be10f3_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






> > I am trying to password protect a sub directory within the web space of a
> > domain that is serving site statistics of awstats generated pages. The path
> > to the dir is /home/user1/www/awstats. When testing, I am able to get a
> > username and password prompt for the front page of the site, i.e. for
> > www.mydomain.com, when I place the .htaccess file in www. But I can't get a
> > functional prompt for www.mydomain.com/awstats when I place the .htaccess in
> > the awstats dir. The login box comes up but it won't accept my username
> > password combo, even though it will accept it when I have the same .htaccess
> > file in the www dir.
>
> See:
> http://httpd.apache.org/docs/2.2/howto/ht
access.html
>
> Your problem is that you don't have AllowOverride set correctly for
> the relevant directory. But beyond that, you probably don't want to be
> using
.htaccess at all. Just put the directives in the relevant
> <Directory> section in httpd.conf.
>
> Joshua.


Thanks Joshua,

 

I read the above DOC you posted thanks.  Just to clarify, do you

reccomend that I use the  method in the main httpd.conf file

as described in the above, instead ot .htaccess?


Express yourself wherever you are.

--_e928febc-5b32-44ea-be05-b39b17be10f3_--

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 17:02:10 von Pam Astor

--_ee6ed711-0de6-469a-99fb-6f93f9273e76_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit






>>> I am trying to password protect a sub directory within the web space of a>>> domain that is serving site statistics of awstats generated pages. The path>> > to the dir is /home/user1/www/awstats. When testing, I am able to get a>> > username and password prompt for the front page of the site, i.e. for>> > www.mydomain.com, when I place the .htaccess file in www. But I can't get a>> > functional prompt for www.mydomain.com/awstats when I place the .htaccess in>> > the awstats dir. The login box comes up but it won't accept my username>> > password combo, even though it will accept it when I have the same .htaccess>> > file in the www dir.>> >> See:>> http://httpd.apache.org/docs/2.2/howto/htaccess.html>> >> Your problem is that you don't have AllowOverride set correctly for>> the releva
nt directory. But beyond that, you probably don't want to be>> using .htaccess at all. Just put the directives in the relevant>> section in httpd.conf.>> >> Joshua.>>Thanks Joshu
a,> >I read the above DOC you posted thanks. Just to clarify, do you>reccomend that I use the method in the main httpd.conf file>as described in the above, instead ot .htaccess?

Oops, just re read your post :) appears that's what you meant.

____________________________________________________________ _____
In a rush? Get real-time answers with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_ TAGLM_WL_Refresh_realtime_042008
--_ee6ed711-0de6-469a-99fb-6f93f9273e76_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit










>>> I am trying to password protect a sub directory within the web space of a
>>> domain that is serving site statistics of awstats generated pages. The path
>> > to the dir is /home/user1/www/awstats. When testing, I am able to get a
>> > username and password prompt for the front page of the site, i.e. for
>> > www.mydomain.com, when I place the .htaccess file in www. But I can't get a
>> > functional prompt for www.mydomain.com/awstats when I place the .htaccess in
>> > the awstats dir. The login box comes up but it won't accept my username
>> > password combo, even though it will accept it when I have the same .htaccess
>> > file in the www dir.
>>
>> See:
>
> http://httpd.apache.org/docs/2.2/howto/htaccess.html
>>
>> Your problem is that you don't have AllowOverride set correctly for
>> the relevant directory. But
beyond that, you probably don't want to be
>> using .htaccess at all. Just put the directives in the relevant
>> <Directory> section in httpd.conf.
>>
>> Joshua.
>
>Thanks Joshua,

>I read the above DOC you posted thanks.  Just to clarify, do you
>reccomend that I use the  method in the main httpd.conf file
>as described in the above, instead ot .htaccess?

 

Oops, just re read your post :) appears that's what you meant.

 


In a rush?

--_ee6ed711-0de6-469a-99fb-6f93f9273e76_--

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 20:10:17 von Pam Astor

--_01a35848-e73b-41ff-8448-5b597ccf0483_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit









>>>> I am trying to password protect a sub directory within the web space of a>>>> domain that is serving site statistics of awstats generated pages. The path>>> > to the dir is /home/user1/www/awstats. When testing, I am able to get a>>> > username and password prompt for the front page of the site, i.e. for>>> > www.mydomain.com, when I place the .htaccess file in www. But I can't get a>>> > functional prompt for www.mydomain.com/awstats when I place the .htaccess in>>> > the awstats dir. The login box comes up but it won't accept my username>>> > password combo, even though it will accept it when I have the same .htaccess>>> > file in the www dir.>>> >>> See:>>> http://httpd.apache.org/docs/2.2/howto/htaccess.html>>> >>> Your problem is that you don't have AllowOverride set correctly fo
r>>> the relevant directory. But beyond that, you probably don't want to be>>> using .htaccess at all. Just put the directives in the relevant>>> section in httpd.conf.>>> >>> Jo
shua.>>>>Thanks Joshua,>> >>I read the above DOC you posted thanks. Just to clarify, do you>>reccomend that I use the method in the main httpd.conf file>>as described in the above, instead ot .htaccess?> >Oops, just re read your post :) appears that's what you meant.

OK I took the advice and have been trying to set up http username and password logins without using .htaccess files inside the web accessible directory I am trying to password protect. I checked my AllowOverride settings in httpd.conf and they appear to be set correctly and I’m still not getting a login prompt which accepts the correct username and password I type in for the script aliased directory. I posted all of my AllowOverride settings in the main httpd.conf file at the end of this post.

I am trying to use the tag instead of the tag within individual virtual domain httpd.conf files – files which were enabled by the main httpd.conf file’s “Include conf.d/*.conf” directive. In other words, I have virtual domain files - www.domain1.con.conf , www.domain2.com.conf , and so on in the /etc/httpd/conf.d directory which all contain (so far only) my virtual host tags for those domains.

Is using the tag advisable (or possible), instead of using the tag in my virtual host .conf files to enable username password logins?

I read this as a good method in my Apache 2.0 Wrox book, it’s a bit out dated though, and I’m using Apache 2.2 on a Centos 5.1 box.

The tag I just added to one of my test virtual domain files is this:


AuthName "MembersOnly"
AuthType Basic
AuthUserFile /home/mydirectory/.htpasswd
Require user testuser


The above virtual domain file includes the tag:


ServerAdmin help@blabla.com
DocumentRoot /home/mydirectory/www
ServerName www.blabla.com
ServerAlias blabla.com
ErrorLog logs/blabla.com-error_log
CustomLog logs/blabla.com-access_log combined
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"


After reloading apache and going to http.www.blabla.com, I did get a popup login box, but when I type in my username and password it won’t take it, even though I’m sure it’s the correct combo created by htpasswd –c .htpasswd testuser.

Any hints or suggestions as to what I am doing wrong?

Below are the AllowOverride settings in httpd.conf:


Options FollowSymLinks
AllowOverride AuthConfig



Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all




Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all



AllowOverride None
Options None
Order allow,deny
Allow from all



AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback




AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback





In a rush? Get real-time answers with Windows Live Messenger.
____________________________________________________________ _____
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Defaul t.aspx?Locale=en-US?ocid=TAG_APRIL
--_01a35848-e73b-41ff-8448-5b597ccf0483_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit













>>>> I am trying to password protect a sub directory within the web space of a
>>>> domain that is serving site statistics of awstats generated pages. The path
>>> > to the dir is /home/user1/www/awstats. When testing, I am able to get a
>>> > username and password prompt for the front page of the site, i.e. for
>>> > www.mydomain.com, when I place the .htaccess file in www. But I can't get a
>>> > functional prompt for www.mydomain.com/awstats when I place the .htaccess in
>>> > the awstats dir. The login box comes up but it won't accept my username
>>> > password combo, even though it will accept it when I have the same .htaccess
>>> > file in the www dir. R>>>>
>>> See:
>>> http://httpd.apache.org/docs/2.2/howto/htaccess.html
>>>
>>> Your problem is that you don't have AllowOverride s
et correctly for
>>> the relevant directory. But beyond that, you probably don't want to be
>>> using .htaccess at all. Just put the directives in the relevant
>>> <Directory> section in httpd.conf.
>>>
>>> Joshua.
>>
>>Thanks Joshua,
>> 
>>I read the above DOC you posted thanks.  Just to clarify, do you
>>reccomend that I use the  method in the main httpd.conf file
>>as described in the above, instead ot .htaccess?

>Oops, just re read your post :) appears that's
what you meant.

 

OK I took the advice and have been trying to set up http username and password logins without using .htaccess files inside the web accessible directory I am trying to password protect.  I checked my AllowOverride settings in httpd.conf and they appear to be set correctly and I’m still not getting a login prompt which accepts the correct username and password I type in for the script aliased directory.  I posted all of my AllowOverride settings in
the main httpd.conf file at the end of this post. 
<
/FONT>


 


I am trying to use the <Location> tag instead of the <Directory> tag within individual virtual domain httpd.conf files – files which were enabled by the main httpd.conf file’s “Include conf.d/*.conf” directive.  In other words, I have virtual domain files -   , and so on in the /etc/httpd/conf.
d directory which all contain (so far only) my virtual host tags for those domains.


 


Is using the <Location> tag advisable (or possible), instead of using the <directory> tag in my virtual host .conf files to enable username password logins? 


 


I read this as a good method in my Apache 2.0 Wrox book, it’s a bit out dated though, and I’m using Apache 2.2 on a Centos 5.1 box.


 


The tag I just added to one of my test virtual domain files is this:


 


<Location /home/mydirectory/www/awstats>


AuthName "MembersOnly"


AuthType Basic


AuthUserFile /home/mydirectory/.htpasswd


Require user testuser


</Location>


 


The above  virtual domain file includes the tag:


 


<VirtualHost 12.345.678.910:80>


   ServerAdmin help@blabla.com


    DocumentRoot /home/mydirectory/www


    ServerName www.blabla.com


    ServerAlias blabla.com


    ErrorLog logs/blabla.com-error_log


   CustomLog logs/blabla.com-access_log combined


ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"


</VirtualHost>


 


After reloading apache and going to http.www.blabla.com, I did get a popup login box, but when I type in my username and password it won’t take it, even though I’m sure it’s the correct combo created by htpasswd –c .htpasswd testuser.


 


Any hints or suggestions as to what I am doing wrong?


 


Below are the AllowOverride settings in httpd.conf:


 


<Directory />


    Options FollowSymLinks


    AllowOverride AuthConfig


</Directory>


 


<Directory "/var/www/html">


    Options Indexes FollowSymLinks


    AllowOverride All


    Order allow,deny


    Allow from all


</Directory>


 


 


<Directory "/var/www/icons">


    Options Indexes MultiViews


    AllowOverride None


    Order allow,deny


    Allow from all


</Directory>


 


<Directory "/var/www/cgi-bin">


    AllowOverride None


    Options None


    Order allow,deny


    Allow from all


</Directory>


 


    <Directory "/var/www/error">


        AllowOverride None


        Options IncludesNoExec


        AddOutputFilter Includes html


        AddHandler type-map var


        Order allow,deny


        Allow from all


        LanguagePriority en es de fr


        ForceLanguagePriority Prefer Fallback


    </Directory>


 


<IfModule mod_include.c>


    <Directory "/var/www/error">


        AllowOverride None


        Options IncludesNoExec


        AddOutputFilter Includes html


        AddHandler type-map var


        Order allow,deny


        Allow from all


        LanguagePriority en es de fr


        ForceLanguagePriority Prefer Fallback


    </Directory>


 




 





In a rush?

--_01a35848-e73b-41ff-8448-5b597ccf0483_--

Re: .htaccess for script aliased directoriesþ

am 25.04.2008 20:23:49 von Joshua Slive

2008/4/25 Pam Astor :

> OK I took the advice and have been trying to set up http username and
> password logins without using .htaccess files inside the web accessible
> directory I am trying to password protect. I checked my AllowOverride
> settings in httpd.conf and they appear to be set correctly

Allowoverride is completely irrelevant. It affects only .htaccess processing.

> I am trying to use the tag instead of the tag within

> Is using the tag advisable (or possible), instead of using the
> tag in my virtual host .conf files to enable username password
> logins?
>
>
>

No, that's definitely wrong. refers to web-paths, while
that is a file-system path. Use .

Joshua.

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

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 20:42:04 von Pam Astor

--_4b8ed898-ac85-4bcc-adbf-a2fbebe299f2_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


> > OK I took the advice and have been trying to set up http username and> > password logins without using .htaccess files inside the web accessible> > directory I am trying to password protect. I checked my AllowOverride> > settings in httpd.conf and they appear to be set correctly> > Allowoverride is completely irrelevant. It affects only .htaccess processing.> > > I am trying to use the tag instead of the tag within> > > Is using the tag advisable (or possible), instead of using the> > tag in my virtual host .conf files to enable username password> > logins?> >> > > >> > No, that's definitely wrong. refers to web-paths, while> that is a file-system path. Use .> > Joshua.

OK thanks, I tried again, this time I added to my virtualdomain .conf file
the below, and I am still having the same problem...

AuthName "MembersOnly"AuthType BasicAuthUserFile /home/mydirectory/.htpasswdRequire user coder



____________________________________________________________ _____
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Defaul t.aspx?Locale=en-US?ocid=TAG_APRIL
--_4b8ed898-ac85-4bcc-adbf-a2fbebe299f2_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






> > OK I took the advice and have been trying to set up http username and
> > password logins without using .htaccess files inside the web accessible
> > directory I am trying to password protect. I checked my AllowOverride
> > settings in httpd.conf and they appear to be set correctly
>
> Allowoverride is completely irrelevant. It affects only .htaccess processing.
>
> > I am trying to use the <Location> tag instead of the <Directory> tag within
>
> > Is using the <Location> tag advisable (or possible), instead of using the
> > <directory> tag in my virtual host .conf files to enable username password
> > logins?
> >
> > <Location /home/mydirectory/w
ww/awstats>
> >
>
> No, that's definitely wrong. <Location> refers to web-paths, while
> that is a file-system path. Use <Directory>.
>
&
gt; Joshua.

 

OK thanks, I tried again, this time I added to my virtualdomain .conf file

the below, and I am still having the same problem...

 

<Directory /home/mydirectory/www/awstats>
AuthName "MembersOnly"
AuthType Basic
AuthUserFile /home/mydirectory/.htpasswd
Require user coder
</Directory>


 

 

 


Express yourself wherever you are.

--_4b8ed898-ac85-4bcc-adbf-a2fbebe299f2_--

Re: .htaccess for script aliased directoriesþ

am 25.04.2008 20:54:49 von Joshua Slive

2008/4/25 Pam Astor :
>
>
> OK thanks, I tried again, this time I added to my virtualdomain .conf file
> the below, and I am still having the same problem...
>
>

There's really only two things that are likely to explain that:

1. The directory you entered above is not the correct path; or
2. The conf file you are editting is not being read.

Check 1 by requesting a file that you know doesn't exist and check the
error log to see what path apache is searching in. Check 2 by putting
a deliberate syntax error in the conf file, restart the server, and
make sure apache fails to start with an error.

Joshua.

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

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 21:02:08 von Pam Astor

--_1c9c97b5-b9c6-4351-994c-c935e7cfcd1f_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


> 1. The directory you entered above is not the correct path; or> 2. The conf file you are editting is not being read.> > Check 1 by requesting a file that you know doesn't exist and check the> error log to see what path apache is searching in. Check 2 by putting> a deliberate syntax error in the conf file, restart the server, and> make sure apache fails to start with an error.> > Joshua.

The directory in question - /home/mydirectory/www/awstats
is a path to a script alias. In other words,
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"(appears in the virtual domain tag for this domain).

Could that have anything to do with the problem?


____________________________________________________________ _____
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Defaul t.aspx?Locale=en-US?ocid=TAG_APRIL
--_1c9c97b5-b9c6-4351-994c-c935e7cfcd1f_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






> 1. The directory you entered above is not the correct path; or
> 2. The conf file you are editting is not being read.
>
> Check 1 by requesting a file that you know doesn't exist and check the
> error log to see what path apache is searching in. Check 2 by putting
> a deliberate syntax error in the conf file, restart the server, and
> make sure apache fails to start with an error.
>
> Joshua.

 

The directory in question - /home/mydirectory/www/awstats

is a path to a script alias.  In other words,

ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
(appears in the virtual domain tag for this domain).

 

Could that have anything to do with the problem?

 

 


Express yourself wherever you are.

--_1c9c97b5-b9c6-4351-994c-c935e7cfcd1f_--

Re: .htaccess for script aliased directoriesþ

am 25.04.2008 21:10:23 von Joshua Slive

2008/4/25 Pam Astor :
>
> > 1. The directory you entered above is not the correct path; or
> > 2. The conf file you are editting is not being read.
> >
> > Check 1 by requesting a file that you know doesn't exist and check the
> > error log to see what path apache is searching in. Check 2 by putting
> > a deliberate syntax error in the conf file, restart the server, and
> > make sure apache fails to start with an error.
> >
> > Joshua.
>
> The directory in question - /home/mydirectory/www/awstats
> is a path to a script alias. In other words,
> ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
> (appears in the virtual domain tag for this domain).
>
> Could that have anything to do with the problem?

Yes. refers to the file-system directory where the content
lives. It should be .

Joshua.

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

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 21:15:35 von Pam Astor

--_f7cc7944-0e17-4502-b05e-927960212521_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


> > > 1. The directory you entered above is not the correct path; or> > > 2. The conf file you are editting is not being read.> > >> > > Check 1 by requesting a file that you know doesn't exist and check the> > > error log to see what path apache is searching in. Check 2 by putting> > > a deliberate syntax error in the conf file, restart the server, and> > > make sure apache fails to start with an error.> > >> > > Joshua.> >> > The directory in question - /home/mydirectory/www/awstats> > is a path to a script alias. In other words,> > ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"> > (appears in the virtual domain tag for this domain).> >> > Could that have anything to do with the problem?> > Yes. refers to the file-system directory where the content> lives. It sho
uld be .> > Joshua.

Darn. I tried that path as well and it did not work either. I know that
the 2 are correct paths because I could not see the stats unless it they were.

Also I know that the conf file I'm editing is being read, because I just
updated it yesterday, and I could not see my stats until I added that
script alias line in th evirtual domain tag.

Any other idea what could be the problem?
____________________________________________________________ _____
Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.com/word_slugger.aspx?icid=word_slugger_wlh m_admod_april08
--_f7cc7944-0e17-4502-b05e-927960212521_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






> > > 1. The directory you entered above is not the correct path; or
> > > 2. The conf file you are editting is not being read.
> > >
> > > Check 1 by requesting a file that you know doesn't exist and check the
> > > error log to see what path apache is searching in. Check 2 by putting
> > > a deliberate syntax error in the conf file, restart the server, and
> > > make sure apache fails to start with an error.
> > >
> > > Joshua.
> >
> > The directory in question - /home/mydirectory/www/awstats
> > is a path to a script alias. In other words,
> > ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
> > (appears in the virtual domain ta
g for this domain).
> >
> > Could that have anything to do with the problem?
>
> Yes. <Directory> refers to the file-system directory where the content R>> lives. It should be <Directory /usr/local/awstats/wwwroot/cgi-bin>.
>
> Joshua.

 

Darn.  I tried that path as well and it did not work either.  I know that 

the 2 are correct paths because I could not see the stats unless it they were.

 

Also I know that the conf file I'm editing is being read, because I just

updated it yesterday, and I could not see my stats until I added that

script alias line in th evirtual domain tag.

 

Any other idea what could be the problem?


Spell a grand slam in this game where word skill meets World Series.

--_f7cc7944-0e17-4502-b05e-927960212521_--

Re: .htaccess for script aliased directoriesþ

am 25.04.2008 21:20:57 von Joshua Slive

2008/4/25 Pam Astor :
>
>
> > > > 1. The directory you entered above is not the correct path; or
> > > > 2. The conf file you are editting is not being read.
> > > >
> > > > Check 1 by requesting a file that you know doesn't exist and check the
> > > > error log to see what path apache is searching in. Check 2 by putting
> > > > a deliberate syntax error in the conf file, restart the server, and
> > > > make sure apache fails to start with an error.
> > > >
> > > > Joshua.
> > >
> > > The directory in question - /home/mydirectory/www/awstats
> > > is a path to a script alias. In other words,
> > > ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
> > > (appears in the virtual domain tag for this domain).
> > >
> > > Could that have anything to do with the problem?
> >
> > Yes. refers to the file-system directory where the content>
> lives. It should be .
> >
> > Joshua.
>
> Darn. I tried that path as well and it did not work either. I know that
> the 2 are correct paths because I could not see the stats unless it they
> were.
>
> Also I know that the conf file I'm editing is being read, because I just
> updated it yesterday, and I could not see my stats until I added that
> script alias line in th evirtual domain tag.
>
> Any other idea what could be the problem?

I gave you two very specific tasks to do to isolate the problem. Do them.

Joshua.

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

Re: .htaccess for script aliased directories

am 25.04.2008 21:32:55 von Danie Qian

------=_NextPart_000_0E00_01C8A6E9.A1E4DB20
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

I just setup awstats a few weeks ago and this setting works for me in =
the :


Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /icon "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats =
directory.
#

Options None
AllowOverride None
Order allow,deny
Allow from all



AuthUserFile "/usr/local/awstats/wwwroot/mypasswordfile"
AuthName "Awstats"
AuthType Basic

require valid-user

Options None
AllowOverride AuthConfig
Order deny,allow
deny from all
allow from 216.130.212
allow from 216.130.209
allow from 216.130.213
Satisfy any





----- Original Message -----=20
From: Pam Astor=20
To: users@httpd.apache.org=20
Sent: Friday, April 25, 2008 3:15 PM
Subject: RE: [users@httpd] .htaccess for script aliased directories


> > > 1. The directory you entered above is not the correct path; or
> > > 2. The conf file you are editting is not being read.
> > >
> > > Check 1 by requesting a file that you know doesn't exist and =
check the
> > > error log to see what path apache is searching in. Check 2 by =
putting
> > > a deliberate syntax error in the conf file, restart the server, =
and
> > > make sure apache fails to start with an error.
> > >
> > > Joshua.
> >
> > The directory in question - /home/mydirectory/www/awstats
> > is a path to a script alias. In other words,
> > ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
> > (appears in the virtual domain tag for this domain).
> >
> > Could that have anything to do with the problem?
>=20
> Yes. refers to the file-system directory where the =
content> lives. It should be /usr/local/awstats/wwwroot/cgi-bin>.
>=20
> Joshua.
=20
Darn. I tried that path as well and it did not work either. I know =
that=20
the 2 are correct paths because I could not see the stats unless it =
they were.
=20
Also I know that the conf file I'm editing is being read, because I =
just
updated it yesterday, and I could not see my stats until I added that
script alias line in th evirtual domain tag.
=20
Any other idea what could be the problem?


------------------------------------------------------------ -------------=
-----
Spell a grand slam in this game where word skill meets World Series. =
Get in the game.
------=_NextPart_000_0E00_01C8A6E9.A1E4DB20
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable








I just setup awstats a few weeks ago and this =
setting=20
works for me in the <VirtualHost>:

 


        Alias =
/awstatsclasses=20
"/usr/local/awstats/wwwroot/classes/"
     &n=
bsp; =20
Alias /awstatscss=20
"/usr/local/awstats/wwwroot/css/"
      =
 =20
Alias /icon=20
"/usr/local/awstats/wwwroot/icon/"
      =
; =20
ScriptAlias /awstats/=20
"/usr/local/awstats/wwwroot/cgi-bin/"
     &n=
bsp; =20
#
        # This is to permit URL =
access=20
to scripts/files in AWStats=20
directory.
       =20
#
        <Directory=20
"/usr/local/awstats/wwwroot">
      &=
nbsp;=20
Options None
        AllowOverride =

None
        Order=20
allow,deny
        Allow from=20
all
        =
</Directory>

 

        <Directory=20
"/usr/local/awstats/wwwroot/cgi-bin">
     =
;  =20
AuthUserFile=20
"/usr/local/awstats/wwwroot/mypasswordfile"
    &n=
bsp;  =20
AuthName "Awstats"
        =
AuthType=20
Basic
        <Limit GET=20
POST>
          &=
nbsp;    =20
require valid-user
       =20
</Limit>
        Options=20
None
        AllowOverride=20
AuthConfig
        Order=20
deny,allow
        deny from=20
all
        allow from=20
216.130.212
        allow from=20
216.130.209
        allow from=20
216.130.213
        Satisfy=20
any
        =
</Directory>

 

 

 

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
----- Original Message -----

style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black">From:=20
href=3D"mailto:pamastor@hotmail.com">Pam Astor=20


Sent: Friday, April 25, 2008 =
3:15=20
PM

Subject: RE: [users@httpd] =
..htaccess for=20
script aliased directories


> > > 1. The directory you entered above is =
not the=20
correct path; or
> > > 2. The conf file you are editting =
is not=20
being read.
> > >
> > > Check 1 by requesting =
a file=20
that you know doesn't exist and check the
> > > error log =
to see=20
what path apache is searching in. Check 2 by putting
> > > =
a=20
deliberate syntax error in the conf file, restart the server, =
and
> >=20
> make sure apache fails to start with an error.
> > =
>
>=20
> > Joshua.
> >
> > The directory in question =
-=20
/home/mydirectory/www/awstats
> > is a path to a script =
alias. In=20
other words,
> > ScriptAlias /awstats/=20
"/usr/local/awstats/wwwroot/cgi-bin/"
> > (appears in the =
virtual=20
domain tag for this domain).
> >
> > Could that have =

anything to do with the problem?
>
> Yes. =
<Directory>=20
refers to the file-system directory where the content> lives. =
It=20
should be <Directory =
/usr/local/awstats/wwwroot/cgi-bin>.
>=20

> Joshua.
 
Darn.  I tried that path as well =
and it did=20
not work either.  I know that 
the 2 are correct paths =
because I=20
could not see the stats unless it they were.
 
Also I know =
that the=20
conf file I'm editing is being read, because I just
updated it =
yesterday,=20
and I could not see my stats until I added that
script alias line =
in th=20
evirtual domain tag.
 
Any other idea what could be =
the=20
problem?




Spell a grand slam in this game where word skill meets World Series. =
=
href=3D"http://club.live.com/word_slugger.aspx?icid=3Dword_s lugger_wlhm_a=
dmod_april08"=20
target=3D_new>Get in the game.


------=_NextPart_000_0E00_01C8A6E9.A1E4DB20--

Re: .htaccess for script aliased directories

am 25.04.2008 21:39:16 von Joshua Slive

On Fri, Apr 25, 2008 at 3:32 PM, Danie Qian wrote:

>
> require valid-user
>


Remove the and lines. They are dangerous. See:
http://httpd.apache.org/docs/2.2/mod/core.html#limit

Joshua.

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

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 21:45:49 von Pam Astor

--_256f4910-7c05-42af-a694-e6ad4d14d1b7_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


> I gave you two very specific tasks to do to isolate the problem. Do them.> > Joshua.

OK, for 1, I requested a non existant test file and this is the result from the error log:

[Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File does not exist: /home/userdir/www/test
For 2, I entered in blablabla inside of my virtual host tag and ran "servce httpd reload", and
got a failed restart, so I deleted blabla re ran reload and the httpd server restarted OK.

I also checked the logs for the failed logins and this is what I got:

[Fri Apr 25 15:20:20 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:20:23 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:20:23 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:30:10 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:30:10 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:30:18 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:30:18 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:31:12 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:31:12 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:31:27 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:31:27 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:35:05 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:35:05 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:35:10 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:35:10 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd
[Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured
[Fri Apr 25 15:37:58 2008] [error] [client 66.103.234.199] File does not exist: /home/userdir/www/_vti_bin



____________________________________________________________ _____
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Defaul t.aspx?Locale=en-US?ocid=TAG_APRIL
--_256f4910-7c05-42af-a694-e6ad4d14d1b7_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






> I gave you two very specific tasks to do to isolate the problem. Do them.
>
> Joshua.

 

OK, for 1, I requested a non existant test file and this is the result from the error log:

 

[Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File does not exist: /home/userdir/www/test


For 2, I entered in blablabla inside of my virtual host tag and ran "servce httpd reload", and

got a failed restart, so I deleted blabla re ran reload and the httpd server restarted OK.

 

I also checked the logs for the failed logins and this is what I got:

 

[Fri Apr 25 15:20:20 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:20:23 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:20:23 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:30:10 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:30:10 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:30:18 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:30:18 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:31:12 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:31:12 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:31:27 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:31:27 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:35:05 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:35:05 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:35:10 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:35:10 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file or directory: Could not open password file: /home/userdir/htpasswd


[Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] access to /awstats/ failed, reason: verification of user id 'coder' not configured


[Fri Apr 25 15:37:58 2008] [error] [client 66.103.234.199] File does not exist: /home/userdir/www/_vti_bin



 

 



Express yourself wherever you are.

--_256f4910-7c05-42af-a694-e6ad4d14d1b7_--

Re: .htaccess for script aliased directories

am 25.04.2008 21:50:29 von Danie Qian

------=_NextPart_000_0E53_01C8A6EC.160D6B50
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable


----- Original Message -----=20
From: Pam Astor=20
To: users@httpd.apache.org=20
Sent: Friday, April 25, 2008 3:45 PM
Subject: RE: [users@httpd] .htaccess for script aliased directories


> I gave you two very specific tasks to do to isolate the problem. Do =
them.
>=20
> Joshua.
=20
OK, for 1, I requested a non existant test file and this is the result =
from the error log:
=20
[Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File does =
not exist: /home/userdir/www/test

For 2, I entered in blablabla inside of my virtual host tag and ran =
"servce httpd reload", and
got a failed restart, so I deleted blabla re ran reload and the httpd =
server restarted OK.
=20
I also checked the logs for the failed logins and this is what I got:
=20

[Fri Apr 25 15:20:20 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:20:23 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:20:23 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:30:10 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:30:10 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:30:18 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:30:18 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:31:12 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:31:12 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:31:27 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:31:27 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:35:05 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:35:05 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:35:10 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:35:10 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such =
file or directory: Could not open password file: /home/userdir/htpasswd

[Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] access to =
/awstats/ failed, reason: verification of user id 'coder' not configured

[Fri Apr 25 15:37:58 2008] [error] [client 66.103.234.199] File does =
not exist: /home/userdir/www/_vti_bin


=20




------------------------------------------------------------ -------------=
-----


The reason is so obvious from your log.
------=_NextPart_000_0E53_01C8A6EC.160D6B50
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable








 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
----- Original Message -----

style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black">From:=20
href=3D"mailto:pamastor@hotmail.com">Pam Astor=20


Sent: Friday, April 25, 2008 =
3:45=20
PM

Subject: RE: [users@httpd] =
..htaccess for=20
script aliased directories


> I gave you two very specific tasks to do to =
isolate=20
the problem. Do them.
>
> Joshua.
 
OK, for 1, =
I=20
requested a non existant test file and this is the result from the =
error=20
log:
 
[Fri Apr 25 15:38:14 2008] [error] [client =
12.345.678.91]=20
File does not exist: /home/userdir/www/test

For 2, I entered in =

blablabla inside of my virtual host tag and ran "servce httpd reload", =

and
got a failed restart, so I deleted blabla re ran reload and the =
httpd=20
server restarted OK.
 
I also checked the logs for the =
failed=20
logins and this is what I got:
 

size=3D3> color=3D#000000>[Fri Apr 25 15:20:20 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:20:23 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:20:23 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:30:10 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:30:10 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:30:18 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:30:18 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:31:12 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:31:12 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:31:27 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:31:27 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:35:05 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:35:05 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:35:10 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:35:10 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


size=3D3> color=3D#000000>[Fri Apr 25 15:35:18 =
2008] [error]=20
[client 12.34.678.91] (2)No such file or directory: Could not open =
password=20
file: /home/userdir/htpasswd


size=3D3> color=3D#000000>[Fri Apr 25 15:35:18 =
2008] [error]=20
[client 12.34.678.91] access to /awstats/ failed, reason: verification =
of user=20
id 'coder' not configured


New Roman"=20
color=3D#000000 size=3D3>[Fri Apr 25 15:37:58 2008] [error] [client=20
66.103.234.199] File does not exist: =
/home/userdir/www/_vti_bin



 







 

The reason is so obvious from your=20
log.


------=_NextPart_000_0E53_01C8A6EC.160D6B50--

Re: .htaccess for script aliased directoriesþ

am 25.04.2008 21:53:21 von Joshua Slive

2008/4/25 Pam Astor :
>
> > I gave you two very specific tasks to do to isolate the problem. Do them.
> >
> > Joshua.
>
> OK, for 1, I requested a non existant test file and this is the result from
> the error log:
>
> [Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File does not
> exist: /home/userdir/www/test

You need to request a non-existent file under awstats to make this meaningful.

> [Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file or
> directory: Could not open password file: /home/userdir/htpasswd

That seems pretty clear. Your AuthUserFile directive is configured
incorrectly. It isn't pointing to an actual user file. You've obscured
the configuration in different ways pretty-much every time you've
posted it, which makes it impossible for me to tell you exactly what
it should be.

Joshua.

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

Re: .htaccess for script aliased directories

am 25.04.2008 21:53:59 von Danie Qian

----- Original Message -----
From: "Joshua Slive"
To: ; "Danie Qian"
Sent: Friday, April 25, 2008 3:39 PM
Subject: Re: [users@httpd] .htaccess for script aliased directories


> On Fri, Apr 25, 2008 at 3:32 PM, Danie Qian
> wrote:
>
>>
>> require valid-user
>>

>
> Remove the and lines. They are dangerous. See:
> http://httpd.apache.org/docs/2.2/mod/core.html#limit
>
> Joshua.
>

From the above link I cant find anything dangerous except for the fact that
it limits requests to GET,POST methods, about which my users never
complained. Or, did I miss out anything here?


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

Re: .htaccess for script aliased directories

am 25.04.2008 21:56:24 von shimmyshack

TGltaXRzIHRoZSByZXF1aXJlIGRpcmVjdGl2ZSB0byB0aG9zZSB2ZXJicyAt IHdoYXQgYWJvdXQg
dGhlIG90aGVycz8gDQpTZW50IGZyb20gbXkgQmxhY2tCZXJyecKuIHdpcmVs ZXNzIGRldmljZQ0K
DQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogIkRhbmllIFFp YW4iIDxkYW5pZWxA
YmVzdG5pbmduaW5nLmNvbT4NCg0KRGF0ZTogRnJpLCAyNSBBcHIgMjAwOCAx NTo1Mzo1OSANClRv
Ojx1c2Vyc0BodHRwZC5hcGFjaGUub3JnPg0KU3ViamVjdDogUmU6IFt1c2Vy c0BodHRwZF0gLmh0
YWNjZXNzIGZvciBzY3JpcHQgYWxpYXNlZCBkaXJlY3Rvcmllcw0KDQoNCi0t LS0tIE9yaWdpbmFs
IE1lc3NhZ2UgLS0tLS0gDQpGcm9tOiAiSm9zaHVhIFNsaXZlIiA8am9zaHVh QHNsaXZlLmNhPg0K
VG86IDx1c2Vyc0BodHRwZC5hcGFjaGUub3JnPjsgIkRhbmllIFFpYW4iIDxk YW5pZWxAYmVzdG5p
bmduaW5nLmNvbT4NClNlbnQ6IEZyaWRheSwgQXByaWwgMjUsIDIwMDggMzoz OSBQTQ0KU3ViamVj
dDogUmU6IFt1c2Vyc0BodHRwZF0gLmh0YWNjZXNzIGZvciBzY3JpcHQgYWxp YXNlZCBkaXJlY3Rv
cmllcw0KDQoNCj4gT24gRnJpLCBBcHIgMjUsIDIwMDggYXQgMzozMiBQTSwg RGFuaWUgUWlhbiA8
ZGFuaWVsQGJlc3RuaW5nbmluZy5jb20+IA0KPiB3cm90ZToNCj4NCj4+ICAg ICAgICAgPExpbWl0
IEdFVCBQT1NUPg0KPj4gICAgICAgICAgICAgICAgIHJlcXVpcmUgdmFsaWQt dXNlcg0KPj4gICAg
ICAgICA8L0xpbWl0Pg0KPg0KPiBSZW1vdmUgdGhlIDxMaW1pdCBHRVQgUE9T VD4gYW5kIDwvTGlt
aXQ+IGxpbmVzLiBUaGV5IGFyZSBkYW5nZXJvdXMuIFNlZToNCj4gaHR0cDov L2h0dHBkLmFwYWNo
ZS5vcmcvZG9jcy8yLjIvbW9kL2NvcmUuaHRtbCNsaW1pdA0KPg0KPiBKb3No dWEuDQo+DQoNCkZy
b20gdGhlIGFib3ZlIGxpbmsgSSBjYW50IGZpbmQgYW55dGhpbmcgZGFuZ2Vy b3VzIGV4Y2VwdCBm
b3IgdGhlIGZhY3QgdGhhdCANCml0IGxpbWl0cyByZXF1ZXN0cyB0byBHRVQs UE9TVCBtZXRob2Rz
LCBhYm91dCB3aGljaCBteSB1c2VycyBuZXZlciANCmNvbXBsYWluZWQuIE9y LCBkaWQgSSBtaXNz
IG91dCBhbnl0aGluZyBoZXJlPyANCg0KDQotLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NClRoZSBv ZmZpY2lhbCBVc2Vy
LVRvLVVzZXIgc3VwcG9ydCBmb3J1bSBvZiB0aGUgQXBhY2hlIEhUVFAgU2Vy dmVyIFByb2plY3Qu
DQpTZWUgPFVSTDpodHRwOi8vaHR0cGQuYXBhY2hlLm9yZy91c2Vyc2xpc3Qu aHRtbD4gZm9yIG1v
cmUgaW5mby4NClRvIHVuc3Vic2NyaWJlLCBlLW1haWw6IHVzZXJzLXVuc3Vi c2NyaWJlQGh0dHBk
LmFwYWNoZS5vcmcNCiAgICIgICBmcm9tIHRoZSBkaWdlc3Q6IHVzZXJzLWRp Z2VzdC11bnN1YnNj
cmliZUBodHRwZC5hcGFjaGUub3JnDQpGb3IgYWRkaXRpb25hbCBjb21tYW5k cywgZS1tYWlsOiB1
c2Vycy1oZWxwQGh0dHBkLmFwYWNoZS5vcmcNCg0K

Re: .htaccess for script aliased directories

am 25.04.2008 21:56:53 von dragon

Danie Qian wrote:

>----- Original Message ----- From: "Joshua Slive"
>To: ; "Danie Qian"
>Sent: Friday, April 25, 2008 3:39 PM
>Subject: Re: [users@httpd] .htaccess for script aliased directories
>
>
>>On Fri, Apr 25, 2008 at 3:32 PM, Danie Qian wrote:
>>
>>>
>>> require valid-user
>>>

>>
>>Remove the and lines. They are dangerous. See:
>>http://httpd.apache.org/docs/2.2/mod/core.html#limit
>>
>>Joshua.
>
> From the above link I cant find anything dangerous except for the
> fact that it limits requests to GET,POST methods, about which my
> users never complained. Or, did I miss out anything here?
---------------- End original message. ---------------------


No, it does not do what you think.

As you have it in your config, it requires a valid user for only the
GET and POST methods. It ALLOWS all other methods without a valid user.


This opens you up to potential attacks. You want to remove the Limit
directives so ALL methods will require a valid user.


Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~


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

Re: .htaccess for script aliased directories

am 25.04.2008 22:16:17 von Danie Qian

----- Original Message -----
From: "Dragon"
To:
Sent: Friday, April 25, 2008 3:56 PM
Subject: Re: [users@httpd] .htaccess for script aliased directories


> Danie Qian wrote:
>
>>----- Original Message ----- From: "Joshua Slive"
>>To: ; "Danie Qian"
>>Sent: Friday, April 25, 2008 3:39 PM
>>Subject: Re: [users@httpd] .htaccess for script aliased directories
>>
>>
>>>On Fri, Apr 25, 2008 at 3:32 PM, Danie Qian
>>>wrote:
>>>
>>>>
>>>> require valid-user
>>>>

>>>
>>>Remove the and lines. They are dangerous. See:
>>>http://httpd.apache.org/docs/2.2/mod/core.html#limit
>>>
>>>Joshua.
>>
>> From the above link I cant find anything dangerous except for the fact
>> that it limits requests to GET,POST methods, about which my users never
>> complained. Or, did I miss out anything here?
> ---------------- End original message. ---------------------
>
>
> No, it does not do what you think.
>
> As you have it in your config, it requires a valid user for only the GET
> and POST methods. It ALLOWS all other methods without a valid user.
>
>
> This opens you up to potential attacks. You want to remove the Limit
> directives so ALL methods will require a valid user.
>
>
> Dragon
>

I copied the lines from another server and never thought about it in this
way :)
Thanks everyone for pointing it out for me to eliminate a potential security
problem.


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

RE: .htaccess for script aliased directoriesþ

am 25.04.2008 22:25:45 von Pam Astor

--_c7d72824-7e0d-4d0d-9294-d80a17e5b18e_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: 8bit


> > OK, for 1, I requested a non existant test file and this is the result from> > the error log:> >> > [Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File does not> > exist: /home/userdir/www/test> > You need to request a non-existent file under awstats to make this meaningful.

That's what I did. I pointed browser to http://www.mydomain.com/awstats/afasfsafdsafsa and got:

[Fri Apr 25 16:14:12 2008] [error] [client 12.34.567.12] script not found or unable to stat: /usr/local/awstats/wwwroot/cgi-bin/afasfsafdsafsa
Unless I am not understanding you? OK I also pointed my browser to http://www.mydomain.com/fasfdasdfsafda and got:

[Fri Apr 25 16:16:52 2008] [error] [client 12.34.567.12] File does not exist: /home/userdir/www/fasfdasdfsafda

> > [Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file or> > directory: Could not open password file: /home/userdir/htpasswd> > That seems pretty clear. Your AuthUserFile directive is configured> incorrectly. It isn't pointing to an actual user file. You've obscured> the configuration in different ways pretty-much every time you've> posted it, which makes it impossible for me to tell you exactly what> it should be.

I checked the AuthUserFile directive, and it's the correct name and location of the htpasswd file.
I even tried changing permissions and ownership on the htpasswd file to apache,
then to the owner of the account,
then back to root, nothing worked.

Unless, am I not supposed to point AuthUserFile to the password file for the user
trying to log in and point it to something else?

> > Joshua.

____________________________________________________________ _____
Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.com/word_slugger.aspx?icid=word_slugger_wlh m_admod_april08
--_c7d72824-7e0d-4d0d-9294-d80a17e5b18e_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: 8bit






> > OK, for 1, I requested a non existant test file and this is the result from
> > the error log:
> >
> > [Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File does not
> > exist: /home/userdir/www/test
>
> You need to request a non-existent file under awstats to make this meaningful.


 


 That's what I did.  I pointed browser to  and got:


 


[Fri Apr 25 16:14:12 2008] [error] [client 12.34.567.12] script not found or unable to stat: /usr/local/awstats/wwwroot/cgi-bin/afasfsafdsafsa



Unless I am not understanding you?  OK I also pointed my browser to  and got:


 


[Fri Apr 25 16:16:52 2008] [error] [client 12.34.567.12] File does not exist: /home/userdir/www/fasfdasdfsafda


 


> > [Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file or
> > directory: Could not open password file: /home/userdir/htpasswd
>
> That seems pretty clear. Your AuthUserFile directive is configured
> incorrectly. It isn't pointing to an actual user file. You've obscured
> the configuration in different ways pretty-much every time you've
> posted it, which makes it impossible for me to tell you exactly what
> it should be.


 


I checked the AuthUserFile directive, and it's the correct name and location of the htpasswd file.


I even tried changing permissions and ownership on the htpasswd file to apache,


then to the owner of the account,


then back to root, nothing worked.


 


Unless, am I not supposed to point AuthUserFile to the password file for the user


trying to log in and point it to something else?


 


>
> Joshua.


 


Spell a grand slam in this game where word skill meets World Series.

--_c7d72824-7e0d-4d0d-9294-d80a17e5b18e_--

Re: .htaccess for script aliased directories

am 25.04.2008 22:32:01 von Danie Qian

----- Original Message -----
From: "Danie Qian"
To:
Sent: Friday, April 25, 2008 4:16 PM
Subject: Re: [users@httpd] .htaccess for script aliased directories


>
> ----- Original Message -----
> From: "Dragon"
> To:
> Sent: Friday, April 25, 2008 3:56 PM
> Subject: Re: [users@httpd] .htaccess for script aliased directories
>
>
>> Danie Qian wrote:
>>
>>>----- Original Message ----- From: "Joshua Slive"
>>>To: ; "Danie Qian"
>>>Sent: Friday, April 25, 2008 3:39 PM
>>>Subject: Re: [users@httpd] .htaccess for script aliased directories
>>>
>>>
>>>>On Fri, Apr 25, 2008 at 3:32 PM, Danie Qian
>>>>wrote:
>>>>
>>>>>
>>>>> require valid-user
>>>>>

>>>>
>>>>Remove the and lines. They are dangerous. See:
>>>>http://httpd.apache.org/docs/2.2/mod/core.html#limit
>>>>
>>>>Joshua.
>>>
>>> From the above link I cant find anything dangerous except for the fact
>>> that it limits requests to GET,POST methods, about which my users never
>>> complained. Or, did I miss out anything here?
>> ---------------- End original message. ---------------------
>>
>>
>> No, it does not do what you think.
>>
>> As you have it in your config, it requires a valid user for only the GET
>> and POST methods. It ALLOWS all other methods without a valid user.
>>
>>
>> This opens you up to potential attacks. You want to remove the Limit
>> directives so ALL methods will require a valid user.
>>
>>
>> Dragon
>>
>
> I copied the lines from another server and never thought about it in this
> way :)
> Thanks everyone for pointing it out for me to eliminate a potential
> security problem.
>

On second thought, I tested the setting by commentting out the 'require
valid-user' line completely to see what the browsor gets for other methods,
it is actually a 403 forbidden error instead of a open 200. So i guess I was
fine with the GET POST lines - it only triggers a login
prompt for GET & POST while leaving the others forbidden. Am I wrong?


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

Re: .htaccess for script aliased directories

am 25.04.2008 22:38:41 von Danie Qian

------=_NextPart_000_0EC1_01C8A6F2.D1CA6D60
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

what OS is it you are running?
----- Original Message -----=20
From: Pam Astor=20
To: users@httpd.apache.org=20
Sent: Friday, April 25, 2008 4:25 PM
Subject: RE: [users@httpd] .htaccess for script aliased directories


> > OK, for 1, I requested a non existant test file and this is the =
result from
> > the error log:
> >
> > [Fri Apr 25 15:38:14 2008] [error] [client 12.345.678.91] File =
does not
> > exist: /home/userdir/www/test
>=20
> You need to request a non-existent file under awstats to make this =
meaningful.



That's what I did. I pointed browser to =
http://www.mydomain.com/awstats/afasfsafdsafsa and got:

=20

[Fri Apr 25 16:14:12 2008] [error] [client 12.34.567.12] script not =
found or unable to stat: =
/usr/local/awstats/wwwroot/cgi-bin/afasfsafdsafsa


Unless I am not understanding you? OK I also pointed my browser to =
http://www.mydomain.com/fasfdasdfsafda and got:

=20

[Fri Apr 25 16:16:52 2008] [error] [client 12.34.567.12] File does not =
exist: /home/userdir/www/fasfdasdfsafda

=20

> > [Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No =
such file or
> > directory: Could not open password file: /home/userdir/htpasswd
>=20
> That seems pretty clear. Your AuthUserFile directive is configured
> incorrectly. It isn't pointing to an actual user file. You've =
obscured
> the configuration in different ways pretty-much every time you've
> posted it, which makes it impossible for me to tell you exactly what
> it should be.

=20

I checked the AuthUserFile directive, and it's the correct name and =
location of the htpasswd file.

I even tried changing permissions and ownership on the htpasswd file =
to apache,=20

then to the owner of the account,

then back to root, nothing worked.



Unless, am I not supposed to point AuthUserFile to the password file =
for the user

trying to log in and point it to something else?

=20

>=20
> Joshua.

=20


------------------------------------------------------------ -------------=
-----
Spell a grand slam in this game where word skill meets World Series. =
Get in the game.
------=_NextPart_000_0EC1_01C8A6F2.D1CA6D60
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable








what OS is it you are running?

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
----- Original Message -----

style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black">From:=20
href=3D"mailto:pamastor@hotmail.com">Pam Astor=20

To: title=3Dusers@httpd.apache.org=20
href=3D"mailto:users@httpd.apache.org">users@httpd.apache.or g
=

Sent: Friday, April 25, 2008 =
4:25=20
PM

Subject: RE: [users@httpd] =
..htaccess for=20
script aliased directories



style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">> =
> OK,=20
for 1, I requested a non existant test file and this is the result=20
from
> > the error log:
> >
> > [Fri Apr 25 =

15:38:14 2008] [error] [client 12.345.678.91] File does not
> =
>=20
exist: /home/userdir/www/test
>
> You need to request a=20
non-existent file under awstats to make this =
meaningful.


 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> That's=20
what I did.  I pointed browser to =
href=3D"http://www.mydomain.com/awstats/afasfsafdsafsa">http ://www.mydoma=
in.com/awstats/afasfsafdsafsa and=20
got:


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">[Fri =
Apr 25=20
16:14:12 2008] [error] [client 12.34.567.12] script not found or =
unable to=20
stat: /usr/local/awstats/wwwroot/cgi-bin/afasfsafdsafsa


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana">
Unless I am=20
not understanding you?  OK I also pointed my browser to =
href=3D"http://www.mydomain.com/fasfdasdfsafda">http://www.m ydomain.com/f=
asfdasdfsafda and=20
got:


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">[Fri =
Apr 25=20
16:16:52 2008] [error] [client 12.34.567.12] File does not exist:=20
/home/userdir/www/fasfdasdfsafda


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">> =
> [Fri=20
Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file =
or
>=20
> directory: Could not open password file: =
/home/userdir/htpasswd
>=20

> That seems pretty clear. Your AuthUserFile directive is=20
configured
> incorrectly. It isn't pointing to an actual user =
file.=20
You've obscured
> the configuration in different ways =
pretty-much every=20
time you've
> posted it, which makes it impossible for me to =
tell you=20
exactly what
> it should be.


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">I =
checked the=20
AuthUserFile directive, and it's the correct name and location of the =
htpasswd=20
file.


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">I =
even tried=20
changing permissions style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">and =
ownership=20
on the htpasswd file to apache,


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">then =
to the=20
owner of the account,


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">then =
back to=20
root, nothing worked.


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana">Unless, am I=20
not supposed to point AuthUserFile to the password file for the=20
user


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana">trying to log=20
in and point it to something else?


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: =
Verdana"> 


style=3D"FONT-SIZE: 8.5pt; COLOR: #444444; FONT-FAMILY: Verdana">> =

>=20
Joshua.


 




Spell a grand slam in this game where word skill meets World Series. =
=
href=3D"http://club.live.com/word_slugger.aspx?icid=3Dword_s lugger_wlhm_a=
dmod_april08"=20
target=3D_new>Get in the game.


------=_NextPart_000_0EC1_01C8A6F2.D1CA6D60--

RE: .htaccess for script aliased directories SOLVED!

am 25.04.2008 23:00:35 von Pam Astor

--_dd73a611-23b3-428a-808d-89253f700316_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable





Thanks so much Danie!=20
=20
I think the problem was the fact that I was not using double quotes=20
for my path in the Tag. I saw your earlier post - noticed you =
had them,
added them in, and set the path again to the script aliased path and it wor=
ked fine. =20
=20
I was able to get it working with this simple tag:
=20
AuthName "MembersOnly"AuthTy=
pe BasicAuthUserFile "/home/userdir/htpasswd"Require user coderAllowOverrid=
e AuthConfig

=20
I had a hunch it was something simple. Thanks so much!
=20
=20
=20
I just setup awstats a few weeks ago and this setting works for me in the <=
VirtualHost>:
=20
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" =
Alias /awstatscss "/usr/local/awstats/wwwroot/css/" Alias /icon "/us=
r/local/awstats/wwwroot/icon/" ScriptAlias /awstats/ "/usr/local/aws=
tats/wwwroot/cgi-bin/" # # This is to permit URL access to sc=
ripts/files in AWStats directory. # stats/wwwroot"> Options None AllowOverride None Order =
allow,deny Allow from all

=20
AuthUserFil=
e "/usr/local/awstats/wwwroot/mypasswordfile" AuthName "Awstats" =
AuthType Basic require valid-use=
r
Options None AllowOverride AuthConfig =
Order deny,allow deny from all allow from 216.130.212 =
allow from 216.130.209 allow from 216.130.213 Satisfy any =
skill meets World Series. Get in the game.=20
____________________________________________________________ _____
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Defaul t.aspx?Locale=
=3Den-US?ocid=3DTAG_APRIL=

--_dd73a611-23b3-428a-808d-89253f700316_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable









Thanks so much Danie! 

 

I think the problem was the fact that I was not usi=
ng double quotes

for my path in the <Directory> Tag.  I s=
aw your earlier post - noticed you had them,

added them in, and set the path again to the >script aliased path and it worked fine.  DIV>
 

I was able to get it working with this simple tag:<=
/FONT>

 

<Directory "usr/local/awstats/wwwroot/cgi-bin">
AuthName "Mem=
bersOnly"
AuthType Basic
AuthUserFile "/home/userdir/htpasswd"
Req=
uire user coder
AllowOverride AuthConfig
</Directory>

 

I had a hunch it was something simple.  T T>hanks so much!

 

 

 

I just setup awstats a few weeks ago and this setti=
ng works for me in the <VirtualHost>:

 


        Alias /awstatsclasses "=
/usr/local/awstats/wwwroot/classes/"
      =
;  Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
  =
      Alias /icon "/usr/local/awstats/wwwroot/icon=
/"
        ScriptAlias /awstats/ "/us=
r/local/awstats/wwwroot/cgi-bin/"
      &n=
bsp; #
        # This is to permit UR=
L access to scripts/files in AWStats directory.
    =
    #
        <Dire=
ctory "/usr/local/awstats/wwwroot">
     &nb=
sp;  Options None
        AllowO=
verride None
        Order allow,deny=

        Allow from all
 &nbs=
p;      </Directory>

 

        <Directory "/usr/local/a=
wstats/wwwroot/cgi-bin">
        A=
uthUserFile "/usr/local/awstats/wwwroot/mypasswordfile"
  &nbs=
p;     AuthName "Awstats"
    &n=
bsp;   AuthType Basic
      &nbs=
p; <Limit GET POST>
       &nbs=
p;        require valid-user
 &n=
bsp;      </Limit>
   &nbs=
p;    Options None
      &n=
bsp; AllowOverride AuthConfig
       =
Order deny,allow
        deny from a=
ll
        allow from 216.130.212
=
        allow from 216.130.209
 =
       allow from 216.130.213
  =
      Satisfy any
     =
;   </Directory>
skill meets World Series. =3D"http://club.live.com/word_slugger.aspx?icid=3Dword_slugg er_wlhm_admod_a=
pril08" target=3D_blank>Get in the game.

<=
hr />Express yourself wherever you are. ..com/Mobile/Landing/Messenger/Default.aspx?Locale=3Den-US?o cid=3DTAG_APRIL'=
target=3D'_new'>Mobilize!

=

--_dd73a611-23b3-428a-808d-89253f700316_--

Re: .htaccess for script aliased directories SOLVED!

am 25.04.2008 23:06:11 von shimmyshack

WW91IGRlZmluYXRlbHkgbmVlZCB0byByZW1vdmUgdGhlIGxpbWl0IGNsYXVz ZQ0KVGhhdCBjbGF1
c2UgaWF0IGJlc3QgcyBtZWFuaW5nbGVzcyBnaXZlbiB5b3VyIHByZXZpb3Vz IHBvc3QsIGFuZCBp
ZiB0aGUgY29uZmlnIGNoYW5nZXMgZWxzZXdoZXJlIHlvdXIgc2VydmVyIG9y IGRhdGEgd291bGQg
YmUgYXQgcmlzay4NCllvdSBwcm9iYWJseSBoYXZlIGEgc2VydmVyIHdpZGUg bGltaXRleGNlcHQg
Y2xhdXNlIHdoaWNoIGJhbnMgdGhlIG90aGVyIHZlcmJzIG9yIHNvbWUgb3Ro ZXIgcGVybWlzc2lv
bnMgbG9jayBkb3duLCBidXQganVzdCB0byBiZSBjbGVhciB0aGUgbGltaXQg Y2xhdXNlIGlzIE5P
VCB3aGF0IHlvdWkgd2FudCA7KQ0KU2VudCBmcm9tIG15IEJsYWNrQmVycnmu IHdpcmVsZXNzIGRl
dmljZQ0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogUGFt IEFzdG9yIDxwYW1h
c3RvckBob3RtYWlsLmNvbT4NCg0KRGF0ZTogRnJpLCAyNSBBcHIgMjAwOCAx NzowMDozNSANClRv
Ojx1c2Vyc0BodHRwZC5hcGFjaGUub3JnPg0KU3ViamVjdDogUkU6IFt1c2Vy c0BodHRwZF0gLmh0
YWNjZXNzIGZvciBzY3JpcHQgYWxpYXNlZCBkaXJlY3RvcmllcyBTT0xWRUQh DQoNClRoYW5rcyBz
byBtdWNoIERhbmllIaAgCqAgCkkgdGhpbmsgdGhlIHByb2JsZW0gd2FzIHRo ZSBmYWN0IHRoYXQg
SSB3YXMgbm90IHVzaW5nIGRvdWJsZSBxdW90ZXMgCmZvciBteSBwYXRoIGlu IHRoZSA8RGlyZWN0
b3J5PiBUYWcuoCBJIHNhdyB5b3VyIGVhcmxpZXIgcG9zdCAtIG5vdGljZWQg eW91IGhhZCB0aGVt
LCAKYWRkZWQgdGhlbSBpbiwgYW5kIHNldCB0aGUgcGF0aCBhZ2FpbiB0byB0 aGUgc2NyaXB0IGFs
aWFzZWQgcGF0aCBhbmQgaXQgd29ya2VkIGZpbmUuoCAKoCAKSSB3YXMgYWJs ZSB0byBnZXQgaXQg
d29ya2luZyB3aXRoIHRoaXMgc2ltcGxlIHRhZzogCqAgCjxEaXJlY3Rvcnkg InVzci9sb2NhbC9h
d3N0YXRzL3d3d3Jvb3QvY2dpLWJpbiI+CkF1dGhOYW1lICJNZW1iZXJzT25s eSIKQXV0aFR5cGUg
QmFzaWMKQXV0aFVzZXJGaWxlICIvaG9tZS91c2VyZGlyL2h0cGFzc3dkIgpS ZXF1aXJlIHVzZXIg
Y29kZXIKQWxsb3dPdmVycmlkZSBBdXRoQ29uZmlnCjwvRGlyZWN0b3J5PiAK oCAKSSBoYWQgYSBo
dW5jaCBpdCB3YXMgc29tZXRoaW5nIHNpbXBsZS6gIFRoYW5rcyBzbyBtdWNo ISAKoCAKoCAKoCAK
SSBqdXN0IHNldHVwIGF3c3RhdHMgYSBmZXcgd2Vla3MgYWdvIGFuZCB0aGlz IHNldHRpbmcgd29y
a3MgZm9yIG1lIGluIHRoZSA8VmlydHVhbEhvc3Q+OiAKoCAKCqCgoKCgoKAg QWxpYXMgL2F3c3Rh
dHNjbGFzc2VzICIvdXNyL2xvY2FsL2F3c3RhdHMvd3d3cm9vdC9jbGFzc2Vz LyIKoKCgoKCgoCBB
bGlhcyAvYXdzdGF0c2NzcyAiL3Vzci9sb2NhbC9hd3N0YXRzL3d3d3Jvb3Qv Y3NzLyIKoKCgoKCg
oCBBbGlhcyAvaWNvbiAiL3Vzci9sb2NhbC9hd3N0YXRzL3d3d3Jvb3QvaWNv bi8iCqCgoKCgoKAg
U2NyaXB0QWxpYXMgL2F3c3RhdHMvICIvdXNyL2xvY2FsL2F3c3RhdHMvd3d3 cm9vdC9jZ2ktYmlu
LyIKoKCgoKCgoCAjCqCgoKCgoKAgIyBUaGlzIGlzIHRvIHBlcm1pdCBVUkwg YWNjZXNzIHRvIHNj
cmlwdHMvZmlsZXMgaW4gQVdTdGF0cyBkaXJlY3RvcnkuCqCgoKCgoKAgIwqg oKCgoKCgIDxEaXJl
Y3RvcnkgIi91c3IvbG9jYWwvYXdzdGF0cy93d3dyb290Ij4KoKCgoKCgoCBP cHRpb25zIE5vbmUK
oKCgoKCgoCBBbGxvd092ZXJyaWRlIE5vbmUKoKCgoKCgoCBPcmRlciBhbGxv dyxkZW55CqCgoKCg
oKAgQWxsb3cgZnJvbSBhbGwKoKCgoKCgoCA8L0RpcmVjdG9yeT4gCqAgCqCg oKCgoKAgPERpcmVj
dG9yeSAiL3Vzci9sb2NhbC9hd3N0YXRzL3d3d3Jvb3QvY2dpLWJpbiI+CqCg oKCgoKAgQXV0aFVz
ZXJGaWxlICIvdXNyL2xvY2FsL2F3c3RhdHMvd3d3cm9vdC9teXBhc3N3b3Jk ZmlsZSIKoKCgoKCg
oCBBdXRoTmFtZSAiQXdzdGF0cyIKoKCgoKCgoCBBdXRoVHlwZSBCYXNpYwqg oKCgoKCgIDxMaW1p
dCBHRVQgUE9TVD4KoKCgoKCgoKCgoKCgoKCgIHJlcXVpcmUgdmFsaWQtdXNl cgqgoKCgoKCgIDwv
TGltaXQ+CqCgoKCgoKAgT3B0aW9ucyBOb25lCqCgoKCgoKAgQWxsb3dPdmVy cmlkZSBBdXRoQ29u
ZmlnCqCgoKCgoKAgT3JkZXIgZGVueSxhbGxvdwqgoKCgoKCgIGRlbnkgZnJv bSBhbGwKoKCgoKCg
oCBhbGxvdyBmcm9tIDIxNi4xMzAuMjEyCqCgoKCgoKAgYWxsb3cgZnJvbSAy MTYuMTMwLjIwOQqg
oKCgoKCgIGFsbG93IGZyb20gMjE2LjEzMC4yMTMKoKCgoKCgoCBTYXRpc2Z5 IGFueQqgoKCgoKCg
IDwvRGlyZWN0b3J5PnNraWxsIG1lZXRzIFdvcmxkIFNlcmllcy4gR2V0IGlu IHRoZSBnYW1lLiA8
aHR0cDovL2NsdWIubGl2ZS5jb20vd29yZF9zbHVnZ2VyLmFzcHg/aWNpZD13 b3JkX3NsdWdnZXJf
d2xobV9hZG1vZF9hcHJpbDA4PiAgCgotLS0tLS0tLS0tLS0tLS0tCkV4cHJl c3MgeW91cnNlbGYg
d2hlcmV2ZXIgeW91IGFyZS4gTW9iaWxpemUhIA==

Re: .htaccess for script aliased directories SOLVED!

am 25.04.2008 23:17:17 von Danie Qian

I think the following mod_access settings is the one that makes me safe in
this particular setup:

Order deny,allow
deny from all
allow from 216.130.212
allow from 216.130.209
allow from 216.130.213
Satisfy any



----- Original Message -----
From:
To:
Sent: Friday, April 25, 2008 5:06 PM
Subject: Re: [users@httpd] .htaccess for script aliased directories SOLVED!


> You definately need to remove the limit clause
> That clause iat best s meaningless given your previous post, and if the
> config changes elsewhere your server or data would be at risk.
> You probably have a server wide limitexcept clause which bans the other
> verbs or some other permissions lock down, but just to be clear the limit
> clause is NOT what youi want ;)
> Sent from my BlackBerry?wireless device
>
> -----Original Message-----
> From: Pam Astor
>
> Date: Fri, 25 Apr 2008 17:00:35
> To:
> Subject: RE: [users@httpd] .htaccess for script aliased directories
> SOLVED!
>
> Thanks so much Danie!?
> ?
> I think the problem was the fact that I was not using double quotes
> for my path in the Tag.?I saw your earlier post - noticed you
> had them,
> added them in, and set the path again to the script aliased path and it
> worked fine.?
> ?
> I was able to get it working with this simple tag:
> ?
>
> AuthName "MembersOnly"
> AuthType Basic
> AuthUserFile "/home/userdir/htpasswd"
> Require user coder
> AllowOverride AuthConfig
>

> ?
> I had a hunch it was something simple.?Thanks so much!
> ?
> ?
> ?
> I just setup awstats a few weeks ago and this setting works for me in the
> :
> ?
>
>       ?Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
>       ?Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
>       ?Alias /icon "/usr/local/awstats/wwwroot/icon/"
>       ?ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
>       ?#
>       ?# This is to permit URL access to scripts/files in AWStats
> directory.
>       ?#
>       ?
>       ?Options None
>       ?AllowOverride None
>       ?Order allow,deny
>       ?Allow from all
>       ?

> ?
>       ?
>       ?AuthUserFile "/usr/local/awstats/wwwroot/mypasswordfile"
>       ?AuthName "Awstats"
>       ?AuthType Basic
>       ?
>               ?require valid-user
>       ?

>       ?Options None
>       ?AllowOverride AuthConfig
>       ?Order deny,allow
>       ?deny from all
>       ?allow from 216.130.212
>       ?allow from 216.130.209
>       ?allow from 216.130.213
>       ?Satisfy any
>       ?
skill meets World Series. Get in the game.
>
>
> ----------------
> Express yourself wherever you are. Mobilize!


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

Re: .htaccess for script aliased directoriesþ

am 26.04.2008 02:06:56 von Joshua Slive

2008/4/25 Pam Astor :

>
> > > [Fri Apr 25 15:35:18 2008] [error] [client 12.34.678.91] (2)No such file
> or
> > > directory: Could not open password file: /home/userdir/htpasswd
> >
> > That seems pretty clear. Your AuthUserFile directive is configured
> > incorrectly. It isn't pointing to an actual user file. You've obscured
> > the configuration in different ways pretty-much every time you've
> > posted it, which makes it impossible for me to tell you exactly what
> > it should be.
>
>
>
> I checked the AuthUserFile directive, and it's the correct name and location
> of the htpasswd file.

What EXACTLY does the AuthUserFile directive say? If it doesn't say
/home/userdir/htpasswd, then that means there is another AuthUserFile
directive or some other authentication module someplace in your config
overriding your setting, because apache see /home/userdir/htpasswd as
the location of the password file.

Joshua.

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

Re: .htaccess for script aliased directories

am 26.04.2008 02:10:11 von Joshua Slive

On Fri, Apr 25, 2008 at 4:32 PM, Danie Qian wrote:

> On second thought, I tested the setting by commentting out the 'require
> valid-user' line completely to see what the browsor gets for other methods,
> it is actually a 403 forbidden error instead of a open 200. So i guess I
> was fine with the GET POST lines - it only triggers a login
> prompt for GET & POST while leaving the others forbidden. Am I wrong?

You may or may not create an immediate security problem by using
. But regardless, it is a bad idea. It could easily open a
security hole in the future if you ever change the configuration of
the content behind the restriction. And why use a complex config, when
the simple one is better and more secure?

Joshua.

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

Re: .htaccess for script aliased directories

am 26.04.2008 08:18:58 von Danie Qian

----- Original Message -----
From: "Joshua Slive"
To: ; "Danie Qian"
Sent: Friday, April 25, 2008 8:10 PM
Subject: Re: [users@httpd] .htaccess for script aliased directories


> On Fri, Apr 25, 2008 at 4:32 PM, Danie Qian
> wrote:
>
>> On second thought, I tested the setting by commentting out the 'require
>> valid-user' line completely to see what the browsor gets for other
>> methods,
>> it is actually a 403 forbidden error instead of a open 200. So i guess I
>> was fine with the GET POST lines - it only triggers a
>> login
>> prompt for GET & POST while leaving the others forbidden. Am I wrong?
>
> You may or may not create an immediate security problem by using
> . But regardless, it is a bad idea. It could easily open a
> security hole in the future if you ever change the configuration of
> the content behind the restriction. And why use a complex config, when
> the simple one is better and more secure?
>

I completely agree with you in a general sense


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