[us...@httpd] Apache/2.2.13 complains Session Cache is not configured [hint: SSLSessionCache]
Dear list, I have found a strange problem and also searched google but till no solution worked for me. I hope I get some direction here. This is a newly installed opensuse 11.2 box. Having apache `` Server version: Apache/2.2.13 (Linux/SUSE) Server built: Apr 13 2010 16:28:17 ` and php ``` PHP 5.3.2 (cli) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Suhosin v0.9.31, Copyright (c) 2007-2010, by SektionEins GmbH ``` If I start/restart apache , the web-server does not come and the /var/log/apache2/error_log shows [Tue Jul 20 04:04:20 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Tue Jul 20 04:04:20 2010] [notice] Apache/2.2.13 (Linux/SUSE) PHP/5.3.2 mod_ssl/2.2.13 OpenSSL/0.9.8k configured -- resuming normal operations [Tue Jul 20 04:08:34 2010] [notice] caught SIGTERM, shutting down [Tue Jul 20 04:08:34 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Tue Jul 20 04:08:34 2010] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT' [Tue Jul 20 04:08:34 2010] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT' [Tue Jul 20 04:08:34 2010] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT' [Tue Jul 20 04:08:34 2010] [notice] Apache/2.2.13 (Linux/SUSE) PHP/5.3.2 mod_ssl/2.2.13 OpenSSL/0.9.8k configured -- resuming normal operations [Tue Jul 20 04:08:34 2010] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT' [Tue Jul 20 04:08:34 2010] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT' `` The modules already activated are ( by apache2ctl -M ) ``` Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_default_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) dir_module (shared) env_module (shared) expires_module (shared) include_module (shared) log_config_module (shared) mime_module (shared) negotiation_module (shared) setenvif_module (shared) userdir_module (shared) php5_module (shared) ssl_module (shared) apparmor_module (shared) `` I have one opensuse 11.1 and 10.2 box also, but there is no such error. Is something missing here ? Kindly suggest. thanks - 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
[us...@httpd] apache problem after replacing hard disk
Hello list, I have found a strange problem in a server after replacing hard disk from raid1 array. This is a opensuse 11.2 server. Two 500GB HDD ae there in raid array. /dev/sda has been replaced due to hardware problem. The new disk has been added into the array successfully. Everything is normal except apache. sometimes apache stops working though the instance is running and can be seen from "ps -e" but only restart of apache makes it back. I have flipped through the apache error log and found the following. Could anyone suggest what is going wrong after replacing the disk ? ``` [Sat Aug 14 00:15:15 2010] [notice] child pid 17570 exit signal Segmentation fault (11) [Sat Aug 14 00:15:15 2010] [notice] child pid 17571 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17572 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17573 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17574 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17575 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17576 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17577 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17578 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17579 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17580 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17581 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17582 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17583 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17584 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17585 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17587 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17588 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17589 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17590 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17591 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17592 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17593 exit signal Segmentation fault (11) [Sat Aug 14 00:15:16 2010] [notice] child pid 17594 exit signal Segmentation fault (11) [Sat Aug 14 00:15:18 2010] [notice] child pid 17595 exit signal Segmentation fault (11) [Sat Aug 14 00:15:18 2010] [notice] child pid 17596 exit signal Segmentation fault (11) [Sat Aug 14 00:15:18 2010] [notice] child pid 17597 exit signal Segmentation fault (11) [Sat Aug 14 00:15:18 2010] [notice] child pid 17598 exit signal Segmentation fault (11) ` Thanks - 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] a complex .htaccess redirect question
Hello list, How can I append .html in-between a link ? For example http://www.mydomain.com/en/page?artId=1234 should redirected to http://www.mydomain.com/en/page.html?artId=1234 page1?artId=1234 needs to be redirected as page1.html?artId=1234 How can I achieve this through .htaccesss ? I have already tested with ``` RewriteRule ^page$ $1.html [L] `` But no success !!! - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] a complex .htaccess redirect question
On Mon, 17 Sep 2012 06:40:05 -0400 Eric Covener wrote: > On Mon, Sep 17, 2012 at 6:36 AM, wrote: > > Hello list, > > > > How can I append .html in-between a link ? > > > > For example http://www.mydomain.com/en/page?artId=1234 should redirected > > to > > > > http://www.mydomain.com/en/page.html?artId=1234 > > > > page1?artId=1234 needs to be redirected as page1.html?artId=1234 > > > > How can I achieve this through .htaccesss ? > > > > I have already tested with > > > > ``` > > RewriteRule ^page$ $1.html [L] > > You need to capture something with () to use $1. > Thanks, Based on your suggestion, I have ttried with ? as per the the links. So now the rule is RewriteRule ^page(?)$ $1.html [L] But the link still appears with out .html like http://www.mydomain.com/en/page?artId=1234 - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] a complex .htaccess redirect question
On Mon, 17 Sep 2012 13:05:38 +0200 Mathijs wrote: > If all you want is for http://www.mydomain.com/en/page?artId=1234 to be > handled by page.html, then enabling MultiViews might be a much easier > solution then bringing in the beast that is mod_rewrite. > I don't know if MultiViews is the exact solution for what I like to do. My original link is http://www.mydomain.com/en/page?artId=1234 and I like to redirect it at http://www.mydomain.com/en/page.html?artId=1234 page?artId=1234 needs to be redirected as page.html?artId=1234 > MultiViews basically extends the requested URI to possible matches (content > negotiation), if the initial request would result in a 404 error. For more > information, see the MultiViews paragraph on this page > https://httpd.apache.org/docs/current/content-negotiation.html#negotiation > > On Mon, Sep 17, 2012 at 1:00 PM, wrote: > > > On Mon, 17 Sep 2012 06:40:05 -0400 > > Eric Covener wrote: > > > > > On Mon, Sep 17, 2012 at 6:36 AM, wrote: > > > > Hello list, > > > > > > > > How can I append .html in-between a link ? > > > > > > > > For example http://www.mydomain.com/en/page?artId=1234 should > > redirected to > > > > > > > > http://www.mydomain.com/en/page.html?artId=1234 > > > > > > > > page1?artId=1234 needs to be redirected as page1.html?artId=1234 > > > > > > > > How can I achieve this through .htaccesss ? > > > > > > > > I have already tested with > > > > > > > > ``` > > > > RewriteRule ^page$ $1.html [L] > > > > > > You need to capture something with () to use $1. > > > > > Thanks, > > > > Based on your suggestion, I have ttried with ? as per the the links. So > > now the rule is > > > > RewriteRule ^page(?)$ $1.html [L] > > > > But the link still appears with out .html like > > http://www.mydomain.com/en/page?artId=1234 > > > > - > > 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 {QUERY_STRING} and issue with append a value
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
Re: [users@httpd] .htaccess {QUERY_STRING} and issue with append a value
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
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
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
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
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
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 >> >
[users@httpd] Fwd: apache hosting unknown sites !!!
Dear list, I have found a strange issue in a newly configured opensuse 13.1 server. This is a dedicated root server where ssh is running on different port than default and ssh root login is disabled. I have configured apache and also few vhosts which are running well. I have also installed varnish for caching. All are running without any issue. Suddenly I find from apache access.log that some unknown sites are hosted from this server. tv-house.ru , world-hdtv.ru ... etc I am clue less. I have stopped apache still those sites are active, uninstall varnish, shutdown the server, still those sites are active. After rebooting the server and activating apache , again the apache log shows; request to those domain actually coming to this server. I blocked the domain through iptables. Now the access log shows a lot of 408 147.45.64.140 - - [16/Apr/2014:11:26:44 +0200] "-" 408 - "-" "-" 176.8.100.50 - - [16/Apr/2014:11:26:59 +0200] "GET /tracker/scrape?info_hash=U%5C%01%04%94%C6%83JV%143eL%B4%FD%5D%AD%D5%5B%E9 HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_38" 217.118.78.101 - - [16/Apr/2014:11:27:09 +0200] "-" 408 - "-" "-" 178.67.223.237 - - [16/Apr/2014:11:27:25 +0200] "GET /tracker/scrape?info_hash=%A78V98%CD%27%14%A9%5C%29U%9F%D6%04t%2F%80gX HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_38" 194.107.23.1 - - [16/Apr/2014:11:27:28 +0200] "-" 408 - "-" "-" 178.89.208.29 - - [16/Apr/2014:11:27:31 +0200] "GET /tracker/scrape?info_hash=%E5%D0%15%7E%1D%C5%29%1B%BB%E8%C1M%B6%1E%ACA0%9D8%81 HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_25" 83.146.115.146 - - [16/Apr/2014:11:27:33 +0200] "GET /tracker/scrape?info_hash=U%5C%01%04%94%C6%83JV%143eL%B4%FD%5D%AD%D5%5B%E9 HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_31" 147.45.64.140 - - [16/Apr/2014:11:27:36 +0200] "-" 408 - "-" "-" 213.87.137.123 - - [16/Apr/2014:11:27:57 +0200] "-" 408 - "-" "-" 178.161.132.98 - - [16/Apr/2014:11:28:20 +0200] "-" 408 - "-" "-" 80.80.205.109 - - [16/Apr/2014:11:28:30 +0200] "GET /tracker/scrape?info_hash=%B6%0Dg%EC%24%0Frw%8A%0D%ADo%D1%86Z%C4J%0A%1D%7C HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_30" 178.123.206.189 - - [16/Apr/2014:11:28:53 +0200] "GET /tracker/scrape?info_hash=%7F%98%05%BA%40%DB%ADo%1E%DD%D1%0BSL%0C%16%9DT%0D%BE HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_38" Could any any familiar with this behaviour ? Any fix to this strange issue ? Thanks
Re: [users@httpd] Fwd: apache hosting unknown sites !!!
Hello respondents, Thanks to all of you for your responses. I'm explaining the points which you have asked. 1. The requests are not available at log because I have blocked the .ru domains at firewall level. Let me disable the firewall to generate the logs for you 95.139.226.205 - - [17/Apr/2014:07:26:39 +0200] "-" 408 - "-" "-" 109.188.125.110 - - [17/Apr/2014:07:27:03 +0200] "GET /Uizz9n HTTP/1.1" 301 - "http://www.tv-house.ru/detail/200/5347"; "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; ASU2JS; rv:11.0) like Gecko" 109.188.125.110 - - [17/Apr/2014:07:27:04 +0200] "GET /index.php?id=16&no_cache=1 HTTP/1.1" 200 9009 " http://www.tv-house.ru/detail/200/5347"; "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; ASU2JS; rv:11.0) like Gecko" 109.191.88.164 - - [17/Apr/2014:07:27:13 +0200] "GET /index.php?id=16&no_cache=1 HTTP/1.1" 200 9009 "-" "libtorrent/0.16.10.0" 109.188.125.110 - - [17/Apr/2014:07:27:16 +0200] "GET /index.php?id=16&no_cache=1 HTTP/1.1" 200 9009 " http://www.tv-house.ru/catalog/29/200/31/"; "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; ASU2JS; rv:11.0) like Gecko" Though the ping commands shows a different IP than this server ping www.tv-house.ru PING www.tv-house.ru (90.156.201.67) 56(84) bytes of data. 64 bytes from fe.shared.masterhost.ru (90.156.201.67): icmp_seq=1 ttl=56 time=55.1 ms 64 bytes from fe.shared.masterhost.ru (90.156.201.67): icmp_seq=2 ttl=56 time=55.1 ms 64 bytes from fe.shared.masterhost.ru (90.156.201.67): icmp_seq=3 ttl=56 time=55.1 ms 2. I am not hosting any torrent. Though you can see the request 109.191.88.164 - - [17/Apr/2014:07:27:13 +0200] "GET /index.php?id=16&no_cache=1 HTTP/1.1" 200 9009 "-" "libtorrent/0.16.10.0" 3. the sites are even live after shutting down the server. 4. Even after blocking the requested unknown domains I see a lot of following at access log 109.191.88.164 - - [17/Apr/2014:07:30:38 +0200] "GET /tracker/?info_hash=%8f%8d%98%b3%3dg%09RrefU%eep%bb%a7%bf%bf%1a%da&peer_id=-IL500%ad-o6JhUN9!EA.n&port=6881&uploaded=0&downloaded=0&left=7978279&corrupt=0&redundant=0&compact=1&numwant=200&key=48fb945&no_peer_id=1&supportcrypto=1&event=started&ipv4=109.191.88.164 HTTP/1.1" 301 - "-" "libtorrent/0.16.10.0" 109.191.88.164 - - [17/Apr/2014:07:30:38 +0200] "GET /index.php?id=16&no_cache=1 HTTP/1.1" 200 9009 "-" "libtorrent/0.16.10.0" 95.31.97.94 - - [17/Apr/2014:07:30:44 +0200] "-" 408 - "-" "-" 188.64.112.228 - - [17/Apr/2014:07:30:55 +0200] "-" 408 - "-" "-" 109.188.125.110 - - [17/Apr/2014:07:31:12 +0200] "-" 408 - "-" "-" 188.64.112.228 - - [17/Apr/2014:07:31:26 +0200] "-" 408 - "-" "-" 178.123.127.195 - - [17/Apr/2014:07:31:59 +0200] "GET /tracker/scrape?info_hash=%7F%98%05%BA%40%DB%ADo%1E%DD%D1%0BSL%0C%16%9DT%0D%BE HTTP/1.1" 301 - "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_38" 178.123.127.195 - - [17/Apr/2014:07:31:59 +0200] "GET /index.php?id=16&no_cache=1 HTTP/1.1" 200 9009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_38" Thanks On Wed, Apr 16, 2014 at 10:39 PM, Jim Barchuk wrote: > HiHi! > > My first thought was that a -spammer- had -misconfigured- something, to > point a 'spam target domain name' to your IP address. But those domains are > registered '06/'07 which is not typical of spam targets, and they appear to > be reputable. > > Before I go further, a little more info. You mentioned... > > > tv-house.ru , world-hdtv.ru ... etc I am clue less. >> > > and then... > > > 147.45.64.140 - - [16/Apr/2014:11:26:44 +0200] "-" 408 - "-" "-" >> 176.8.100.50 - - [16/Apr/2014:11:26:59 +0200] "GET >> /tracker/scrape?info_hash=U%5C%01%04%94%C6%83JV%143eL%B4% >> FD%5D%AD%D5%5B%E9 >> HTTP/1.1" 500 1009 "-" "Zona 1.0.4.5;Windows 7;Java 1.6.0_38" >> > > 408 is very weird. I didn't even know what it meant, had to look it up, > and still don't fully understand what it means, potentially, as related to > your situation. > > Could you please post a couple of lines that include the earlier *.ru > requests? > > newly configured opensuse >> > > There are other misconfiguration possibilities. No not on your side but > elsewhere. Your IP address may have been previously used elsewhere for > other things, that are still configured to point to you without knowing > you're the new owner. > > If nothing truly *NEFARIOUS* is going on, then over the course of time, a > few days, things may clear themselves out automatically and those odd > requests may simply stop happening. > > If nothing nefarious is going on, but there are configs somewhere that > someone needs to change manually but either forgot about or haven't gotten > to yet, then the requests may continue for a while. If they don't stop you > may need to write to the owners of those domains to give them a heads-up > that they need to fix something or their customers won't be getting pages > that they should be. > > Along those lines, there might be someone sitting elsewhere wondering why > -his- logs have dropped to -zero-. LOL!!! Or, they may drop way off, and as > nameservers are update
[users@httpd] error logging of huge amount vhosts
Dear list, I have already configured the combined log for vhosts, so that only one file is required to write the access log of all vhosts. Unfortunately %v is not available for error log. Is maintaining separate error log for every vhost is fine with the server performance ? or there is a way to collect the host prepended at the error log ? BTW: the modified access.log is not compatible with some web stat reader. Any fix for this ? Thanks
[users@httpd] tool for maleware detector
Dear list, There are many online maleware scanner site and I am seeking your valuable input about the sites which are doing the job well. Also like to know if there is any shell / php script which can help to detect malware Thanks