Re: [users@httpd] .htaccess mobil client

2018-01-13 Thread Richard

> Date: Sunday, January 14, 2018 00:03:27 +0300
> From: Gokan Atmaca 
>
> On Sat, Jan 13, 2018 at 10:52 PM, Richard wrote:
>> 
>>> Date: Saturday, January 13, 2018 22:43:38 +0300
>>> From: Gokan Atmaca 
>>> 
>>> The structure of our site is as follows. Connections default to
>>> "desk.site" folder. If the incoming connection requests come from
>>> mobile phones, "msite" goes to the folder. But CSS, JS files
>>> are not coming. I made a symbolic link to the mobile site folder.
>>> 
>>> Desktop /home/desk.site/public
>>> Mobil /home/msite/public
>>> 
>>> ln -s /home/msite/public /home/desk.site/msite
>>> 
>>> On Sat, Jan 13, 2018 at 6:24 PM, Walter H.
>>>  wrote:
 
 On 12.01.2018 22:23, Gokan Atmaca wrote:
 
 Hello
 
 I am redirecting Apache mobile clients to the mobile site. But
 the files like cs,js,font,img are not working.
 
 Can you help with this ?
 
 config:
 
 RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC]
 RewriteRule ^ /msite/$1 [R=301,L]
 
 what is $1?
 
 this should be something like
 
 RewriteRule ^(.*)$ /msite$1 [L,R=301]
>> 
>> 
>> What do your access and error logs show?
>> 

> There is no error. The access logs are as follows.
> x.x.x.x.x- [13/Jan/2018:15:52:04 +0300] "GET
> /e/home-ajax-get-prepared-orders HTTP/1.1" 200 1062
> "http://a.desk.com/e"; "Mozilla/5.0 (Windows NT 10.0)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79
> Safari/537.36 Edge/14.14393"
> 

That log entry is for a desktop browser (or at least not specifically
an android or iphone that you are redirecting), so not really
relevant for debugging your mobile-device browser problem. 

An android/iphone identified device should result in something in
your error log if the various pieces aren't loading. If nothing is
showing up there check that your logging is configured correctly.

My sense from the little that you have provided is that you are
simply  redirecting identified mobile devices down a separate branch
of your documentroot, not to a different [virtual] host, so all your
entries will be mixed in the same log.


[please do not top post.]




-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess mobil client

2018-01-13 Thread Gokan Atmaca
> What do your access and error logs show?

There is no error. The access logs are as follows.
x.x.x.x.x- [13/Jan/2018:15:52:04 +0300] "GET
/e/home-ajax-get-prepared-orders HTTP/1.1" 200 1062
"http://a.desk.com/e"; "Mozilla/5.0 (Windows NT 10.0)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79
Safari/537.36 Edge/14.14393"


On Sat, Jan 13, 2018 at 10:52 PM, Richard
 wrote:
>
>
>> Date: Saturday, January 13, 2018 22:43:38 +0300
>> From: Gokan Atmaca 
>>
>> The structure of our site is as follows. Connections default to
>> "desk.site" folder. If the incoming connection requests come from
>> mobile phones, "msite" goes to the folder. But CSS, JS files
>> are not coming. I made a symbolic link to the mobile site folder.
>>
>> Desktop /home/desk.site/public
>> Mobil /home/msite/public
>>
>> ln -s /home/msite/public /home/desk.site/msite
>>
>>
>> On Sat, Jan 13, 2018 at 6:24 PM, Walter H.
>>  wrote:
>>>
>>> On 12.01.2018 22:23, Gokan Atmaca wrote:
>>>
>>> Hello
>>>
>>> I am redirecting Apache mobile clients to the mobile site. But the
>>> files like cs,js,font,img are not working.
>>>
>>> Can you help with this ?
>>>
>>> config:
>>>
>>> RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC]
>>> RewriteRule ^ /msite/$1 [R=301,L]
>>>
>>> what is $1?
>>>
>>> this should be something like
>>>
>>> RewriteRule ^(.*)$ /msite$1 [L,R=301]
>
>
> What do your access and error logs show?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess mobil client

2018-01-13 Thread Richard


> Date: Saturday, January 13, 2018 22:43:38 +0300
> From: Gokan Atmaca 
> 
> The structure of our site is as follows. Connections default to
> "desk.site" folder. If the incoming connection requests come from
> mobile phones, "msite" goes to the folder. But CSS, JS files
> are not coming. I made a symbolic link to the mobile site folder.
> 
> Desktop /home/desk.site/public
> Mobil /home/msite/public
> 
> ln -s /home/msite/public /home/desk.site/msite
> 
> 
> On Sat, Jan 13, 2018 at 6:24 PM, Walter H.
>  wrote:
>> 
>> On 12.01.2018 22:23, Gokan Atmaca wrote:
>> 
>> Hello
>> 
>> I am redirecting Apache mobile clients to the mobile site. But the
>> files like cs,js,font,img are not working.
>> 
>> Can you help with this ?
>> 
>> config:
>> 
>> RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC]
>> RewriteRule ^ /msite/$1 [R=301,L]
>> 
>> what is $1?
>> 
>> this should be something like
>> 
>> RewriteRule ^(.*)$ /msite$1 [L,R=301]


What do your access and error logs show?



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess mobil client

2018-01-13 Thread Gokan Atmaca
> this should be something like
>
> RewriteRule ^(.*)$ /msite$1 [L,R=301]

Hello

The structure of our site is as follows. Connections default to
"desk.site" folder. If the incoming connection requests come from
mobile phones,
"msite" goes to the folder. But CSS, JS files are not coming. I made a
symbolic link to the mobile site folder.

Desktop /home/desk.site/public
Mobil /home/msite/public

ln -s /home/msite/public /home/desk.site/msite


On Sat, Jan 13, 2018 at 6:24 PM, Walter H.  wrote:
>
> On 12.01.2018 22:23, Gokan Atmaca wrote:
>
> Hello
>
> I am redirecting Apache mobile clients to the mobile site. But the files like 
> cs,js,font,img are not working.
>
> Can you help with this ?
>
> config:
>
> RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC]
> RewriteRule ^ /msite/$1 [R=301,L]
>
> what is $1?
>
> this should be something like
>
> RewriteRule ^(.*)$ /msite$1 [L,R=301]

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess mobil client

2018-01-13 Thread Walter H.

On 12.01.2018 22:23, Gokan Atmaca wrote:

Hello

I am redirecting Apache mobile clients to the mobile site. But the 
files like cs,js,font,img are not working.


Can you help with this ?

config:
RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC]
RewriteRule ^ /msite/$1 [R=301,L]

what is $1?

this should be something like

RewriteRule ^(.*)$ /msite$1 [L,R=301]


smime.p7s
Description: S/MIME Cryptographic Signature


[users@httpd] .htaccess mobil client

2018-01-12 Thread Gokan Atmaca
Hello

I am redirecting Apache mobile clients to the mobile site. But the files
like cs,js,font,img are not working.

Can you help with this ?

config:

RewriteCond %{HTTP_USER_AGENT} ^.*(android|iPhone).*$ [NC]
RewriteRule ^ /msite/$1 [R=301,L]


Re: [users@httpd] .htaccess

2017-09-18 Thread Rondon
Hi Yann,

But I need to have both working..
By Referer bypass the user authentication
if Referer is different it needs the user authentication.

Cheers,

Rondon

-
Your life is shaped by your mind and you become what you think.
Dhampada - Twin Verses.

2017-09-16 14:46 GMT-03:00 Yann Ylavic :

> Hi Rondon,
>
> On Fri, Sep 15, 2017 at 12:27 AM, Rondon  wrote:
> > Hi Folks,
> >
> > Sorry to bother you.
> > My website is using apache at Dreamhost.
> >
> > I'm authenticating using a require valid-user at .htaccess
> > But I need to add more directives to authenticate the access by Referer.
> >
> > If the user comes from a specific referer, the user doesn't have to
> receive
> > the authentication box and bypass the authentication.
>
> First I must say that it's IMHO not a wise thing to do!
> Keep in mind that the Referer can be forged at wish one by any user,
> fooling your authorizations...
>
> >
> > Is that possible?
>
> If you really want to though, possibly something like:
>
> >
> > My .htaccess file is:
> >
> > AuthName "My Security Area"
> > AuthType Basic
> > AuthUserFile  /myusersfilepath/
>
> SetEnvIf Referer ^https?://my.referer.host/and/path let_me_in
> Require env let_me_in
> > require valid-user
>
> in that order.
>
>
> Regards,
> Yann.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] .htaccess

2017-09-16 Thread Yann Ylavic
Hi Rondon,

On Fri, Sep 15, 2017 at 12:27 AM, Rondon  wrote:
> Hi Folks,
>
> Sorry to bother you.
> My website is using apache at Dreamhost.
>
> I'm authenticating using a require valid-user at .htaccess
> But I need to add more directives to authenticate the access by Referer.
>
> If the user comes from a specific referer, the user doesn't have to receive
> the authentication box and bypass the authentication.

First I must say that it's IMHO not a wise thing to do!
Keep in mind that the Referer can be forged at wish one by any user,
fooling your authorizations...

>
> Is that possible?

If you really want to though, possibly something like:

>
> My .htaccess file is:
>
> AuthName "My Security Area"
> AuthType Basic
> AuthUserFile  /myusersfilepath/

SetEnvIf Referer ^https?://my.referer.host/and/path let_me_in
Require env let_me_in
> require valid-user

in that order.


Regards,
Yann.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess

2017-09-14 Thread Rondon
Hi Folks,

Sorry to bother you.
My website is using apache at Dreamhost.

I'm authenticating using a require valid-user at .htaccess
But I need to add more directives to authenticate the access by Referer.

If the user comes from a specific referer, the user doesn't have to receive
the authentication box and bypass the authentication.

Is that possible?

My .htaccess file is:

AuthName "My Security Area"
AuthType Basic
AuthUserFile  /myusersfilepath/
require valid-user

ErrorDocument 401 /error.html

I'd like to add authentication by Referer
if Referer or host domain.the extension then there is no need for
authentication
the user goes in with the authentication box.

Can you help with that?

Thanks in advance and waiting for your response

Cheers,

--DjRondon




-
Your life is shaped by your mind and you become what you think.
Dhampada - Twin Verses.


[users@httpd] htaccess looping

2017-09-13 Thread Marek Sloboda
Hi, I've got problem with htaccess configuration. On my site i have 3 types of 
access

http://zeroproblem.pl -> direct to directory test2/index.php (which is file)
http://zeroproblem.pl/zeroproblem -> direct to directory test2/zeroproblem 
(which is directory)
http://zeroproblem.pl/admin -> is parameter and it should be like 
index.php?url=admin

my htaccess file:
php_flag  display_errorson
Options -Indexes
Options -MultiViews
RewriteEngine On

#RewriteBase /test2/zeroproblem/
#usunięcie www.
RewriteCond %{HTTP_HOST} ^(www\.)zeroproblem\.pl$ [NC]
RewriteRule ^(.*)$ http://zeroproblem.pl/$1 [R=301,L]

# zeroproblem.pl/zeroproblem  - err 404 workaround for forbiden file

RewriteCond %{HTTP_HOST} ^(www\.)?zeroproblem\.pl$ [NC]
RewriteCond %{REQUEST_URI} ^/(.*)$ [NC]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^(.*)$ /index.php [QSA,L] 

# zeroproblem/admin
RewriteCond %{HTTP_HOST} ^(www\.)?zeroproblem\.pl$ 
RewriteCond %{REQUEST_URI} ^/(.*)$ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-l 
RewriteRule ^(.*)$ /index.php?url=$1 [L,QSA] 

Above code is working, but problem is that when I'm starting new session on for 
ex. openinig http://zeroproblem.pl/index.php the page is loading 3 times. After 
many tests I found that problem is with 
RewriteCond %{REQUEST_FILENAME} !-f 
but I need that line for getitng to http://zeroproblem.pl/admin which is just 
parameter.
Please help me to understand problem.

P.S. My site is on sharing host, and I dont have access to conf.

Regards
Marek Słoboda 



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess help

2017-06-20 Thread Yuri Fontella
Good Evening,
I'm trying to create a rule with the following scenario ... I have a server
with two virtual hosts, it's the same ip.

Virtual host 1 = videos
Virtual host 2 = website

What I need is for vh2 to access the vh1 videos but not to be able to
access the videos through the vh1 url.

I got the ip block if another server tries to play vh1 videos, but not your
url access.


AuthType Basic
AuthName "Please enter your username and password"
AuthUserFile /var/www/.htpasswd

SetEnvIf Server_Addr  "22.33.44.55" allow


  Require env allow
  Require valid-user



Any suggestion... Thanks.

*Atenciosamente, *
*Yuri Fontella*


Re: [users@httpd] .htaccess rule match keyword

2017-02-06 Thread Yann Ylavic
Hi,

On Mon, Feb 6, 2017 at 11:34 AM, Rajib Karmakar
 wrote:
>
> RewriteRule ^cart(.*)$ cart.php
>
> https://www.berkshirefurniture.com/cart/
[]
>
> https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2YWw=
>
> ## For showing leaf sub category of item
> RewriteCond %{REQUEST_URI} !^/([^/]*)/p
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^([^/]*)/([^/]*)/([^/]*)$
> leafsub-category-gallery.php?slug=$1&subcat=$2&leafsubcat=$3 [L,NC]
>
> First four letter of products url "carter" to "cart" matched with the cart
> page link and that's the reason it moved to the cart page.
>
> Is it possible using htaccess rewriting match the specific slug and forced
> not to redirect it's default rules i.e it matched the full slug and redirect
> to specific rule only.

Not sure what you mean, but as already suggested, why not avoid
matching anything but /cart or /cart/.* in the first place:
RewriteRule ^cart(/|$) cart.php
?

And shouldn't the same principle also apply to the first RewriteCond:
   RewriteCond %{REQUEST_URI} !^/([^/]*)/p/
?


Regards,
Yann.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess rule match keyword

2017-02-06 Thread Rajib Karmakar
Hi,

RewriteRule ^cart(.*)$ cart.php

https://www.berkshirefurniture.com/cart/




https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2YWw=

## For showing leaf sub category of item
RewriteCond %{REQUEST_URI} !^/([^/]*)/p
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ leafsub-category-gallery.php?
slug=$1&subcat=$2&leafsubcat=$3 [L,NC]



First four letter of products url "carter" to "cart" matched with the cart
page link and that's the reason it moved to the cart page.


Is it possible using htaccess rewriting match the specific slug and forced
not to redirect it's default rules i.e it matched the full slug and
redirect to specific rule only.

Sincerely
-
Rajib Karmakar

Creative Web Logo Technologies
Website: http://www.creativeweblogo.com
Mobile: +919874704940
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.


[users@httpd] htaccess proxy and ipv6

2015-05-03 Thread Alexey Noskov
Hello,

I have a shared hosting (so I don't have root access). I would like to make 
proxy using htaccess to getting access to server having only ipv6 address (no 
damain name).

Here is my .htaccess  file:

RewriteEngine  on
RewriteBase/
RewriteRule ^(.*)$ http://[2001:858:2:1::10]/$1 [P]

And the error message:



Proxy Error
Your browser sent a request that this server could not understand.
The proxy server could not handle the request GET /.
Reason: URI cannot be parsed: http://%5b2001:858:2:1::10%5d/
Additionally, a 400 Bad Request error was encountered while trying to use an 
ErrorDocument to handle the request.


I have also tried to backslash square brackets and colons without success.



Thank you

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess in a directory under one with another htaccess

2014-10-26 Thread thomas Armstrong
Hi.

On my Apache Server, I have this structure to host a website under '/' and
a WordPress blog under '/myblog' directory:
--- root_directory/.htaccess
--- root_directory/php_stuff
--- root_directory/myblog/.htaccess
--- root_directory/myblog/php_wp_stuff

Within 'root_directory/.htaccess' file I have several RewriteRules:

RewriteRule ^item/([^/]+)/ /item.php?label1=$1 [L]
RewriteRule ^([^/]+)/([^/]+)/$ /category.php?label1=$1&label2=$2 [L]
---
which work with
http://www.example.com/item/book-10003/ and
http://www.example.com/science/maths/

However, if I try to access
http://www.example.com/myblog/ or
http://www.example.com/myblog/hello-world/

I got a 404 error. So I modififed the .htaccess:
--
RewriteRule ^myblog - [L,NC]
RewriteRule ^item/([^/]+)/ /item.php?label1=$1 [L]
RewriteCond %{REQUEST_URI} !^/myblog/
RewriteRule ^([^/]+)/([^/]+)/$ /category.php?label1=$1&label2=$2 [L]
---
I tried to avoid 'myblog' directory to be ruled by the 'RewriteRules'.
However, it works with

http://www.example.com/myblog/
but not with http://www.example.com/myblog/hello-world/

What am I doing wrong? I also tried by adding these lines at the bottom of
.htaccess, but I does not work:
--
RewriteBase /myblog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /myblog/index.php [L]

Any tip is welcome. Thank you very much.


Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-05 Thread Edgar Pettijohn
The only other thing I can think to try is to make the changes within a
 block in the main config and not use the .htaccess file and
see if you get the same errors.

On 10/05/2014 07:32 AM, Volkan Gezer wrote:
> 2014-10-05 5:07 GMT+02:00 Edgar Pettijohn :
>> Just looked at your httpd.conf and it shows you have these modules
>> loaded.  This is odd.
>> On 10/04/2014 10:03 PM, Edgar Pettijohn wrote:
>>> SetEnvIfNoCase needs mod_setenvif
>>> DirectoryIndex needs mod_dir
>>>
> Yes, I have these modules loaded. Just to make sure, I made a typo and
> restarted httpd to see if this might be the issue, but it complained
> about non-existance of the module. So, it means all loaded modules are
> already in my pc.
>
>
>> Since you said mod_setenvif is loaded, it looks like there is actually some 
>> problem with your htaccess.
>> I suggest checking the encoding of the file. "Unicode with BOM" is my first 
>> suspicion, but if it is anything odd, that could >explain why HTTPD does not 
>> like it.
> I removed the file, got it from the original source [1] and saved to
> the original place, but no progress...
>
> I was wondering if the order of the directives matters or not. Also
> the permission of .htaccess is 644, I am not sure if this is also a
> problem, but 777 was the same, though.
>
> [1] https://github.com/owncloud/core/blob/master/.htaccess
>
>
>>> On 10/04/2014 09:18 PM, Volkan Gezer wrote:
 Thank you for following. I removed all IfModule directives now I am 
 receiving:

 /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
 perhaps misspelled or defined by a module not included in the server
 configuration

 error.

 Removing this line also gives:

 /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
 perhaps misspelled or defined by a module not included in the server
 configuration

 The current .htaccess file is: http://paste.kde.org/pkvjq3ct3


 Best regards,
 Volkan GEZER
 volkange...@gmail.com


 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn :
> Try without any  directives.  As long as you always plan to
> start apache with those modules loaded there shouldn't be an issue.
>
> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
>> on.  Double check that the path is correct also.
>>
>> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
>>> I am using Arch linux and trying to set up development environment of
>>> ownCloud and I am receiving a 500 error:
>>>
>>> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
>>> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '>> perhaps misspelled or defined by a module not included in the server
>>> configuration
>>>
>>> If I checked the .htaccess file, here are the first 10 lines:
>>>
>>> 
>>> 
>>> 
>>> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
>>> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
>>> 
>>> 
>>> 
>>> 
>>> php_value upload_max_filesize 513M
>>>
>>>
>>> I have the extra those modules enabled in my httpd.conf file:
>>>
>>> LoadModule setenvif_module modules/mod_setenvif.so
>>> LoadModule headers_module modules/mod_headers.so
>>> LoadModule fcgid_module modules/mod_fcgid.so
>>> LoadModule php5_module modules/libphp5.so
>>>
>>> Any guide to solve the 500 error would be appreciated. The same
>>> .htaccess file was working without any problems in my Ubuntu setup.
>>>
>>> The full files:
>>>
>>> httpd.conf: http://paste.kde.org/p0gqinrsr
>>> owncloud .htaccess: http://paste.kde.org/p84wbouwy
>>> php module.conf: http://paste.kde.org/pkalrmsvz
>>>
>>> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
>>> mod_fcgid/2.3.9
>>>
>>>
>>> Best regards,
>>> Volkan GEZER
>>> volkange...@gmail.com
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org

>>> -

Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-05 Thread Volkan Gezer
2014-10-05 5:07 GMT+02:00 Edgar Pettijohn :
> Just looked at your httpd.conf and it shows you have these modules
> loaded.  This is odd.
> On 10/04/2014 10:03 PM, Edgar Pettijohn wrote:
>> SetEnvIfNoCase needs mod_setenvif
>> DirectoryIndex needs mod_dir
>>

Yes, I have these modules loaded. Just to make sure, I made a typo and
restarted httpd to see if this might be the issue, but it complained
about non-existance of the module. So, it means all loaded modules are
already in my pc.


>Since you said mod_setenvif is loaded, it looks like there is actually some 
>problem with your htaccess.

>I suggest checking the encoding of the file. "Unicode with BOM" is my first 
>suspicion, but if it is anything odd, that could >explain why HTTPD does not 
>like it.

I removed the file, got it from the original source [1] and saved to
the original place, but no progress...

I was wondering if the order of the directives matters or not. Also
the permission of .htaccess is 644, I am not sure if this is also a
problem, but 777 was the same, though.

[1] https://github.com/owncloud/core/blob/master/.htaccess


>> On 10/04/2014 09:18 PM, Volkan Gezer wrote:
>>> Thank you for following. I removed all IfModule directives now I am 
>>> receiving:
>>>
>>> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
>>> perhaps misspelled or defined by a module not included in the server
>>> configuration
>>>
>>> error.
>>>
>>> Removing this line also gives:
>>>
>>> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
>>> perhaps misspelled or defined by a module not included in the server
>>> configuration
>>>
>>> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>>>
>>>
>>> Best regards,
>>> Volkan GEZER
>>> volkange...@gmail.com
>>>
>>>
>>> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn :
 Try without any  directives.  As long as you always plan to
 start apache with those modules loaded there shouldn't be an issue.

 On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
> on.  Double check that the path is correct also.
>
> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
>> I am using Arch linux and trying to set up development environment of
>> ownCloud and I am receiving a 500 error:
>>
>> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
>> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> If I checked the .htaccess file, here are the first 10 lines:
>>
>> 
>> 
>> 
>> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
>> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
>> 
>> 
>> 
>> 
>> php_value upload_max_filesize 513M
>>
>>
>> I have the extra those modules enabled in my httpd.conf file:
>>
>> LoadModule setenvif_module modules/mod_setenvif.so
>> LoadModule headers_module modules/mod_headers.so
>> LoadModule fcgid_module modules/mod_fcgid.so
>> LoadModule php5_module modules/libphp5.so
>>
>> Any guide to solve the 500 error would be appreciated. The same
>> .htaccess file was working without any problems in my Ubuntu setup.
>>
>> The full files:
>>
>> httpd.conf: http://paste.kde.org/p0gqinrsr
>> owncloud .htaccess: http://paste.kde.org/p84wbouwy
>> php module.conf: http://paste.kde.org/pkalrmsvz
>>
>> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
>> mod_fcgid/2.3.9
>>
>>
>> Best regards,
>> Volkan GEZER
>> volkange...@gmail.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org

>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>

Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-04 Thread Edgar Pettijohn
Just looked at your httpd.conf and it shows you have these modules
loaded.  This is odd.
On 10/04/2014 10:03 PM, Edgar Pettijohn wrote:
> SetEnvIfNoCase needs mod_setenvif
> DirectoryIndex needs mod_dir
>
> On 10/04/2014 09:18 PM, Volkan Gezer wrote:
>> Thank you for following. I removed all IfModule directives now I am 
>> receiving:
>>
>> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
>> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> error.
>>
>> Removing this line also gives:
>>
>> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
>> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>>
>>
>> Best regards,
>> Volkan GEZER
>> volkange...@gmail.com
>>
>>
>> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn :
>>> Try without any  directives.  As long as you always plan to
>>> start apache with those modules loaded there shouldn't be an issue.
>>>
>>> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
 Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
 on.  Double check that the path is correct also.

 On 10/03/2014 08:36 AM, Volkan Gezer wrote:
> I am using Arch linux and trying to set up development environment of
> ownCloud and I am receiving a 500 error:
>
> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command ' perhaps misspelled or defined by a module not included in the server
> configuration
>
> If I checked the .htaccess file, here are the first 10 lines:
>
> 
> 
> 
> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
> 
> 
> 
> 
> php_value upload_max_filesize 513M
>
>
> I have the extra those modules enabled in my httpd.conf file:
>
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule headers_module modules/mod_headers.so
> LoadModule fcgid_module modules/mod_fcgid.so
> LoadModule php5_module modules/libphp5.so
>
> Any guide to solve the 500 error would be appreciated. The same
> .htaccess file was working without any problems in my Ubuntu setup.
>
> The full files:
>
> httpd.conf: http://paste.kde.org/p0gqinrsr
> owncloud .htaccess: http://paste.kde.org/p84wbouwy
> php module.conf: http://paste.kde.org/pkalrmsvz
>
> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
> mod_fcgid/2.3.9
>
>
> Best regards,
> Volkan GEZER
> volkange...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org

>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-04 Thread Edgar Pettijohn
SetEnvIfNoCase needs mod_setenvif
DirectoryIndex needs mod_dir

On 10/04/2014 09:18 PM, Volkan Gezer wrote:
> Thank you for following. I removed all IfModule directives now I am receiving:
>
> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
> perhaps misspelled or defined by a module not included in the server
> configuration
>
> error.
>
> Removing this line also gives:
>
> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
> perhaps misspelled or defined by a module not included in the server
> configuration
>
> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>
>
> Best regards,
> Volkan GEZER
> volkange...@gmail.com
>
>
> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn :
>> Try without any  directives.  As long as you always plan to
>> start apache with those modules loaded there shouldn't be an issue.
>>
>> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>>> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
>>> on.  Double check that the path is correct also.
>>>
>>> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
 I am using Arch linux and trying to set up development environment of
 ownCloud and I am receiving a 500 error:

 [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
 ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '>>> perhaps misspelled or defined by a module not included in the server
 configuration

 If I checked the .htaccess file, here are the first 10 lines:

 
 
 
 SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
 RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
 
 
 
 
 php_value upload_max_filesize 513M


 I have the extra those modules enabled in my httpd.conf file:

 LoadModule setenvif_module modules/mod_setenvif.so
 LoadModule headers_module modules/mod_headers.so
 LoadModule fcgid_module modules/mod_fcgid.so
 LoadModule php5_module modules/libphp5.so

 Any guide to solve the 500 error would be appreciated. The same
 .htaccess file was working without any problems in my Ubuntu setup.

 The full files:

 httpd.conf: http://paste.kde.org/p0gqinrsr
 owncloud .htaccess: http://paste.kde.org/p84wbouwy
 php module.conf: http://paste.kde.org/pkalrmsvz

 Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
 mod_fcgid/2.3.9


 Best regards,
 Volkan GEZER
 volkange...@gmail.com

 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org

>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-04 Thread Yehuda Katz
That means that the modules that supply those directives are not loaded.

On Sat, Oct 4, 2014 at 10:18 PM, Volkan Gezer  wrote:

> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
> perhaps misspelled or defined by a module not included in the server
> configuration
>

SetEnvIfNoCase is supplied by mod_setenvif.


> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
> perhaps misspelled or defined by a module not included in the server
> configuration
>

DirectoryIndex is provided by mod_dir.


Since you said mod_setenvif is loaded, it looks like there is actually some
problem with your htaccess.

I suggest checking the encoding of the file. "Unicode with BOM" is my first
suspicion, but if it is anything odd, that could explain why HTTPD does not
like it.

- Y


The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>
>
> Best regards,
> Volkan GEZER
> volkange...@gmail.com
>
>
> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn :
> > Try without any  directives.  As long as you always plan to
> > start apache with those modules loaded there shouldn't be an issue.
> >
> > On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
> >> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
> >> on.  Double check that the path is correct also.
> >>
> >> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
> >>> I am using Arch linux and trying to set up development environment of
> >>> ownCloud and I am receiving a 500 error:
> >>>
> >>> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
> >>> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command ' >>> perhaps misspelled or defined by a module not included in the server
> >>> configuration
> >>>
> >>> If I checked the .htaccess file, here are the first 10 lines:
> >>>
> >>> 
> >>> 
> >>> 
> >>> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
> >>> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
> >>> 
> >>> 
> >>> 
> >>> 
> >>> php_value upload_max_filesize 513M
> >>>
> >>>
> >>> I have the extra those modules enabled in my httpd.conf file:
> >>>
> >>> LoadModule setenvif_module modules/mod_setenvif.so
> >>> LoadModule headers_module modules/mod_headers.so
> >>> LoadModule fcgid_module modules/mod_fcgid.so
> >>> LoadModule php5_module modules/libphp5.so
> >>>
> >>> Any guide to solve the 500 error would be appreciated. The same
> >>> .htaccess file was working without any problems in my Ubuntu setup.
> >>>
> >>> The full files:
> >>>
> >>> httpd.conf: http://paste.kde.org/p0gqinrsr
> >>> owncloud .htaccess: http://paste.kde.org/p84wbouwy
> >>> php module.conf: http://paste.kde.org/pkalrmsvz
> >>>
> >>> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0
> mod_fcgid/2.3.9
> >>>
> >>>
> >>> Best regards,
> >>> Volkan GEZER
> >>> volkange...@gmail.com
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> >>> For additional commands, e-mail: users-h...@httpd.apache.org
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> >> For additional commands, e-mail: users-h...@httpd.apache.org
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> > For additional commands, e-mail: users-h...@httpd.apache.org
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-04 Thread Volkan Gezer
Thank you for following. I removed all IfModule directives now I am receiving:

/srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
perhaps misspelled or defined by a module not included in the server
configuration

error.

Removing this line also gives:

/srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
perhaps misspelled or defined by a module not included in the server
configuration

The current .htaccess file is: http://paste.kde.org/pkvjq3ct3


Best regards,
Volkan GEZER
volkange...@gmail.com


2014-10-04 20:38 GMT+02:00 Edgar Pettijohn :
> Try without any  directives.  As long as you always plan to
> start apache with those modules loaded there shouldn't be an issue.
>
> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
>> on.  Double check that the path is correct also.
>>
>> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
>>> I am using Arch linux and trying to set up development environment of
>>> ownCloud and I am receiving a 500 error:
>>>
>>> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
>>> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '>> perhaps misspelled or defined by a module not included in the server
>>> configuration
>>>
>>> If I checked the .htaccess file, here are the first 10 lines:
>>>
>>> 
>>> 
>>> 
>>> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
>>> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
>>> 
>>> 
>>> 
>>> 
>>> php_value upload_max_filesize 513M
>>>
>>>
>>> I have the extra those modules enabled in my httpd.conf file:
>>>
>>> LoadModule setenvif_module modules/mod_setenvif.so
>>> LoadModule headers_module modules/mod_headers.so
>>> LoadModule fcgid_module modules/mod_fcgid.so
>>> LoadModule php5_module modules/libphp5.so
>>>
>>> Any guide to solve the 500 error would be appreciated. The same
>>> .htaccess file was working without any problems in my Ubuntu setup.
>>>
>>> The full files:
>>>
>>> httpd.conf: http://paste.kde.org/p0gqinrsr
>>> owncloud .htaccess: http://paste.kde.org/p84wbouwy
>>> php module.conf: http://paste.kde.org/pkalrmsvz
>>>
>>> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
>>> mod_fcgid/2.3.9
>>>
>>>
>>> Best regards,
>>> Volkan GEZER
>>> volkange...@gmail.com
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-04 Thread Edgar Pettijohn
Try without any  directives.  As long as you always plan to
start apache with those modules loaded there shouldn't be an issue.

On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
> on.  Double check that the path is correct also.
>
> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
>> I am using Arch linux and trying to set up development environment of
>> ownCloud and I am receiving a 500 error:
>>
>> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
>> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> If I checked the .htaccess file, here are the first 10 lines:
>>
>> 
>> 
>> 
>> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
>> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
>> 
>> 
>> 
>> 
>> php_value upload_max_filesize 513M
>>
>>
>> I have the extra those modules enabled in my httpd.conf file:
>>
>> LoadModule setenvif_module modules/mod_setenvif.so
>> LoadModule headers_module modules/mod_headers.so
>> LoadModule fcgid_module modules/mod_fcgid.so
>> LoadModule php5_module modules/libphp5.so
>>
>> Any guide to solve the 500 error would be appreciated. The same
>> .htaccess file was working without any problems in my Ubuntu setup.
>>
>> The full files:
>>
>> httpd.conf: http://paste.kde.org/p0gqinrsr
>> owncloud .htaccess: http://paste.kde.org/p84wbouwy
>> php module.conf: http://paste.kde.org/pkalrmsvz
>>
>> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
>> mod_fcgid/2.3.9
>>
>>
>> Best regards,
>> Volkan GEZER
>> volkange...@gmail.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-03 Thread Volkan Gezer
Thank you for the answer. I removed all .c extensions from the
modules. Also, replaced the names with their directives, but no
success.

The modules are installed into /etc/httpd/modules which is also
correct in configuration. Can we somehow see which line causes the
problem? I have removed all  tags one by one, but the same
error message. It seems somehow apache does not understand what
 is. I can call other PHP files, though.

Best regards,
Volkan GEZER
volkange...@gmail.com


2014-10-03 18:44 GMT+02:00 Edgar Pettijohn :
> Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
> on.  Double check that the path is correct also.
>
> On 10/03/2014 08:36 AM, Volkan Gezer wrote:
>> I am using Arch linux and trying to set up development environment of
>> ownCloud and I am receiving a 500 error:
>>
>> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
>> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> If I checked the .htaccess file, here are the first 10 lines:
>>
>> 
>> 
>> 
>> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
>> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
>> 
>> 
>> 
>> 
>> php_value upload_max_filesize 513M
>>
>>
>> I have the extra those modules enabled in my httpd.conf file:
>>
>> LoadModule setenvif_module modules/mod_setenvif.so
>> LoadModule headers_module modules/mod_headers.so
>> LoadModule fcgid_module modules/mod_fcgid.so
>> LoadModule php5_module modules/libphp5.so
>>
>> Any guide to solve the 500 error would be appreciated. The same
>> .htaccess file was working without any problems in my Ubuntu setup.
>>
>> The full files:
>>
>> httpd.conf: http://paste.kde.org/p0gqinrsr
>> owncloud .htaccess: http://paste.kde.org/p84wbouwy
>> php module.conf: http://paste.kde.org/pkalrmsvz
>>
>> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
>> mod_fcgid/2.3.9
>>
>>
>> Best regards,
>> Volkan GEZER
>> volkange...@gmail.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess 500 error with invalid command '

2014-10-03 Thread Edgar Pettijohn
Try leaving off the ".c" so mod_headers.c becomes mod_headers and so
on.  Double check that the path is correct also.

On 10/03/2014 08:36 AM, Volkan Gezer wrote:
> I am using Arch linux and trying to set up development environment of
> ownCloud and I am receiving a 500 error:
>
> [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
> ::1:44681] /srv/http/owncloud/.htaccess: Invalid command ' perhaps misspelled or defined by a module not included in the server
> configuration
>
> If I checked the .htaccess file, here are the first 10 lines:
>
> 
> 
> 
> SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
> RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
> 
> 
> 
> 
> php_value upload_max_filesize 513M
>
>
> I have the extra those modules enabled in my httpd.conf file:
>
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule headers_module modules/mod_headers.so
> LoadModule fcgid_module modules/mod_fcgid.so
> LoadModule php5_module modules/libphp5.so
>
> Any guide to solve the 500 error would be appreciated. The same
> .htaccess file was working without any problems in my Ubuntu setup.
>
> The full files:
>
> httpd.conf: http://paste.kde.org/p0gqinrsr
> owncloud .htaccess: http://paste.kde.org/p84wbouwy
> php module.conf: http://paste.kde.org/pkalrmsvz
>
> Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 
> mod_fcgid/2.3.9
>
>
> Best regards,
> Volkan GEZER
> volkange...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess 500 error with invalid command '

2014-10-03 Thread Volkan Gezer
I am using Arch linux and trying to set up development environment of
ownCloud and I am receiving a 500 error:

[Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client
::1:44681] /srv/http/owncloud/.htaccess: Invalid command '


SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION




php_value upload_max_filesize 513M


I have the extra those modules enabled in my httpd.conf file:

LoadModule setenvif_module modules/mod_setenvif.so
LoadModule headers_module modules/mod_headers.so
LoadModule fcgid_module modules/mod_fcgid.so
LoadModule php5_module modules/libphp5.so

Any guide to solve the 500 error would be appreciated. The same
.htaccess file was working without any problems in my Ubuntu setup.

The full files:

httpd.conf: http://paste.kde.org/p0gqinrsr
owncloud .htaccess: http://paste.kde.org/p84wbouwy
php module.conf: http://paste.kde.org/pkalrmsvz

Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 mod_fcgid/2.3.9


Best regards,
Volkan GEZER
volkange...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 09:34:19 -0400
Eric Covener  wrote:

> On Wed, Jul 30, 2014 at 9:25 AM, Bob  wrote:
> >> RewriteRule ^/$  http://domain/sitemap.xml [R=301,L]
> 
> wrong for htaccess.  Try ^$
> 

Dear Eric,

many many thanks for the clue :-)
the URL has modified with  http://domain/sitemap.xmleID=dd_googlesitemap&L=0

and then I modified the rule as ( with ? at last)

RewriteRule ^/$  http://domain/sitemap.xml? [R=301,L]
and it is working perfectly...

Also thanks to Roman for his solution which is the foundation rule set :-)

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 9:25 AM, Bob  wrote:
>> RewriteRule ^/$  http://domain/sitemap.xml [R=301,L]

wrong for htaccess.  Try ^$

-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 08:59:54 -0400
Roman Jurkov  wrote:

> Bob,
> 
> there is not “?” in the QUERY_STRING, and RewriteRule at the moment states 
> that you want to match  dd_googlesitemap in your URL, which based on your 
> initial email is not what you want.
> 
> you want: 
> "http://domain/?eID=dd_googlesitemap&L=0 should be redirected to 
> http://domain/sitemap.xml”
> 
> which would translate to:
> RewriteEngine On
> RewriteCond %{QUERY_STRING} ^eID=dd_googlesitemap&L=0$ [NC]
> RewriteRule ^/$  http://domain/sitemap.xml [R=301,L]
> 
> thank you
> Roman.

Hello Roman,

Thanks for your time to look into this matter. I have tried your solution but
unfortunately it has not worked, though I admit your solution is theoretically
very correct.
 
As it is a ftp space I hardly have any scope to look into the apache logs to
provide more info.
 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 8:38 AM, Bob  wrote:
> RewriteCond %{QUERY_STRING} ^\?eID=dd_googlesitemap&L=0 [NC]


The question mark delimits the query string, it doesn't actually
appear in it.  Try using the rewritelog to see what your regular
expression is actually being compared against.

-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Roman Jurkov
Bob,

there is not “?” in the QUERY_STRING, and RewriteRule at the moment states that 
you want to match  dd_googlesitemap in your URL, which based on your initial 
email is not what you want.

you want: 
"http://domain/?eID=dd_googlesitemap&L=0 should be redirected to 
http://domain/sitemap.xml”

which would translate to:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^eID=dd_googlesitemap&L=0$ [NC]
RewriteRule ^/$  http://domain/sitemap.xml [R=301,L]

thank you
Roman.

On Jul 30, 2014, at 8:38 AM, Bob  wrote:

> On Wed, 30 Jul 2014 08:25:46 -0400
> Eric Covener  wrote:
> 
>> On Wed, Jul 30, 2014 at 8:06 AM, Bob  wrote:
>>> RewriteCond %{QUERY_STRING} ^&L=0$ [NC]
>> 
>> 
>> the query strin doesn't begin with &L. Why are you only matching part of it?
>> 
> 
> I try to use RewriteCond %{QUERY_STRING} ^?eID=dd_googlesitemap&L=0 [NC]
> and it cause server error.
> 
> then I add (\) before (?) like
> 
> RewriteCond %{QUERY_STRING} ^\?eID=dd_googlesitemap&L=0 [NC]
> RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]
> 
> Error gone but no success yet :-(
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 08:25:46 -0400
Eric Covener  wrote:

> On Wed, Jul 30, 2014 at 8:06 AM, Bob  wrote:
> > RewriteCond %{QUERY_STRING} ^&L=0$ [NC]
> 
> 
> the query strin doesn't begin with &L. Why are you only matching part of it?
> 

I try to use RewriteCond %{QUERY_STRING} ^?eID=dd_googlesitemap&L=0 [NC]
and it cause server error.

then I add (\) before (?) like

RewriteCond %{QUERY_STRING} ^\?eID=dd_googlesitemap&L=0 [NC]
RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]

Error gone but no success yet :-(

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 8:06 AM, Bob  wrote:
> RewriteCond %{QUERY_STRING} ^&L=0$ [NC]


the query strin doesn't begin with &L. Why are you only matching part of it?

-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 07:51:25 -0400
Eric Covener  wrote:

> On Wed, Jul 30, 2014 at 7:48 AM, Bob  wrote:
> > RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]
> 
> First arg should be ^$ not a piece of the query string.
> 
> 
Hello Eric,

thanks for your response. I have modified the rule as

RewriteEngine on
RewriteCond %{QUERY_STRING} ^&L=0$ [NC]
RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]

but still no success where the scenario is 

http://domain/?eID=dd_googlesitemap&L=0 should be redirected to 
http://domain/sitemap.xml

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 7:48 AM, Bob  wrote:
> RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]

First arg should be ^$ not a piece of the query string.


-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess and query string

2014-07-30 Thread Bob
Dear list,

I need a rewrite where query string is the answer.

http://domain/?eID=dd_googlesitemap&L=0 should be redirected to 
http://domain/sitemap.xml

So I have added the following to .htaccess

RewriteEngine on
RewriteCond %{QUERY_STRING} ^\eID\=dd_googlesitemap\&L=0$ [NC]
RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]

But no effect :-(

Could any one suggest the problem with above rule ?

Thanks 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess that also works for parent directory listing, Apache 2.2 and 2.4

2014-01-07 Thread jidanni
I need a way to write the perfectly working Apache 2.4 .htaccess,

Deny from all

to also be able to work correctly for Apache 2.2.9. Thanks.
SetEnvIf etc. cannot be used: please see
https://issues.apache.org/bugzilla/show_bug.cgi?id=55957

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-27 Thread Joydeep Bakshi
Hello Tom,

After tweaking the search pattern, the rule are working fine.
Thanks for your tips and thanks to all who has given me the clue.

- best wishes 



On 27-May-2013, at 12:34 PM, Joydeep Bakshi  
wrote:

> Hello Tom,
> 
> sorry for the wrong implementation of the rules.
> 
> This time I have done it as per requirement
> 
> actual url
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
> 
> it should be  
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
> 
> The &L=5 has to be appended
> 
> .htaccess
> =
> 
> RewriteCond %{QUERY_STRING}  ^id=7&artId=7572&doi=10.5414/ALP33211$
> RewriteRule index.php index.php?L=5 [QSA,R=301]
> 
> Log
> =
> RewriteCond: 
> input='http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211'
>  pattern='highest-credit' [NC] => not-matched
> RewriteCond: input='' pattern='^id=7&artId=7572&doi=10.5414/ALP33211$' => 
> not-matched
> 
> When the require patter need to be compared the input becomes null !!!
> Could you kindly explain ?
> 
> Thanks
> 
> 
> 
> 
> 
> On 24-May-2013, at 8:50 PM, Tom Evans  wrote:
> 
>> On Fri, May 24, 2013 at 3:37 PM, Joydeep Bakshi
>>  wrote:
>>> 
>>> 
>>> On 24-May-2013, at 6:46 PM, Tom Evans  wrote:
>>> 
 On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
  wrote:
> It was level 5 and now I have set level 9.
> From log it seems that the pattern is blindly applied to every link rather
> than matching the query_string
> 
> applying pattern '^ALP33211$' to uri 'index.php'
> applying pattern '^ALP33211$' to uri
> 'uploads/repository/02/1276_cn74_1001.gif'
> applying pattern '^ALP33211$' to uri
> 'fileadmin/templates/images/btnAddCart.png'
 
 That cannot be correct, At log level 9, the rewrite log would contain
 a mass of information for a single request, where as you are showing
 only one line per request.
 
 Please do not trim the log contents or decide what is important and
 what is not, show the entire rewrite log for a single request that
 should be rewritten.
 
 
> ……..
> ….
> 
> where te ruleset I have at .htaccess is
> 
> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
> 
> The actual url is
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
> 
> and it has to become
> 
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
> 
 
 The URL is "/index.php". Everything else is part of the query string.
 Your RewriteRule is predicated on the URL "/ALP33211", and so is
 ignored. In a .htaccess, you must also not specify the leading '/'
 either.
 
 Please do show the correct log entries, but this should work (untested):
 
 RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
 RewriteRule index.php index.php?L=5 [QSA,R=301]
 
 Cheers
 
 Tom
>>> 
>>> Hello Tom,
>>> 
>>> applied your rules  at .htaccess but no luck.
>>> 
>>> The log says as follows
>>> 
>>> 122.176.30.116 - - [24/May/2013:16:02:13 +0200] 
>>> [www.mydomain.com/sid#7f251146d330][rid#7f251191fa18/initial] (4) [perdir 
>>> /srv/www/htdocs/mydomain/] RewriteCond: 
>>> input='id=7&artId=7572&doi=10.5414/ALP33211' 
>>> pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched
>> 
>> 
>> Seems pretty clear, don't you think?
>> 
>> input='id=7&artId=7572&doi=10.5414/ALP33211'
>> pattern='^Id=7572&doi=10.5414/ALP33211$'
>> 
>> Cheers
>> 
>> Tom
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>> 
> 



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-27 Thread Joydeep Bakshi
Hello Tom,

sorry for the wrong implementation of the rules.

This time I have done it as per requirement

actual url
http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211

it should be  
http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5

The &L=5 has to be appended

.htaccess
=

RewriteCond %{QUERY_STRING}  ^id=7&artId=7572&doi=10.5414/ALP33211$
RewriteRule index.php index.php?L=5 [QSA,R=301]

Log
=
RewriteCond: 
input='http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211' 
pattern='highest-credit' [NC] => not-matched
RewriteCond: input='' pattern='^id=7&artId=7572&doi=10.5414/ALP33211$' => 
not-matched

When the require patter need to be compared the input becomes null !!!
Could you kindly explain ?

Thanks





On 24-May-2013, at 8:50 PM, Tom Evans  wrote:

> On Fri, May 24, 2013 at 3:37 PM, Joydeep Bakshi
>  wrote:
>> 
>> 
>> On 24-May-2013, at 6:46 PM, Tom Evans  wrote:
>> 
>>> On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
>>>  wrote:
 It was level 5 and now I have set level 9.
 From log it seems that the pattern is blindly applied to every link rather
 than matching the query_string
 
 applying pattern '^ALP33211$' to uri 'index.php'
 applying pattern '^ALP33211$' to uri
 'uploads/repository/02/1276_cn74_1001.gif'
 applying pattern '^ALP33211$' to uri
 'fileadmin/templates/images/btnAddCart.png'
>>> 
>>> That cannot be correct, At log level 9, the rewrite log would contain
>>> a mass of information for a single request, where as you are showing
>>> only one line per request.
>>> 
>>> Please do not trim the log contents or decide what is important and
>>> what is not, show the entire rewrite log for a single request that
>>> should be rewritten.
>>> 
>>> 
 ……..
 ….
 
 where te ruleset I have at .htaccess is
 
 RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
 RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
 
 The actual url is
 http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
 
 and it has to become
 
 http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
 
>>> 
>>> The URL is "/index.php". Everything else is part of the query string.
>>> Your RewriteRule is predicated on the URL "/ALP33211", and so is
>>> ignored. In a .htaccess, you must also not specify the leading '/'
>>> either.
>>> 
>>> Please do show the correct log entries, but this should work (untested):
>>> 
>>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>>> RewriteRule index.php index.php?L=5 [QSA,R=301]
>>> 
>>> Cheers
>>> 
>>> Tom
>> 
>> Hello Tom,
>> 
>> applied your rules  at .htaccess but no luck.
>> 
>> The log says as follows
>> 
>> 122.176.30.116 - - [24/May/2013:16:02:13 +0200] 
>> [www.mydomain.com/sid#7f251146d330][rid#7f251191fa18/initial] (4) [perdir 
>> /srv/www/htdocs/mydomain/] RewriteCond: 
>> input='id=7&artId=7572&doi=10.5414/ALP33211' 
>> pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched
> 
> 
> Seems pretty clear, don't you think?
> 
> input='id=7&artId=7572&doi=10.5414/ALP33211'
> pattern='^Id=7572&doi=10.5414/ALP33211$'
> 
> Cheers
> 
> Tom
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Tom Evans
On Fri, May 24, 2013 at 3:37 PM, Joydeep Bakshi
 wrote:
>
>
> On 24-May-2013, at 6:46 PM, Tom Evans  wrote:
>
>> On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
>>  wrote:
>>> It was level 5 and now I have set level 9.
>>> From log it seems that the pattern is blindly applied to every link rather
>>> than matching the query_string
>>>
>>> applying pattern '^ALP33211$' to uri 'index.php'
>>> applying pattern '^ALP33211$' to uri
>>> 'uploads/repository/02/1276_cn74_1001.gif'
>>> applying pattern '^ALP33211$' to uri
>>> 'fileadmin/templates/images/btnAddCart.png'
>>
>> That cannot be correct, At log level 9, the rewrite log would contain
>> a mass of information for a single request, where as you are showing
>> only one line per request.
>>
>> Please do not trim the log contents or decide what is important and
>> what is not, show the entire rewrite log for a single request that
>> should be rewritten.
>>
>>
>>> ……..
>>> ….
>>>
>>> where te ruleset I have at .htaccess is
>>>
>>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>>> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
>>>
>>> The actual url is
>>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>>>
>>> and it has to become
>>>
>>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>>>
>>
>> The URL is "/index.php". Everything else is part of the query string.
>> Your RewriteRule is predicated on the URL "/ALP33211", and so is
>> ignored. In a .htaccess, you must also not specify the leading '/'
>> either.
>>
>> Please do show the correct log entries, but this should work (untested):
>>
>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>> RewriteRule index.php index.php?L=5 [QSA,R=301]
>>
>> Cheers
>>
>> Tom
>
> Hello Tom,
>
> applied your rules  at .htaccess but no luck.
>
> The log says as follows
>
> 122.176.30.116 - - [24/May/2013:16:02:13 +0200] 
> [www.mydomain.com/sid#7f251146d330][rid#7f251191fa18/initial] (4) [perdir 
> /srv/www/htdocs/mydomain/] RewriteCond: 
> input='id=7&artId=7572&doi=10.5414/ALP33211' 
> pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched


Seems pretty clear, don't you think?

input='id=7&artId=7572&doi=10.5414/ALP33211'
pattern='^Id=7572&doi=10.5414/ALP33211$'

Cheers

Tom

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Eric Covener
The input isn't how you described it, right?

On Fri, May 24, 2013 at 10:37 AM, Joydeep Bakshi
 wrote:
>
>
> On 24-May-2013, at 6:46 PM, Tom Evans  wrote:
>
>> On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
>>  wrote:
>>> It was level 5 and now I have set level 9.
>>> From log it seems that the pattern is blindly applied to every link rather
>>> than matching the query_string
>>>
>>> applying pattern '^ALP33211$' to uri 'index.php'
>>> applying pattern '^ALP33211$' to uri
>>> 'uploads/repository/02/1276_cn74_1001.gif'
>>> applying pattern '^ALP33211$' to uri
>>> 'fileadmin/templates/images/btnAddCart.png'
>>
>> That cannot be correct, At log level 9, the rewrite log would contain
>> a mass of information for a single request, where as you are showing
>> only one line per request.
>>
>> Please do not trim the log contents or decide what is important and
>> what is not, show the entire rewrite log for a single request that
>> should be rewritten.
>>
>>
>>> ……..
>>> ….
>>>
>>> where te ruleset I have at .htaccess is
>>>
>>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>>> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
>>>
>>> The actual url is
>>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>>>
>>> and it has to become
>>>
>>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>>>
>>
>> The URL is "/index.php". Everything else is part of the query string.
>> Your RewriteRule is predicated on the URL "/ALP33211", and so is
>> ignored. In a .htaccess, you must also not specify the leading '/'
>> either.
>>
>> Please do show the correct log entries, but this should work (untested):
>>
>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>> RewriteRule index.php index.php?L=5 [QSA,R=301]
>>
>> Cheers
>>
>> Tom
>
> Hello Tom,
>
> applied your rules  at .htaccess but no luck.
>
> The log says as follows
>
> 122.176.30.116 - - [24/May/2013:16:02:13 +0200] 
> [www.mydomain.com/sid#7f251146d330][rid#7f251191fa18/initial] (4) [perdir 
> /srv/www/htdocs/mydomain/] RewriteCond: 
> input='id=7&artId=7572&doi=10.5414/ALP33211' 
> pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched
> 122.176.30.116 - - [24/May/2013:16:02:14 +0200] 
> [www.mydomain.com/sid#7f251146d330][rid#7f251193cc20/initial/redir#1] (4) 
> [perdir /srv/www/htdocs/mydomain/] RewriteCond: input='' 
> pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>



-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Joydeep Bakshi


On 24-May-2013, at 6:46 PM, Tom Evans  wrote:

> On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
>  wrote:
>> It was level 5 and now I have set level 9.
>> From log it seems that the pattern is blindly applied to every link rather
>> than matching the query_string
>> 
>> applying pattern '^ALP33211$' to uri 'index.php'
>> applying pattern '^ALP33211$' to uri
>> 'uploads/repository/02/1276_cn74_1001.gif'
>> applying pattern '^ALP33211$' to uri
>> 'fileadmin/templates/images/btnAddCart.png'
> 
> That cannot be correct, At log level 9, the rewrite log would contain
> a mass of information for a single request, where as you are showing
> only one line per request.
> 
> Please do not trim the log contents or decide what is important and
> what is not, show the entire rewrite log for a single request that
> should be rewritten.
> 
> 
>> ……..
>> ….
>> 
>> where te ruleset I have at .htaccess is
>> 
>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
>> 
>> The actual url is
>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>> 
>> and it has to become
>> 
>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>> 
> 
> The URL is "/index.php". Everything else is part of the query string.
> Your RewriteRule is predicated on the URL "/ALP33211", and so is
> ignored. In a .htaccess, you must also not specify the leading '/'
> either.
> 
> Please do show the correct log entries, but this should work (untested):
> 
> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
> RewriteRule index.php index.php?L=5 [QSA,R=301]
> 
> Cheers
> 
> Tom

Hello Tom,

applied your rules  at .htaccess but no luck.

The log says as follows

122.176.30.116 - - [24/May/2013:16:02:13 +0200] 
[www.mydomain.com/sid#7f251146d330][rid#7f251191fa18/initial] (4) [perdir 
/srv/www/htdocs/mydomain/] RewriteCond: 
input='id=7&artId=7572&doi=10.5414/ALP33211' 
pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched
122.176.30.116 - - [24/May/2013:16:02:14 +0200] 
[www.mydomain.com/sid#7f251146d330][rid#7f251193cc20/initial/redir#1] (4) 
[perdir /srv/www/htdocs/mydomain/] RewriteCond: input='' 
pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Tom Evans
On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
 wrote:
> It was level 5 and now I have set level 9.
> From log it seems that the pattern is blindly applied to every link rather
> than matching the query_string
>
> applying pattern '^ALP33211$' to uri 'index.php'
> applying pattern '^ALP33211$' to uri
> 'uploads/repository/02/1276_cn74_1001.gif'
> applying pattern '^ALP33211$' to uri
> 'fileadmin/templates/images/btnAddCart.png'

That cannot be correct, At log level 9, the rewrite log would contain
a mass of information for a single request, where as you are showing
only one line per request.

Please do not trim the log contents or decide what is important and
what is not, show the entire rewrite log for a single request that
should be rewritten.


> ……..
> ….
>
> where te ruleset I have at .htaccess is
>
> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
>
> The actual url is
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>
> and it has to become
>
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>

The URL is "/index.php". Everything else is part of the query string.
Your RewriteRule is predicated on the URL "/ALP33211", and so is
ignored. In a .htaccess, you must also not specify the leading '/'
either.

Please do show the correct log entries, but this should work (untested):

RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
RewriteRule index.php index.php?L=5 [QSA,R=301]

Cheers

Tom

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Jens-U. Mozdzen

Hi Joydeep,

Zitat von Joydeep Bakshi :

On 24-May-2013, at 6:23 PM, Jens-Uwe Mozdzen  wrote:


Hi Joydeep,

Zitat von Joydeep Bakshi :

On 24-May-2013, at 6:06 PM, "Jens-U. Mozdzen"  wrote:


Hi Joydeep,

Zitat von Joydeep Bakshi :

[...]
Thanks but without the leading slash it still fails to provide  
the redirection.

Now I have

RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]


what's in mod_rewrite's debug log?

Regards,
Jens




Hello Jens,

I get repeated


sorry, I missed the other response.



`
applying pattern '^ALP33211$' to uri

``


That's not very helpful yet - increase the log level so you see  
that a new request is being handled and which rules apply and which  
don't - "RewriteLogLevel 5" might be a good start.


It was level 5 and now I have set level 9.
From log it seems that the pattern is blindly applied to every link  
rather than matching the query_string


that's not how I read it:


applying pattern '^ALP33211$' to uri 'index.php'
applying pattern '^ALP33211$' to uri  
'uploads/repository/02/1276_cn74_1001.gif'
applying pattern '^ALP33211$' to uri  
'fileadmin/templates/images/btnAddCart.png'

……..
….

where te ruleset I have at .htaccess is

RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]


The first rule to check is "does the URI match "^/ALP33211$"? And  
that's of course applied to all incoming requests, which is what the  
debug log confirms.


The actual url is
http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211


Then where does your regexp "^/ALP33211$" come from? Shouldn't you  
rather match "^index.php$"?
RewriteCond is just *another* condition the request has to match. And  
make sure your replacement string is correct - as it is now, you  
defined to turn "/ALP33211" (which will never match - no leading  
slash, please) to "/ALP33211&L1"... even if you fix the condition, the  
replacement looks wrong to me ;)



and it has to become

http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5


hm... might it be you got confused by the format of the query  
parameters? The final element of the resource is "index.php",  
everything after the "?" are parameters. Seems that's where your  
current regexp comes from.


Watch your debug log - it tells you what URI is being thrown into the  
rule sets - the first one from your quote above is "index.php", and  
it's that URI which needs to be matched in RewriteRule.



The &L=5 has to be appended

Thanks


Regards,
Jens


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Joydeep Bakshi

On 24-May-2013, at 6:23 PM, Jens-Uwe Mozdzen  wrote:

> Hi Joydeep,
> 
> Zitat von Joydeep Bakshi :
>> On 24-May-2013, at 6:06 PM, "Jens-U. Mozdzen"  wrote:
>> 
>>> Hi Joydeep,
>>> 
>>> Zitat von Joydeep Bakshi :
 [...]
 Thanks but without the leading slash it still fails to provide the 
 redirection.
 Now I have
 
 RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]
>>> 
>>> what's in mod_rewrite's debug log?
>>> 
>>> Regards,
>>> Jens
>>> 
>>> 
>> 
>> Hello Jens,
>> 
>> I get repeated
> 
> sorry, I missed the other response.
> 
>> 
>> `
>> applying pattern '^ALP33211$' to uri
>> 
>> ``
> 
> That's not very helpful yet - increase the log level so you see that a new 
> request is being handled and which rules apply and which don't - 
> "RewriteLogLevel 5" might be a good start.

It was level 5 and now I have set level 9.
From log it seems that the pattern is blindly applied to every link rather than 
matching the query_string

applying pattern '^ALP33211$' to uri 'index.php'
applying pattern '^ALP33211$' to uri 'uploads/repository/02/1276_cn74_1001.gif'
applying pattern '^ALP33211$' to uri 'fileadmin/templates/images/btnAddCart.png'
……..
….

where te ruleset I have at .htaccess is

RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]

The actual url is   
http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211

and it has to become 

http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5

The &L=5 has to be appended

Thanks

Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Jens-Uwe Mozdzen

Hi Joydeep,

Zitat von Joydeep Bakshi :

On 24-May-2013, at 6:06 PM, "Jens-U. Mozdzen"  wrote:


Hi Joydeep,

Zitat von Joydeep Bakshi :

[...]
Thanks but without the leading slash it still fails to provide the  
redirection.

Now I have

RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]


what's in mod_rewrite's debug log?

Regards,
Jens




Hello Jens,

I get repeated


sorry, I missed the other response.



`
applying pattern '^ALP33211$' to uri

``


That's not very helpful yet - increase the log level so you see that a  
new request is being handled and which rules apply and which don't -  
"RewriteLogLevel 5" might be a good start.


Regards,
Jens
--
Jens-U. Mozdzen voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG  fax : +49-40-559 51 77
Postfach 61 03 15   mobile  : +49-179-4 98 21 98
D-22423 Hamburg e-mail  : jmozd...@nde.ag

Vorsitzende des Aufsichtsrates: Angelika Mozdzen
  Sitz und Registergericht: Hamburg, HRB 90934
  Vorstand: Jens-U. Mozdzen
   USt-IdNr. DE 814 013 983


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Joydeep Bakshi

On 24-May-2013, at 6:06 PM, "Jens-U. Mozdzen"  wrote:

> Hi Joydeep,
> 
> Zitat von Joydeep Bakshi :
>> [...]
>> Thanks but without the leading slash it still fails to provide the 
>> redirection.
>> Now I have
>> 
>> RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]
> 
> what's in mod_rewrite's debug log?
> 
> Regards,
> Jens
> 
> 

Hello Jens,

I get repeated

`
applying pattern '^ALP33211$' to uri

``


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Jens-U. Mozdzen

Hi Joydeep,

Zitat von Joydeep Bakshi :

[...]
Thanks but without the leading slash it still fails to provide the  
redirection.

Now I have

RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]


what's in mod_rewrite's debug log?

Regards,
Jens



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Eric Covener
>
> Thanks but without the leading slash it still fails to provide the 
> redirection.
> Now I have
>
> RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]
>

Use the RewriteLog, no need to guess what's happening.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Joydeep Bakshi

On 24-May-2013, at 5:22 PM, Eric Covener  wrote:

> On Fri, May 24, 2013 at 7:41 AM, Joydeep Bakshi
>  wrote:
>> Hello list,
>> 
>> Greetings !!
>> 
>> I am using {QUERY_STRING} to append a value to a particular URL.
>> 
>> The actual url is   
>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>> 
>> and it has to become
>> 
>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>> 
>> The &L=5 has to be appended
>> 
>> Hence I have made the .htaccess rule as
>> 
>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
> 
> In .htaccess, a leading slash never matches in a RewriteRule.   The
> path you compare to is relative to where the htaccess is, without a
> leading slash.
> 

Thanks but without the leading slash it still fails to provide the redirection.
Now I have

RewriteRule ^ALP33211$  /ALP33211&L=1 [R=301]


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Eric Covener
On Fri, May 24, 2013 at 7:41 AM, Joydeep Bakshi
 wrote:
> Hello list,
>
> Greetings !!
>
> I am using {QUERY_STRING} to append a value to a particular URL.
>
> The actual url is   
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>
> and it has to become
>
> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>
> The &L=5 has to be appended
>
> Hence I have made the .htaccess rule as
>
> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]

In .htaccess, a leading slash never matches in a RewriteRule.   The
path you compare to is relative to where the htaccess is, without a
leading slash.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess {QUERY_STRING} and issue with append a value

2013-05-24 Thread Joydeep Bakshi
Hello list,

Greetings !!

I am using {QUERY_STRING} to append a value to a particular URL.

The actual url is   
http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211

and it has to become 

http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5

The &L=5 has to be appended

Hence I have made the .htaccess rule as

RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]

But it is not working at all.  Have I done any misconfiguration ?
The mod_rewrite is already available and working.

Kindly suggest.

Thanks
-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess priority

2013-04-12 Thread Ezequiel M. Cardinali
Hi

Is there any way to priorize one .htaccess file to the others? 
I need to restrict users from a shared hosting server to change some 
configurations in the server.
I cannot use AllowOverride, because I need to permit to use the Rewrites 
directives but not 
SetHandler and this directives are in FileInfo directive-type.

Thank you!

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] htaccess file and computer names

2013-02-21 Thread Krist van Besien
On Tue, Feb 19, 2013 at 7:49 PM, Marc Fromm  wrote:
> I am using some htaccess files to control access to a few web pages.
>
> The htaccess file works if I use the ip address of the computer to grant
> access, but not its name.

If you want apache to be able to grant access based on computer name
you must be sure that revers DNS lookups for those machines works.
>From the point of view of the apache webserver all requests come from
an ip address. If you use a hostname in an access directive apache
will perform a reverse lookup on that ip address, and compares the
name it gets with the directive.
So what you first need to check is if reverse dns works.

Be warned however that having apache check dns with every request will
incur a performance penalty. However if convenience is more important
than performance this can be something that one can live with...


Krist


-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bern, Switzerland

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] htaccess file and computer names

2013-02-19 Thread Mathijs Schmittmann
Op 19 feb. 2013 om 21:01 heeft "Walter H."  het 
volgende geschreven:

> Hello,
> 
> DNS names won't work here;
> because the connection is made by an IP host,
> for this a reverse DNS request would be neccessary;
> 
> the apache log files also also don't contain DNS names, just IP addresses;

Note: This is only true if HostnameLookups is set to off

> 
> I wouldn't do this, because this decreases performance;
> 
> Walter
> 
> On 19.02.2013 19:49, Marc Fromm wrote:
>> 
>> I am using some htaccess files to control access to a few web pages.
>> 
>> The htaccess file works if I use the ip address of the computer to grant 
>> access, but not its name.
>> 
>> Is there another setting to enable for  “Allow from 
>> computername.domain.name” to work like using the ip address “Allow from 
>> ###.###.###.###” ?
>> 
>>  
>> 
>> Order deny,allow
>> 
>> Deny from all
>> 
>> Allow from computername.domain.name //this does not grant access
>> 
>> Allow from ###.###.###.### //this grants access
>> 
>>  
>> 
>> The computers and the server are all on the same network
>> 
>>  
>> 
>> Thanks
>> 
>>  
>> 
>> Marc
>> 
> 


Re: [users@httpd] htaccess file and computer names

2013-02-19 Thread Walter H.

Hello,

DNS names won't work here;
because the connection is made by an IP host,
for this a reverse DNS request would be neccessary;

the apache log files also also don't contain DNS names, just IP addresses;

I wouldn't do this, because this decreases performance;

Walter

On 19.02.2013 19:49, Marc Fromm wrote:


I am using some htaccess files to control access to a few web pages.

The htaccess file works if I use the ip address of the computer to 
grant access, but not its name.


Is there another setting to enable for  "Allow from 
computername.domain.name" to work like using the ip address "Allow 
from ###.###.###.###" ?


Order deny,allow

Deny from all

Allow from computername.domain.name //this does not grant access

Allow from ###.###.###.### //this grants access

The computers and the server are all on the same network

Thanks

Marc





smime.p7s
Description: S/MIME Cryptographic Signature


Re: [users@httpd] htaccess file and computer names

2013-02-19 Thread Paul Norton
On 19 February 2013 18:49, Marc Fromm  wrote:

>  I am using some htaccess files to control access to a few web pages.
>
> The htaccess file works if I use the ip address of the computer to grant
> access, but not its name.
>
> Is there another setting to enable for  “Allow from
> computername.domain.name” to work like using the ip address “Allow from
> ###.###.###.###” ?
>
> ** **
>
> Order deny,allow
>
> Deny from all
>
> Allow from computername.domain.name //this does not grant access
>
> Allow from ###.###.###.### //this grants access
>
> ** **
>
> The computers and the server are all on the same network
>
> ** **
>
> Thanks
>
> ** **
>
> Marc
>

Hello
http://httpd.apache.org/docs/2.0/mod/core.html#location

 SetHandler server-status
Order Deny,Allow
Deny from all
Allow from .foo.com
 
Hope this helps. All the best Paul

-- 
"Perhaps today is a good day to die. Prepare for ramming speed" -*Commander
**Worf*


[users@httpd] htaccess file and computer names

2013-02-19 Thread Marc Fromm
I am using some htaccess files to control access to a few web pages.
The htaccess file works if I use the ip address of the computer to grant 
access, but not its name.
Is there another setting to enable for  "Allow from computername.domain.name" 
to work like using the ip address "Allow from ###.###.###.###" ?

Order deny,allow
Deny from all
Allow from computername.domain.name //this does not grant access
Allow from ###.###.###.### //this grants access

The computers and the server are all on the same network

Thanks

Marc


Re: [users@httpd] Htaccess on in certain directories, but off in sub directories query

2013-01-25 Thread Igor Cicimov
Rwad about "Satisfy any"
On 25/01/2013 12:46 AM, "Brent Clark"  wrote:

> Good day
>
> I currently have .htaccess on by default in my apache config.
>
> As a result, if you do a strace, you see the following example.
>
> stat64("/var/www/vb/css/dhtml_**menu.css", {st_mode=S_IFREG|0644,
> st_size=10025, ...}) = 0
> open("/var/www/.htaccess", O_RDONLY|O_LARGEFILE|O_**CLOEXEC) = -1 ENOENT
> (No such file or directory)
> open("/var/www/vb/.htaccess", O_RDONLY|O_LARGEFILE|O_**CLOEXEC) = -1
> ENOENT (No such file or directory)
> open("/var/www/vb/css/.**htaccess", O_RDONLY|O_LARGEFILE|O_**CLOEXEC) =
> -1 ENOENT (No such file or directory)
> open("/var/www/vb/css/dhtml_**menu.css/.htaccess", O_RDONLY|O_LARGEFILE|O_
> **CLOEXEC) = -1 ENOTDIR (Not a directory)
> open("/var/www/vb/css/dhtml_**menu.css", O_RDONLY|O_LARGEFILE|O_**CLOEXEC)
> = 30
>
> I would like to look to minimizing all these look ups for a non existing
> file.
>
> I unfortunately cannot disable htaccess all together, for I need htaccess
> to do various tasks in various locations.
>
> I did a quick find to locate all my htaccess's.
>
> /var/www/news/.htaccess
> /var/www/blogs/.htaccess
> /var/www/classifieds/data/11/**thumbs/.htaccess
> /var/www/general/.htaccess
> /var/www/nephp/.htaccess
> /var/www/photos/data/.htaccess
> /var/www/vb/clientscript/**ckeditor/.htaccess
> /var/www/events/.htaccess
>
> The question I would like to ask is. If I set 'AllowOverride None' for
> /var/www.
> How would I enable for, say. '/var/www/news/', but not all its sub
> directories.
>
> I hope I have explained my situation and question clearly, but if not,
> please dont hesitate to ask me to rephrase.
>
> Thank you if you can help.
>
> Regards
> Brent Clark
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@httpd.**apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] Htaccess on in certain directories, but off in sub directories query

2013-01-24 Thread Brent Clark

Good day

I currently have .htaccess on by default in my apache config.

As a result, if you do a strace, you see the following example.

stat64("/var/www/vb/css/dhtml_menu.css", {st_mode=S_IFREG|0644, 
st_size=10025, ...}) = 0
open("/var/www/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT 
(No such file or directory)
open("/var/www/vb/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
open("/var/www/vb/css/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
open("/var/www/vb/css/dhtml_menu.css/.htaccess", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOTDIR (Not a directory)

open("/var/www/vb/css/dhtml_menu.css", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 30

I would like to look to minimizing all these look ups for a non existing 
file.


I unfortunately cannot disable htaccess all together, for I need 
htaccess to do various tasks in various locations.


I did a quick find to locate all my htaccess's.

/var/www/news/.htaccess
/var/www/blogs/.htaccess
/var/www/classifieds/data/11/thumbs/.htaccess
/var/www/general/.htaccess
/var/www/nephp/.htaccess
/var/www/photos/data/.htaccess
/var/www/vb/clientscript/ckeditor/.htaccess
/var/www/events/.htaccess

The question I would like to ask is. If I set 'AllowOverride None' for 
/var/www.
How would I enable for, say. '/var/www/news/', but not all its sub 
directories.


I hope I have explained my situation and question clearly, but if not, 
please dont hesitate to ask me to rephrase.


Thank you if you can help.

Regards
Brent Clark


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] htaccess file trouble

2012-11-01 Thread Ben Johnson
On 11/1/2012 6:30 PM, Marc Fromm wrote:
> It looks like mod_info is installed (/usr/lib/httpd/modules/mod_info.so)
> How can I use it to see why the .htaccess file is being ignored?

Firstly, be sure that the module is actually enabled.

As far as specific directives are concerned, here's how I do it; I add
these directives to my primary Apache configuration file:



Order allow,deny
Allow from all
SetHandler server-info
SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "example.com"
AuthType Basic
AuthName "Authorization Required"
AuthBasicProvider dbm
AuthDBMType DB
AuthDBMUserFile "/var/www/apache-users"
AuthDBMGroupFile "/var/www/apache-users"
require group programmers



Tailor to suit your specific requirements.

If you're using Apache 2.4, you will need to change the first two lines
inside the  block, as 2.4 uses a different syntax.

Good luck!

-Ben

> -Original Message-
> From: Ben Johnson [mailto:b...@indietorrent.org] 
> Sent: Thursday, November 01, 2012 1:44 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] htaccess file trouble
> 
> 
> 
> On 11/1/2012 4:31 PM, Marc Fromm wrote:
>> I have some .htaccess files in directories in /var/www/html which work 
>> great.
>>
>> I create an .htaccess file in /var/www/secure/html/phpPgAdmin/ but it 
>> is being ignored.
>>
>>  
>>
>> I checked all the common mistakes like misspelled, syntax, and 
>> AllowOverride is set to All.
> 
> In which configuration file is AllowOverride set to All?
> 
> We could guess at this all day, but the most prudent course of action is 
> probably to install mod_info, which should make tracking-down the root-cause 
> trivial.
> 
>> I am using: httpd-2.2.6-1.fc6 (I know it's old)
>>
>>  
>>
>> Any ideas on why the .htaccess file seems to be ignored in the secure area?
>>
>>  
>>
>> Thanks
>>
>>  
>>
>>  
>>
>> Marc
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [users@httpd] htaccess file trouble

2012-11-01 Thread Marc Fromm
It looks like mod_info is installed (/usr/lib/httpd/modules/mod_info.so)
How can I use it to see why the .htaccess file is being ignored?

-Original Message-
From: Ben Johnson [mailto:b...@indietorrent.org] 
Sent: Thursday, November 01, 2012 1:44 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] htaccess file trouble



On 11/1/2012 4:31 PM, Marc Fromm wrote:
> I have some .htaccess files in directories in /var/www/html which work 
> great.
> 
> I create an .htaccess file in /var/www/secure/html/phpPgAdmin/ but it 
> is being ignored.
> 
>  
> 
> I checked all the common mistakes like misspelled, syntax, and 
> AllowOverride is set to All.

In which configuration file is AllowOverride set to All?

We could guess at this all day, but the most prudent course of action is 
probably to install mod_info, which should make tracking-down the root-cause 
trivial.

> I am using: httpd-2.2.6-1.fc6 (I know it's old)
> 
>  
> 
> Any ideas on why the .htaccess file seems to be ignored in the secure area?
> 
>  
> 
> Thanks
> 
>  
> 
>  
> 
> Marc
> 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [users@httpd] htaccess file trouble

2012-11-01 Thread Marc Fromm
AllowOverride set to All in the /etc/httpd/conf/httpd.conf file

Is there a yum repository for this mod_info?

Thanks
-Original Message-
From: Ben Johnson [mailto:b...@indietorrent.org] 
Sent: Thursday, November 01, 2012 1:44 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] htaccess file trouble



On 11/1/2012 4:31 PM, Marc Fromm wrote:
> I have some .htaccess files in directories in /var/www/html which work 
> great.
> 
> I create an .htaccess file in /var/www/secure/html/phpPgAdmin/ but it 
> is being ignored.
> 
>  
> 
> I checked all the common mistakes like misspelled, syntax, and 
> AllowOverride is set to All.

In which configuration file is AllowOverride set to All?

We could guess at this all day, but the most prudent course of action is 
probably to install mod_info, which should make tracking-down the root-cause 
trivial.

> I am using: httpd-2.2.6-1.fc6 (I know it's old)
> 
>  
> 
> Any ideas on why the .htaccess file seems to be ignored in the secure area?
> 
>  
> 
> Thanks
> 
>  
> 
>  
> 
> Marc
> 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] htaccess file trouble

2012-11-01 Thread Ben Johnson


On 11/1/2012 4:31 PM, Marc Fromm wrote:
> I have some .htaccess files in directories in /var/www/html which work
> great.
> 
> I create an .htaccess file in /var/www/secure/html/phpPgAdmin/ but it is
> being ignored.
> 
>  
> 
> I checked all the common mistakes like misspelled, syntax, and
> AllowOverride is set to All.

In which configuration file is AllowOverride set to All?

We could guess at this all day, but the most prudent course of action is
probably to install mod_info, which should make tracking-down the
root-cause trivial.

> I am using: httpd-2.2.6-1.fc6 (I know it’s old)
> 
>  
> 
> Any ideas on why the .htaccess file seems to be ignored in the secure area?
> 
>  
> 
> Thanks
> 
>  
> 
>  
> 
> Marc
> 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess file trouble

2012-11-01 Thread Marc Fromm
I have some .htaccess files in directories in /var/www/html which work great.
I create an .htaccess file in /var/www/secure/html/phpPgAdmin/ but it is being 
ignored.

I checked all the common mistakes like misspelled, syntax, and AllowOverride is 
set to All.
I am using: httpd-2.2.6-1.fc6 (I know it's old)

Any ideas on why the .htaccess file seems to be ignored in the secure area?

Thanks


Marc


[users@httpd] .htaccess in subdir affects

2012-11-01 Thread MIZiper
Hi there,

Assuming that the documentroot is ROOT and the domain is example.com.


ROOT's hierarchy is:
    ROOT/handle/
    ROOT/handle/handle.php
    ROOT/dir1/
    ROOT/dir1/.htaccess
    ROOT/dir1/some1.txt
    ROOT/dir2/
    ROOT/dir2/some2.txt
    ROOT/.htaccess


.htaccess in ROOT contains:
    DirectorySlash Off
    RewriteEngine On
    RewriteRule (.*) /handle/handle.php?arg=$1


.htaccess in dir1 contains:
    RewriteEngine On


handle.php:



example.com/dir1 will lead to a forbidden page
example.com/dir1/some1.txt will display the contents of some1.txt
example.com/dir2 will display: Array([arg]=>dir2)
example.com/dir2/some2.txt will display: Array([arg]=>dir2/some2.txt)


The last two results are what I want, so how to remove the effect of .htaccess 
in subdir?
(I'm using Apache httpd 2.2.20 on Windows)


THANKS,
MIZiper

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess settings not working in combination with kerberos

2012-05-02 Thread Mark Jas
Hi!

 
I have a vhost configured to use kerberos authentication against a windows AD. 
Authentication works great, but some of the settings in the .htaccess file are 
not working.

 
My apache version is 2.2.15.

 
My files directive and my rewriterule have no effect at all, while my php_flag 
and php_value settings are working!?

When I disable kerberos authentication, everything in the .htaccess works 
perfectly.

 
Here the relevant parts of the httpd.conf:



    Options Indexes FollowSymLinks

    AllowOverride All

    Order allow,deny

    Allow from all



 
 


    ServerAdmin root@domain.local  

    DocumentRoot /var/www/html-prod/

    ServerName itr01.domain.local

 
    

    AuthType Kerberos

    AuthName "KRB Login"

    KrbAuthRealms DOMAIN.LOCAL

    KrbServiceName HTTP

    Krb5Keytab /etc/httpd/adm.keytab

    KrbMethodNegotiate on

    KrbMethodK5Passwd off

    

    satisfy any

    Order allow,deny

    Allow from localhost 10.31.1.86

    require valid-user

    

 
    RewriteEngine on

    ErrorDocument 401 "https://redirect.domain.local\";>"

 
    

 


 
 
 
 
Here the content of my /var/www/html-prod/.htaccess

DirectoryIndex index.php

Options FollowSymlinks

 


    php_flag session.auto_start off

    php_flag register_globals off

    php_flag allow_call_time_pass_reference off

    php_flag magic_quotes_gpc off

    php_flag short_open_tag on

    php_flag session.use_trans_sid off

    php_value upload_max_filesize 50M

    php_value post_max_size 50M

    php_value error_reporting 8191

    php_value max_input_time -1



 
# Prevent different files from download



    Order allow,deny

    Deny from all

    Satisfy All



 


RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule . /index.php [L]



 
 
 
--

With regards,

 
Mark Jas

 


Re: [users@httpd] htaccess file access

2012-05-01 Thread Nick Kew

On 1 May 2012, at 18:23, Chandler, Dean A wrote:

> Hi,
> I have Apache   Server version: Apache/2.4.1 (Unix) and am 
> running into performance issues on my file system where access are slower 
> than expected.  I believe this is due to unexpected .htaccess file access 
> from Apache server.  I have turned off all checks for htaccess override files 
> in my httpd.conf file like this.
>  
> 
> AllowOverride None
> AllowOverrideList None
> 
>  
> Yet when I run strace on the file system calls I still get system open 
> commands on .htaccess for each level of my dir structure like this from strace

Somewhere in your config (perhaps an included file) is overriding your 
AllowOverride.
Perhaps grep through all your config files?

Perhaps since it's under /home/ this could be mod_userdir config?

-- 
Nick Kew
-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess file access

2012-05-01 Thread Chandler, Dean A
Hi,
I have Apache   Server version: Apache/2.4.1 (Unix) and am 
running into performance issues on my file system where access are slower than 
expected.  I believe this is due to unexpected .htaccess file access from 
Apache server.  I have turned off all checks for htaccess override files in my 
httpd.conf file like this.


AllowOverride None
AllowOverrideList None


Yet when I run strace on the file system calls I still get system open commands 
on .htaccess for each level of my dir structure like this from strace

61844 mprotect(0x7fb82400, 135168, PROT_READ|PROT_WRITE) = 0
61844 fcntl(14, F_GETFL)= 0x2 (flags O_RDWR)
61844 fcntl(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0
61844 read(14, "GET / HTTP/1.1\r\nUser-Agent: curl"..., 8000) = 169
61844 stat("/home/httpbld/htdocs/", {st_mode=S_IFDIR|0777, st_size=4096, ...}) 
= 0
61844 open("/.htaccess", O_RDONLY|O_CLOEXEC) = 15
61844 fstat(15, {st_mode=S_IFREG|0644, st_size=21, ...}) = 0
61844 read(15, "\n\n\n# this is a test\n\n", 4096) = 21
61844 read(15, "", 4096)= 0
61844 close(15) = 0
61844 open("/home/.htaccess", O_RDONLY|O_CLOEXEC) = 15
61844 fstat(15, {st_mode=S_IFREG|0644, st_size=21, ...}) = 0
61844 read(15, "\n\n\n# this is a test\n\n", 4096) = 21
61844 read(15, "", 4096)= 0
61844 close(15) = 0
61844 open("/home/httpbld/.htaccess", O_RDONLY|O_CLOEXEC) = 15
61844 fstat(15, {st_mode=S_IFREG|0644, st_size=21, ...}) = 0
61844 read(15, "\n\n\n# this is a test\n\n", 4096) = 21
61844 read(15, "", 4096)= 0
61844 close(15) = 0
61844 open("/home/httpbld/htdocs/.htaccess", O_RDONLY|O_CLOEXEC) = 15
61844 fstat(15, {st_mode=S_IFREG|0666, st_size=21, ...}) = 0
61844 read(15, "\n\n\n# this is a test\n\n", 4096) = 21
61844 read(15, "", 4096)= 0
61844 close(15) = 0
61844 stat("/home


Please let me know if this is expected of if there is something configuration I 
am not setting correctly.


Apache build info:
Server version: Apache/2.4.1 (Unix)
Server built:   Apr 23 2012 14:45:07
Server's Module Magic Number: 20120211:0
Server loaded:  APR 2.0.0-dev
Compiled using: APR 2.0.0-dev
Architecture:   64-bit
Server MPM: worker
  threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/home/httpbld"
-D SUEXEC_BIN="/home/httpbld/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

Thanks
Dean..


Re: [users@httpd] .htaccess file outside of web space

2012-04-05 Thread Pete Houston
On Wed, Apr 04, 2012 at 11:26:29PM -0400, Phil Smith wrote:
> Am I interpreting what I'm seeing correctly or could I possibly have a
> configuration problem? 

You are interpreting it correctly, there's no configuration problem.
This is the way that access files are applied as in the documentation.
See http://httpd.apache.org/docs/2.4/howto/htaccess.html#how for
example.

> I don't want and I don't expect anything at the
> /home/joe level to be web space so I was surprised that Apache would
> recognize any file at the /home/joe level for any purpose.

If you want to isolate apache entirely to a subtree of your filesystem,
consider running it chrooted.
http://httpd.apache.org/docs/2.4/mod/mod_unixd.html#chrootdir

HTH,

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107


pgp2larybx4tH.pgp
Description: PGP signature


[users@httpd] .htaccess file outside of web space

2012-04-04 Thread Phil Smith
I noticed that when I placed an .htaccess file outside of web space,
the .htaccess file was respected by Apache. I found this surprising.

Say DocumentRoot is /home/joe/public_html so that /home/joe is in a
path leading to web space, but outside of web space.
An .htaccess file:
/home/joe/.htaccess is respected by Apache.

Am I interpreting what I'm seeing correctly or could I possibly have a
configuration problem? I don't want and I don't expect anything at the
/home/joe level to be web space so I was surprised that Apache would
recognize any file at the /home/joe level for any purpose.

Or am I thinking about this wrong in that /home/joe would be web space
if not for the "Deny from all" placed at the   level and
nothing permissive allowed except for a permissive Directory
configuration of /home/joe/public_html?

Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] htaccess

2012-03-14 Thread Nick Edwards
On 3/15/12, Anam Ali Khan  wrote:
> Yes, Apache access.htaccess only at that point where you inserted
> AllowOverride in the directory container.
>
> It also saves a little disk io load on web server :)
>
>
> -Anam
>

Thanks for confirming my suspicions - busy day ahead :->

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] htaccess

2012-03-14 Thread Anam Ali Khan
Yes, Apache access.htaccess only at that point where you inserted AllowOverride 
in the directory container. 

It also saves a little disk io load on web server :)


-Anam




 From: Nick Edwards 
To: users  
Sent: Wednesday, 14 March 2012, 11:41
Subject: [users@httpd] htaccess
 
Hi,
Just trying to clarify it is best to allow these in the virtualhost
root on a per domain

For instance at present we have

    AllowOverride None
    Options None
    Require all denied


I know this is good :)

But then we have

    AllowOverride AuthConfig
    Options +Indexes


now assume each virtualhosts web root  is under
/var/www/virtuals/domain.name/var/www/html

I understand that current setup means apache looks in all dirs up to /var/www

So, am I assuming it is best in each  container I am
better off using a directory container like

and removing  authconfig from the /var/www

I am thinking this saves a little performance as it then only looks
for .htaccess in

/var/www/virtuals/domain.name/var/www/html
/var/www/virtuals/domain.name/var/www/html/blog/
/var/www/virtuals/domain.name/var/www/html/blog/includes


rather than going up the chain further, is that correct? 3 looks versus 8 ?


Also seeing segfaults still occasionally, no further info on that,
with 2K hosts a machine it is impossible to peruse every log trying to
track down what host/request caused it.

Also (they say things come in threes!) any comments on previous post a
few days ago re "crazy logging" :->
Thanks

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

[users@httpd] htaccess

2012-03-13 Thread Nick Edwards
Hi,
Just trying to clarify it is best to allow these in the virtualhost
root on a per domain

For instance at present we have

AllowOverride None
Options None
Require all denied


I know this is good :)

But then we have

AllowOverride AuthConfig
Options +Indexes


now assume each virtualhosts web root  is under
/var/www/virtuals/domain.name/var/www/html

I understand that current setup means apache looks in all dirs up to /var/www

So, am I assuming it is best in each  container I am
better off using a directory container like

and removing  authconfig from the /var/www

I am thinking this saves a little performance as it then only looks
for .htaccess in

/var/www/virtuals/domain.name/var/www/html
/var/www/virtuals/domain.name/var/www/html/blog/
/var/www/virtuals/domain.name/var/www/html/blog/includes


rather than going up the chain further, is that correct? 3 looks versus 8 ?


Also seeing segfaults still occasionally, no further info on that,
with 2K hosts a machine it is impossible to peruse every log trying to
track down what host/request caused it.

Also (they say things come in threes!) any comments on previous post a
few days ago re "crazy logging" :->
Thanks

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .htaccess help - restricting access to certain REMOTE_host's and redirecting others to /index.html

2011-12-19 Thread Aaron Gray
Hi,

I am really having problems understand and getting .htaccess mod_rewrite's
to work.

What I want is a site that rewrites any traffic that is not from a set
number of REMOTE_HOST's or in a set of certain files to always be
redirected to /index.html, whether they are in a subdirectory or
subdirectory or another file in root.

I was wondering whether anyone could help me out with this please.

Many thanks in advance,

Aaron


Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Lukas C. C. Hempel
Thanks a bunch that helped me figuring it out : )

Best regards from Germany!


Am 08.11.2011 um 23:06 schrieb Igor Cicimov:

> RewriteCond %{HTTP_HOST} example\.com$ [OR]
> RewriteCond %{HTTP_HOST} example\.net$
> RewriteRule ^/$ www.example.de [blabla]
> 
> Or even in one line maybe 
> RewriteCond %{HTTP_HOST} example\.(com|net)
> the rest is same
> 
> On Nov 9, 2011 8:56 AM, "Lukas C. C. Hempel"  wrote:
> yeah, but that would not forward www.example.com/test.php to 
> www.example.de/test.php, does it?
> 
> 
> Am 08.11.2011 um 22:54 schrieb Igor Cicimov:
> 
>> Or you can use VirtualHost for example.de and put example.com and 
>> example.net as Alias...
>> On Nov 9, 2011 8:51 AM, "Igor Cicimov"  wrote:
>> Are you using separate VirtualHost for each domain? If you are, and thats 
>> the way i would have done it,  then just redirect the root / of those two 
>> VirtualHost to example.de
>> On Nov 9, 2011 8:20 AM, "Lukas C. C. Hempel"  wrote:
>> Hi there,
>> 
>> I have a problem with an htaccess file.
>> 
>> I own three domains: example.com, example.de and example.net. They all refer 
>> to the same webhosting space (= alias domains).
>> 
>> What I have succeeded in is that when I enter example.com or example.de it 
>> refers to www.example.de. I did that with that entry in the .htaccess file:
>> 
>> # Enforce www
>> RewriteCond %{HTTP_HOST} !^(www) [NC]
>> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
>> 
>> 
>> What I want to add, is that when I enter www.example.com or www.example.net, 
>> I get forwarded to www.example.de? Can anyone come up with a code for that?
>> 
>> 
>> Thank you for your anticipated help.
>> 
>> Best regards,
>> 
>> Lukas
>> 
>> -
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>> 
> 



Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Igor Cicimov
RewriteCond %{HTTP_HOST} example\.com$ [OR]
RewriteCond %{HTTP_HOST} example\.net$
RewriteRule ^/$ www.example.de [blabla]

Or even in one line maybe
RewriteCond %{HTTP_HOST} example\.(com|net)
the rest is same
On Nov 9, 2011 8:56 AM, "Lukas C. C. Hempel"  wrote:

> yeah, but that would not forward www.example.com/test.php to
> www.example.de/test.php, does it?
>
>
> Am 08.11.2011 um 22:54 schrieb Igor Cicimov:
>
> Or you can use VirtualHost for example.de and put example.com and
> example.net as Alias...
>  On Nov 9, 2011 8:51 AM, "Igor Cicimov"  wrote:
>
>> Are you using separate VirtualHost for each domain? If you are, and thats
>> the way i would have done it,  then just redirect the root / of those two
>> VirtualHost to example.de
>>  On Nov 9, 2011 8:20 AM, "Lukas C. C. Hempel" 
>> wrote:
>>
>>> Hi there,
>>>
>>> I have a problem with an htaccess file.
>>>
>>> I own three domains: example.com, example.de and example.net. They all
>>> refer to the same webhosting space (= alias domains).
>>>
>>> What I have succeeded in is that when I enter example.com or example.deit 
>>> refers to
>>> www.example.de. I did that with that entry in the .htaccess file:
>>>
>>> # Enforce www
>>> RewriteCond %{HTTP_HOST} !^(www) [NC]
>>> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
>>>
>>>
>>> What I want to add, is that when I enter www.example.com or
>>> www.example.net, I get forwarded to www.example.de? Can anyone come up
>>> with a code for that?
>>>
>>>
>>> Thank you for your anticipated help.
>>>
>>> Best regards,
>>>
>>> Lukas
>>>
>>> -
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>>>
>


Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Nick Tkach
On Tue, Nov 8, 2011 at 3:19 PM, Lukas C. C. Hempel  wrote:
> Hi there,
>
> I have a problem with an htaccess file.
>
> I own three domains: example.com, example.de and example.net. They all refer 
> to the same webhosting space (= alias domains).
>
> What I have succeeded in is that when I enter example.com or example.de it 
> refers to www.example.de. I did that with that entry in the .htaccess file:
>
> # Enforce www
> RewriteCond %{HTTP_HOST} !^(www) [NC]
> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
>
>
> What I want to add, is that when I enter www.example.com or www.example.net, 
> I get forwarded to www.example.de? Can anyone come up with a code for that?
>
>
> Thank you for your anticipated help.
>
> Best regards,
>
> Lukas
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Well, so, if you don't care about the www prefix anymore, then just
change your RewriteCond (my syntax is probably not optimal) to
something like this.  It seems like all you care about here is that
the hostname contains something dot example dot something, right?
Either that or I guess if you want to list it out precisely you could
chain the conditions together to rewrite on ^*.example.de or
^*.example.com or ^*.example.net.

 RewriteCond %{HTTP_HOST} ^*.example.* [NC]
 RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]

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



Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Lukas C. C. Hempel
yeah, but that would not forward www.example.com/test.php to 
www.example.de/test.php, does it?


Am 08.11.2011 um 22:54 schrieb Igor Cicimov:

> Or you can use VirtualHost for example.de and put example.com and example.net 
> as Alias...
> On Nov 9, 2011 8:51 AM, "Igor Cicimov"  wrote:
> Are you using separate VirtualHost for each domain? If you are, and thats the 
> way i would have done it,  then just redirect the root / of those two 
> VirtualHost to example.de
> On Nov 9, 2011 8:20 AM, "Lukas C. C. Hempel"  wrote:
> Hi there,
> 
> I have a problem with an htaccess file.
> 
> I own three domains: example.com, example.de and example.net. They all refer 
> to the same webhosting space (= alias domains).
> 
> What I have succeeded in is that when I enter example.com or example.de it 
> refers to www.example.de. I did that with that entry in the .htaccess file:
> 
> # Enforce www
> RewriteCond %{HTTP_HOST} !^(www) [NC]
> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
> 
> 
> What I want to add, is that when I enter www.example.com or www.example.net, 
> I get forwarded to www.example.de? Can anyone come up with a code for that?
> 
> 
> Thank you for your anticipated help.
> 
> Best regards,
> 
> Lukas
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 



Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Igor Cicimov
Or you can use VirtualHost for example.de and put example.com and
example.net as Alias...
 On Nov 9, 2011 8:51 AM, "Igor Cicimov"  wrote:

> Are you using separate VirtualHost for each domain? If you are, and thats
> the way i would have done it,  then just redirect the root / of those two
> VirtualHost to example.de
>  On Nov 9, 2011 8:20 AM, "Lukas C. C. Hempel"  wrote:
>
>> Hi there,
>>
>> I have a problem with an htaccess file.
>>
>> I own three domains: example.com, example.de and example.net. They all
>> refer to the same webhosting space (= alias domains).
>>
>> What I have succeeded in is that when I enter example.com or example.deit 
>> refers to
>> www.example.de. I did that with that entry in the .htaccess file:
>>
>> # Enforce www
>> RewriteCond %{HTTP_HOST} !^(www) [NC]
>> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
>>
>>
>> What I want to add, is that when I enter www.example.com or
>> www.example.net, I get forwarded to www.example.de? Can anyone come up
>> with a code for that?
>>
>>
>> Thank you for your anticipated help.
>>
>> Best regards,
>>
>> Lukas
>>
>> -
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>


Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Lukas C. C. Hempel
Thanks for your promt reply. I am using the same virtualhost, i wanted to do a 
clean forwarding via the htaccess thing : )



Am 08.11.2011 um 22:51 schrieb Igor Cicimov:

> Are you using separate VirtualHost for each domain? If you are, and thats the 
> way i would have done it,  then just redirect the root / of those two 
> VirtualHost to example.de
> On Nov 9, 2011 8:20 AM, "Lukas C. C. Hempel"  wrote:
> Hi there,
> 
> I have a problem with an htaccess file.
> 
> I own three domains: example.com, example.de and example.net. They all refer 
> to the same webhosting space (= alias domains).
> 
> What I have succeeded in is that when I enter example.com or example.de it 
> refers to www.example.de. I did that with that entry in the .htaccess file:
> 
> # Enforce www
> RewriteCond %{HTTP_HOST} !^(www) [NC]
> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
> 
> 
> What I want to add, is that when I enter www.example.com or www.example.net, 
> I get forwarded to www.example.de? Can anyone come up with a code for that?
> 
> 
> Thank you for your anticipated help.
> 
> Best regards,
> 
> Lukas
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 



Re: [users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Igor Cicimov
Are you using separate VirtualHost for each domain? If you are, and thats
the way i would have done it,  then just redirect the root / of those two
VirtualHost to example.de
 On Nov 9, 2011 8:20 AM, "Lukas C. C. Hempel"  wrote:

> Hi there,
>
> I have a problem with an htaccess file.
>
> I own three domains: example.com, example.de and example.net. They all
> refer to the same webhosting space (= alias domains).
>
> What I have succeeded in is that when I enter example.com or example.deit 
> refers to
> www.example.de. I did that with that entry in the .htaccess file:
>
> # Enforce www
> RewriteCond %{HTTP_HOST} !^(www) [NC]
> RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
>
>
> What I want to add, is that when I enter www.example.com or
> www.example.net, I get forwarded to www.example.de? Can anyone come up
> with a code for that?
>
>
> Thank you for your anticipated help.
>
> Best regards,
>
> Lukas
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] htaccess: .com and .net shall go to .de

2011-11-08 Thread Lukas C. C. Hempel
Hi there,

I have a problem with an htaccess file.

I own three domains: example.com, example.de and example.net. They all refer to 
the same webhosting space (= alias domains).

What I have succeeded in is that when I enter example.com or example.de it 
refers to www.example.de. I did that with that entry in the .htaccess file:

# Enforce www
RewriteCond %{HTTP_HOST} !^(www) [NC]
RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]


What I want to add, is that when I enter www.example.com or www.example.net, I 
get forwarded to www.example.de? Can anyone come up with a code for that?


Thank you for your anticipated help.

Best regards,

Lukas

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



Re: [users@httpd] .htaccess issue in Wordpress?

2011-08-12 Thread Ganesh Viswanathan
After a lot of snooping, it is the .htaccess file or the conf file that is
causing the problem. Apologies for sending in a doubt that is irrelevant,
but if it still matters where do I take the faulty .htaccess file or the
conf file?

On Fri, Aug 12, 2011 at 7:44 PM, Mark Montague  wrote:

> On August 12, 2011 6:54 , Ganesh Viswanathan  wrote:
>
>>
>> I have a wordpress multi-site:
>>
>>
> You have posted your question to the Apache HTTP Server Users' mailing
> list.  Unfortunately, your question has nothing to do with Apache HTTP
> Server as far as I can see, and so this is the wrong place for it.  Please
> ask your question on a WordPress mailing list or support forum instead.
>
>
>  site1.local.loc [with subdomains on my local] and I would like to have
>> three pages on this.
>>
>> site1.local.loc/works - (posts page, but I want 'Works' as my title)
>>
>> site1.local.loc/about - (static page)
>>
>> site1.local.loc/contact - (static page)
>>
>> Since 'Works' is my posts page where I keep putting in content, I changed
>> my permalinks for this site to:
>>
>> /works/%postname%/
>>
>> However, when clicking on 'view post' at the end of posting anything, it
>> leads me to a '404' page which means there is a disconnect. This is also the
>> case for viewing any page.
>>
>>
> You might want to change the URL for the posts page to something that is
> not a prefix of the URLs for your permalinks and see if that affects
> anything, or not.
>
>
>  Is my .htaccess file faulty?
>>
>>
> I have no idea, you did not send it to us.  And please don't send it to us
> -- the directives you put in your .htaccess file will need to be specific to
> both WordPress' requirements and to what you are trying to do.  You should
> ask on a WordPress mailing list or support forum whether what you have in
> your .htaccess file is what WordPress needs.
>
>
>  How do I solve this? Also how do I make all my posts appear in my 'Works'
>> page (as in, how to make that page the posts page?)
>>
>>
> Ask on a WordPress mailing list or support forum.  Be sure to provide them
> all the information you provided us, and also provide them with the specific
> revision of WordPress you are running, including a list of any WordPress
> plugins and their versions, what version of Apache HTTP Server you are
> running, what version of PHP you are running and how you are running it
> (mod_php, CGI, FastCGI, etc.), any errors that appear in your Apache HTTP
> Server error log file when the error occurs, and the contents of your
> .htaccess file.
>
> --
>  Mark Montague
>  m...@catseye.org
>
>
> --**--**-
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 
> http://httpd.apache.org/**userslist.html>
> 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-h...@httpd.apache.org
>
>


Re: [users@httpd] .htaccess issue in Wordpress?

2011-08-12 Thread Mark Montague

On August 12, 2011 6:54 , Ganesh Viswanathan  wrote:


I have a wordpress multi-site:



You have posted your question to the Apache HTTP Server Users' mailing 
list.  Unfortunately, your question has nothing to do with Apache HTTP 
Server as far as I can see, and so this is the wrong place for it.  
Please ask your question on a WordPress mailing list or support forum 
instead.



site1.local.loc [with subdomains on my local] and I would like to have 
three pages on this.


site1.local.loc/works - (posts page, but I want 'Works' as my title)

site1.local.loc/about - (static page)

site1.local.loc/contact - (static page)

Since 'Works' is my posts page where I keep putting in content, I 
changed my permalinks for this site to:


/works/%postname%/

However, when clicking on 'view post' at the end of posting anything, 
it leads me to a '404' page which means there is a disconnect. This is 
also the case for viewing any page.




You might want to change the URL for the posts page to something that is 
not a prefix of the URLs for your permalinks and see if that affects 
anything, or not.




Is my .htaccess file faulty?



I have no idea, you did not send it to us.  And please don't send it to 
us -- the directives you put in your .htaccess file will need to be 
specific to both WordPress' requirements and to what you are trying to 
do.  You should ask on a WordPress mailing list or support forum whether 
what you have in your .htaccess file is what WordPress needs.



How do I solve this? Also how do I make all my posts appear in my 
'Works' page (as in, how to make that page the posts page?)




Ask on a WordPress mailing list or support forum.  Be sure to provide 
them all the information you provided us, and also provide them with the 
specific revision of WordPress you are running, including a list of any 
WordPress plugins and their versions, what version of Apache HTTP Server 
you are running, what version of PHP you are running and how you are 
running it (mod_php, CGI, FastCGI, etc.), any errors that appear in your 
Apache HTTP Server error log file when the error occurs, and the 
contents of your .htaccess file.


--
  Mark Montague
  m...@catseye.org


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



[users@httpd] .htaccess issue in Wordpress?

2011-08-12 Thread Ganesh Viswanathan
I have a wordpress multi-site:

site1.local.loc [with subdomains on my local] and I would like to have three
pages on this.

site1.local.loc/works - (posts page, but I want 'Works' as my title)

site1.local.loc/about - (static page)

site1.local.loc/contact - (static page)

Since 'Works' is my posts page where I keep putting in content, I changed my
permalinks for this site to:

/works/%postname%/

However, when clicking on 'view post' at the end of posting anything, it
leads me to a '404' page which means there is a disconnect. This is also the
case for viewing any page. Is my .htaccess file faulty?

How do I solve this? Also how do I make all my posts appear in my 'Works'
page (as in, how to make that page the posts page?)

Thanks!


Re: [users@httpd] htaccess hell

2011-06-15 Thread Ian Zimmerman
On Wed, 15 Jun 2011 21:22:28 +0200
Jeroen Geilman  wrote:

Ian> >  UserDir public_html
Ian> >  UserDir disabled root
Ian> >
Ian> >  
Ian> >  AllowOverride FileInfo AuthConfig Limit Indexes
Ian> >  Options MultiViews Indexes SymLinksIfOwnerMatch 
IncludesNoExec
Ian> >  
Ian> >  Order allow,deny
Ian> >  Allow from all
Ian> >  
Ian> >  
Ian> >  Order deny,allow
Ian> >  Deny from all
Ian> >  
Ian> >  
Ian> > 
Ian> >

Jeroen> urgh

Well, as I wrote, this is the unchanged configuration from Debian.  If I
have to change it I might as well configure all the authentication there
and not bother with .htaccess files.  (I know that works, BTW.)  The
idea was to avoid editing the original configuration as much as
possible.

Ian> > Document root is configured as follows:
Ian> >
Ian> >  

Jeroen> No. Nonononononononono.  A Documentroot MUST point to a physical
Jeroen> filesystem .

I misspoke.  There is a normal DocumentRoot definition elsewhere in the
file which does point to a physical directory, namely /var/www.  I just
meant to say this is how I configured the authentication for /.  See
below why I thought this was preferable.

Ian> >  Options Indexes FollowSymLinks MultiViews
Ian> >  AuthType Basic
Ian> >  AuthName "Root Realm"
Ian> >  AuthBasicProvider file
Ian> >  AuthUserFile /etc/apache2/passwd
Ian> >  Require valid-user
Ian> >  Order allow,deny
Ian> >  allow from all
Ian> >  
Ian> >
Ian> > Now, I try to override the auth settings in a subtree of my
Ian> > ~/public_html by putting a .htaccess file there, which reads as follows:

Jeroen> Authentication SHOULD always be done on physical files if possible.
Jeroen> This prevents people bypassing it by using an alternate URL.

I get this point to a degree.  Still, before diving in I'd like to
understand _why_ it fails as it is.  Is it that all the Location info is
applied after all the physical (and htaccess) info and overrides the
latter?

And if I do as you say, it looks like I'd need 2 htaccess files, an
extra one for the top of my public_html, since it won't be covered by
whatever is set for /var/www.  Correct?  And I'll also need to
separately define authentication for all aliases like /usr/share/doc if
I want them covered.  Right?  This is what I was trying to avoid by putting
the Auth stuff in the  block.

-- 
Ian Zimmerman
gpg public key: 1024D/C6FF61AD 
fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
Rule 420: All persons more than eight miles high to leave the court.

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



Re: [users@httpd] htaccess hell

2011-06-15 Thread Jeroen Geilman

On 06/15/2011 08:56 PM, Ian Zimmerman wrote:

I (or rather my distro) enabled userdir as follows:

LoadModule userdir_module /usr/lib/apache2/modules/mod_userdir.so




urgh

 UserDir public_html
 UserDir disabled root

 
 AllowOverride FileInfo AuthConfig Limit Indexes


Don't allow Limit overrides here.


 Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
 
 Order allow,deny
 Allow from all
 
 
 Order deny,allow
 Deny from all
 


Exactly the same thing twice. Use LimitExcept.


 


Document root is configured as follows:

 


No. Nonononononononono.

A Documentroot MUST point to a physical filesystem .


 Options Indexes FollowSymLinks MultiViews
 AuthType Basic
 AuthName "Root Realm"
 AuthBasicProvider file
 AuthUserFile /etc/apache2/passwd
 Require valid-user
 Order allow,deny
 allow from all
 

Now, I try to override the auth settings in a subtree of my
~/public_html by putting a .htaccess file there, which reads as follows:



Authentication SHOULD always be done on physical files if possible.
This prevents people bypassing it by using an alternate URL.



AuthType Basic
AuthName "My Personal Space"
AuthUserFile /etc/apache2/passwd
Require User itz

Yet, no matter how many hairs I pull, when I GET anything under that
subtree, I'm asked to authenticate for "Root Realm".



Fix the above first, it will be obvious then.



I know that the .htaccess file is getting read, because when I drop
garbage there I get a server error upon loading that page.  So somehow
the AuthName directive in the .htaccess is getting ignored.  Why??
AllowOverride seems to allow it.

Version info:

  [8]ahiker:~$ dpkg --status apache2
Package: apache2
Status: install ok installed
Priority: optional
Section: httpd
Installed-Size: 36
Maintainer: Debian Apache Maintainers
Architecture: i386
Version: 2.2.16-6+squeeze1




--
J.


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



[users@httpd] htaccess hell

2011-06-15 Thread Ian Zimmerman
I (or rather my distro) enabled userdir as follows:

LoadModule userdir_module /usr/lib/apache2/modules/mod_userdir.so


UserDir public_html
UserDir disabled root


AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny
Allow from all


Order deny,allow
Deny from all




Document root is configured as follows:


Options Indexes FollowSymLinks MultiViews
AuthType Basic
AuthName "Root Realm"
AuthBasicProvider file
AuthUserFile /etc/apache2/passwd
Require valid-user
Order allow,deny
allow from all


Now, I try to override the auth settings in a subtree of my
~/public_html by putting a .htaccess file there, which reads as follows:

AuthType Basic
AuthName "My Personal Space"
AuthUserFile /etc/apache2/passwd
Require User itz

Yet, no matter how many hairs I pull, when I GET anything under that
subtree, I'm asked to authenticate for "Root Realm".

I know that the .htaccess file is getting read, because when I drop
garbage there I get a server error upon loading that page.  So somehow
the AuthName directive in the .htaccess is getting ignored.  Why??
AllowOverride seems to allow it.

Version info:

 [8]ahiker:~$ dpkg --status apache2
Package: apache2
Status: install ok installed
Priority: optional
Section: httpd
Installed-Size: 36
Maintainer: Debian Apache Maintainers 
Architecture: i386
Version: 2.2.16-6+squeeze1

-- 
Ian Zimmerman
gpg public key: 1024D/C6FF61AD 
fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
Rule 420: All persons more than eight miles high to leave the court.

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



Re: [users@httpd] .htaccess

2011-06-09 Thread dhottinger

Quoting Mark Montague :


 On June 8, 2011 15:50 , dhottin...@harrisonburg.k12.va.us wrote:
I currently use .htaccess to prompt for username and password and   
point it to an ldap database running on my mailserver.  Im   
considering moving all my mail accounts to gmail.  Does anyone know  
 if it is possible to authenticate with .htaccess pointing to gmail  
 for info?


It might be better to have your web application (WordPress, Drupal,
whatever) authenticate the user via OAuth2 or OpenID using the user's
Google account, instead of having Apache authenticate the user.  I have
successfully done this, and can vouch that it works.

If you are only serving static content (that is, if you are not running
a web application) or if you have another reason to want Apache HTTP
Server to do the authentication itself, then take a look at
mod_auth_openid.  I have never tried using it myself, so I don't know
if it will meet your needs or not.  See
http://findingscience.com/mod_auth_openid/   Keep in mind that this
will allow anyone to whom Google has issued credentials to
authenticate; you'll likely need to add some sort of authorization in
order to restrict access to the subset of authenticated users who you
actually wish to grant access to.

A pedantic point:  .htaccess does not "authenticate" anything, it's
just an alternative way of specifying configuration directives, as
opposed to requiring all configuration directives to be in the main
configuration file (e.g., httpd.conf).  If you specify authentication
directives in .htaccess, it is actually httpd that performs the
requested authentication.

--
  Mark Montague
  m...@catseye.org


Thanks Mark.  I appreciate the info.  I also realize that apache isnt  
authenticating, thanks for the pointer there.


as always very appreciative of any help,
ddh

--
Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools

"Everything should be made as simple as possible, but not simpler."
-- Albert Einstein

"The hottest places in Hell are reserved for those who, in times of moral
crisis, preserved their neutrality."
-- Dante


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



Re: [users@httpd] .htaccess

2011-06-08 Thread Mark Montague

 On June 8, 2011 16:01 , Jeroen Geilman   wrote:

On 06/08/2011 09:50 PM, dhottin...@harrisonburg.k12.va.us wrote:
I currently use .htaccess to prompt for username and password and 
point it to an ldap database running on my mailserver.  Im 
considering moving all my mail accounts to gmail.  Does anyone know 
if it is possible to authenticate with .htaccess pointing to gmail 
for info?


gmail will not expose authentication procedures to the outside world.

This would be quite silly.



Why would it be silly?

Please see http://code.google.com/apis/accounts/docs/GettingStarted.html

--
  Mark Montague
  m...@catseye.org


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



Re: [users@httpd] .htaccess

2011-06-08 Thread Nick Kew

On 8 Jun 2011, at 21:01, Jeroen Geilman wrote:

> On 06/08/2011 09:50 PM, dhottin...@harrisonburg.k12.va.us wrote:
>> I currently use .htaccess to prompt for username and password and point it 
>> to an ldap database running on my mailserver.  Im considering moving all my 
>> mail accounts to gmail.  Does anyone know if it is possible to authenticate 
>> with .htaccess pointing to gmail for info?
>> 
>> thanks,
>> 
>> ddh
>> 
>> 
> 
> gmail will not expose authentication procedures to the outside world.
> 
> This would be quite silly.

Doesn't gmail fall within the bundle of google services that use - and give you 
- OpenID?

If so, you could ask your server admin whether they'd consider using the 
third-party
OpenID authentication module with Apache.

-- 
Nick Kew

Available for work, contract or permanent
http://www.webthing.com/~nick/cv.html


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



Re: [users@httpd] .htaccess

2011-06-08 Thread Mark Montague

 On June 8, 2011 15:50 , dhottin...@harrisonburg.k12.va.us wrote:
I currently use .htaccess to prompt for username and password and 
point it to an ldap database running on my mailserver.  Im considering 
moving all my mail accounts to gmail.  Does anyone know if it is 
possible to authenticate with .htaccess pointing to gmail for info?


It might be better to have your web application (WordPress, Drupal, 
whatever) authenticate the user via OAuth2 or OpenID using the user's 
Google account, instead of having Apache authenticate the user.  I have 
successfully done this, and can vouch that it works.


If you are only serving static content (that is, if you are not running 
a web application) or if you have another reason to want Apache HTTP 
Server to do the authentication itself, then take a look at 
mod_auth_openid.  I have never tried using it myself, so I don't know if 
it will meet your needs or not.  See 
http://findingscience.com/mod_auth_openid/   Keep in mind that this will 
allow anyone to whom Google has issued credentials to authenticate; 
you'll likely need to add some sort of authorization in order to 
restrict access to the subset of authenticated users who you actually 
wish to grant access to.


A pedantic point:  .htaccess does not "authenticate" anything, it's just 
an alternative way of specifying configuration directives, as opposed to 
requiring all configuration directives to be in the main configuration 
file (e.g., httpd.conf).  If you specify authentication directives in 
.htaccess, it is actually httpd that performs the requested authentication.


--
  Mark Montague
  m...@catseye.org


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



Re: [users@httpd] .htaccess

2011-06-08 Thread Jeroen Geilman

On 06/08/2011 09:50 PM, dhottin...@harrisonburg.k12.va.us wrote:
I currently use .htaccess to prompt for username and password and 
point it to an ldap database running on my mailserver.  Im considering 
moving all my mail accounts to gmail.  Does anyone know if it is 
possible to authenticate with .htaccess pointing to gmail for info?


thanks,

ddh




gmail will not expose authentication procedures to the outside world.

This would be quite silly.


--
J.


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



[users@httpd] .htaccess

2011-06-08 Thread dhottinger
I currently use .htaccess to prompt for username and password and  
point it to an ldap database running on my mailserver.  Im considering  
moving all my mail accounts to gmail.  Does anyone know if it is  
possible to authenticate with .htaccess pointing to gmail for info?


thanks,

ddh


--
Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools

"Everything should be made as simple as possible, but not simpler."
-- Albert Einstein

"The hottest places in Hell are reserved for those who, in times of moral
crisis, preserved their neutrality."
-- Dante


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



Re: [users@httpd] Htaccess Help

2011-04-26 Thread Matt
> 
> allow from all
> 


So would it be:

order allow,deny
allow from x.x.x.0/24

allow from all


Or does it matter which comes first?

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



Re: [users@httpd] Htaccess Help

2011-04-26 Thread Eric Covener
On Tue, Apr 26, 2011 at 12:56 PM, Matt  wrote:
> I have an .htaccess file like so.
>
> order allow,deny
>
> allow from x.x.x.0/24
>
> I have this in my root html directory and it works fine.  Only allows
> access by the x.x.x.0/24 subnet.  Thing is I have one file
> ~"siteinfo.html" that I want to allow anyone to access.  How would I
> do that?


allow from all

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



-- 
Eric Covener
cove...@gmail.com

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



[users@httpd] Htaccess Help

2011-04-26 Thread Matt
I have an .htaccess file like so.

order allow,deny

allow from x.x.x.0/24

I have this in my root html directory and it works fine.  Only allows
access by the x.x.x.0/24 subnet.  Thing is I have one file
~"siteinfo.html" that I want to allow anyone to access.  How would I
do that?

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



[users@httpd] htaccess is blocking cookie transmission

2011-03-07 Thread Tim Johnson
I have an internal site at the following file path:
/home/http/kbmls/ and since /home/http is the document root, the
site is referenced as follows: http://bart.johnson.com/kbmls.
bart.johnson.com is my internal domain (locally resolved host).

The default page is kbmlsLoader.py, which is symlinked from
/home/tim/prj/cgi/baker/kbmls so that I can used both traditional
cgi and a 'clean URL'.

I find that the cookie set by the first request to the site
http://bart.johnson.com/kbmls is not being transmitted. IOWS: A
check for the cookie on a second request does not find it, even
though I can verify that the cookie is set on my system.

It is likely that something is wrong with my .htaccess file
Code:

AcceptPathInfo On
Options +ExecCGI
AddHandler cgi-script py
DirectoryIndex kbmlsLoader.py 
RewriteEngine on
RewriteBase /kbmls
RewriteCond %{HTTP_COOKIE} lang=([^;]+) [NC]
RewriteRule ^(.*)$ /$1?lang=%1 [NC,L,QSA]
RewriteCond $1
!^(kbmlsLoader\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./kbmlsLoader.py/$1 [L,QSA]


What am I doing wrong?
thanks
tim
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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



RE: [users@httpd] htaccess help

2005-07-04 Thread Boyle Owen
> -Original Message-
> From: Michael [mailto:[EMAIL PROTECTED]
> Sent: Freitag, 1. Juli 2005 16:58
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] htaccess help
> 
> 
> My www root is /www/html.Then I have only one .htaccess and its in 
> /www/html/admin. There is bunch of subfolders in admin. The 
> admin folder is 
> for phpMyAdmin so i think it has all necessary files included in that 
> folder. The only other thing i can think of is the connection 
> to db. I 
> followed instructions on how to install phpMyadmin and its 
> working fine but 

The is the first time you mentioned phpMyAdmin...

Are you using phpMyAdmin's own authentication mechanism? If so, you can't use 
the normal apache authentication as well. 

Try:

- kill all browsers (to make sure cache is clear)
- remove the .htaccess file
- restart apache
- open a browser
- access the phpMyAdmin directory

Do you get the phpMyAdmin log in? (ie, not the apache login)?

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


> i just want to add user authentication to that. Moreover, 
> when the auth 
> window popsup, I have to enter user name & passw only first 
> time the next 3 
> times i can click cancel and it will still proceed with loading.
> 
> - Original Message - 
> From: "Boyle Owen" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, July 01, 2005 10:34 AM
> Subject: RE: [EMAIL PROTECTED] htaccess help
> 
> 
> > -Original Message-
> > From: Michael [mailto:[EMAIL PROTECTED]
> > Sent: Freitag, 1. Juli 2005 15:28
> > To: users@httpd.apache.org
> > Subject: Re: [EMAIL PROTECTED] htaccess help
> >
> >
> > The apache ver i have is Apache 2.0.40 runing on Red Hat 9.2.
> > I wasnt clear enough my bad. I type in the address of the
> > folder i want to
> > protect in the browser. Then the wuthentication window pops
> > up. I enter the
> > user and passwd info hit OK and more than half of the page
> > loads up and
> > authentication window pops up again. So, I enter the
> > user&passwd again and
> > then the rest of the page loads up.
> 
> So it looks like you have content on the page (eg images) 
> which are also in 
> a .htaccess protected directory.
> 
> To Explain:
> 
> If your docroot is /home/html for example and then you have a 
> .htaccess file 
> in /home/html/dir1 then when you go to 
> http://server-name/dir1/page.html you 
> will get a password popup - fine.
> 
> But if page.html has an image in it like 
> src="/images/pic.gif", then the 
> browser will make a new request for 
> http://server-name/images/pic.gif and 
> apache will look in /home/html/images to find pic.gif. 
> BUT if you have 
> another .htaccess file in this directory, apache will throw a 
> 401 and the 
> browser will popup a second window!
> 
> So generally, if you have any content (gifs etc) in a 
> password protected 
> page, make sure it is either found in the same directory (so 
> under the same 
> password realm) or that it is in an unprotected directory.
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
> 
> >I set in httpd.conf for
> > the web root dir
> > AllowOverride all and this is my .htaccess:
> > AuthUserFile /var/www/passwd/.htpasswd
> > AuthGroupFile /dev/null
> > AuthName EnterPassword
> > AuthType Basic
> > require user aaa
> 
> PS - nothing wrong with the .htaccess file - the problem is 
> that you have 
> too many of them!
> 
> >
> >
> > - Original Message - 
> > From: "Boyle Owen" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Friday, July 01, 2005 2:46 AM
> > Subject: RE: [EMAIL PROTECTED] htaccess help
> >
> >
> > Plain text please...
> >
> > Couple of possibilities:
> >
> > - you have a wrong username/password: If you get it wrong the
> > browser will
> > pop up the window again ad infinitum. Check carefully and
> > remember case is
> > important (in fact, create a new account in the password file
> > with user=aaa
> > and password=aaa - all lower-case so you don't make any mistakes).
> >
> > - you are nesting authentication realms: You can only have
> > one layer of
> > authentication in HTTP. So if you have a password on dir1,
> > you can't have
> > another password on dir1/subdir. Check you're not doing this.
> >
> > BTW, as well as posting in plain text, it's useful if you
> > tell us your
> > apache version and OS, at least.
> >
> > Rgds,
> > Owen Boyle
> > Disclaimer: Any disclaimer attached to this message may be ignored.
> >
> >
> > -Original Message-
> > From: Michael [mailto:[EMAIL PROTECTED]
> > Sent: Donnerstag, 30. Juni 2005 21:24
> > To: users@httpd.apache.org
> > Subject: [EMAIL PROTECTED] htaccess help
> >
> >
> > Hey everyone
> > I have problem with htaccess. The problem is that i put
> > htaccess in one of
> > my dirs on the server and when i request that dir it pops
> > authentication
> > window which i intendet to have but then when i type user and
> > passw it keeps
> > on poping authentication window. I kn

Re: [users@httpd] htaccess help

2005-07-01 Thread Michael
My www root is /www/html.Then I have only one .htaccess and its in 
/www/html/admin. There is bunch of subfolders in admin. The admin folder is 
for phpMyAdmin so i think it has all necessary files included in that 
folder. The only other thing i can think of is the connection to db. I 
followed instructions on how to install phpMyadmin and its working fine but 
i just want to add user authentication to that. Moreover, when the auth 
window popsup, I have to enter user name & passw only first time the next 3 
times i can click cancel and it will still proceed with loading.


- Original Message - 
From: "Boyle Owen" <[EMAIL PROTECTED]>

To: 
Sent: Friday, July 01, 2005 10:34 AM
Subject: RE: [EMAIL PROTECTED] htaccess help



-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Freitag, 1. Juli 2005 15:28
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] htaccess help


The apache ver i have is Apache 2.0.40 runing on Red Hat 9.2.
I wasnt clear enough my bad. I type in the address of the
folder i want to
protect in the browser. Then the wuthentication window pops
up. I enter the
user and passwd info hit OK and more than half of the page
loads up and
authentication window pops up again. So, I enter the
user&passwd again and
then the rest of the page loads up.


So it looks like you have content on the page (eg images) which are also in 
a .htaccess protected directory.


To Explain:

If your docroot is /home/html for example and then you have a .htaccess file 
in /home/html/dir1 then when you go to http://server-name/dir1/page.html you 
will get a password popup - fine.


But if page.html has an image in it like src="/images/pic.gif", then the 
browser will make a new request for http://server-name/images/pic.gif and 
apache will look in /home/html/images to find pic.gif. BUT if you have 
another .htaccess file in this directory, apache will throw a 401 and the 
browser will popup a second window!


So generally, if you have any content (gifs etc) in a password protected 
page, make sure it is either found in the same directory (so under the same 
password realm) or that it is in an unprotected directory.


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


I set in httpd.conf for
the web root dir
AllowOverride all and this is my .htaccess:
AuthUserFile /var/www/passwd/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require user aaa


PS - nothing wrong with the .htaccess file - the problem is that you have 
too many of them!





- Original Message - 
From: "Boyle Owen" <[EMAIL PROTECTED]>

To: 
Sent: Friday, July 01, 2005 2:46 AM
Subject: RE: [EMAIL PROTECTED] htaccess help


Plain text please...

Couple of possibilities:

- you have a wrong username/password: If you get it wrong the
browser will
pop up the window again ad infinitum. Check carefully and
remember case is
important (in fact, create a new account in the password file
with user=aaa
and password=aaa - all lower-case so you don't make any mistakes).

- you are nesting authentication realms: You can only have
one layer of
authentication in HTTP. So if you have a password on dir1,
you can't have
another password on dir1/subdir. Check you're not doing this.

BTW, as well as posting in plain text, it's useful if you
tell us your
apache version and OS, at least.

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


-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 30. Juni 2005 21:24
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] htaccess help


Hey everyone
I have problem with htaccess. The problem is that i put
htaccess in one of
my dirs on the server and when i request that dir it pops
authentication
window which i intendet to have but then when i type user and
passw it keeps
on poping authentication window. I know it does ask me for
user and passwd
for every single thing its loading but how can i configure it
so that it
asks me once for that dir and thats it and loads up
everything in that dir
???
Diese E-mail ist eine private und persönliche Kommunikation.
Sie hat keinen
Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe.
This e-mail is of
a private and personal nature. It is not related to the
exchange or business
activities of the SWX Group. Le présent e-mail est un message
privé et
personnel, sans rapport avec l'activité boursière du Groupe SWX.


This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any
mistransmission. If
you receive this message in error, please notify the sender
urgently and
then immediately delete the message and any copies of it from
your system.
Please also immediately destroy any hardcopies of the
message. You must not,
directly or indirectly, use, disclose, distribute, print, or
copy any part
of this message i

  1   2   >