Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 22:31:59

Author Topic: Some pointless connections from mod_rewrite to nginx  (Read 1377 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Please see - I got tons of such lines:

Quote
2014/10/08 23:03:27 [notice] 19875#0: *152531 "^/kloxo(/|)(.*)" does not match "/obj_korfu", client: 78.46.85.1, server: turysta.3bt.pl, request: "GET /obj_korfu HTTP/1.0", host: "turysta.3bt.pl", referrer: "http://turysta.3bt.pl/wycieczki_objazdowe"
2014/10/08 23:03:27 [notice] 19875#0: *152531 "^/kloxo(/|)(.*)" does not match "/obj_korfu", client: 78.46.85.1, server: turysta.3bt.pl, request: "GET /obj_korfu HTTP/1.0", host: "turysta.3bt.pl", referrer: "http://turysta.3bt.pl/wycieczki_objazdowe"
2014/10/08 23:03:27 [notice] 19875#0: *152531 "^/webmail(/|)(.*)" does not match "/obj_korfu", client: 78.46.85.1, server: turysta.3bt.pl, request: "GET /obj_korfu HTTP/1.0", host: "turysta.3bt.pl", referrer: "http://turysta.3bt.pl/wycieczki_objazdowe"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some pointless connections from mod_rewrite to nginx
« Reply #1 on: 2014-10-09, 06:38:58 »
What is 'wycieczki_objazdowe'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Some pointless connections from mod_rewrite to nginx
« Reply #2 on: 2014-10-09, 12:37:21 »
It one of page is our script - we don't use .php inside our rewrite so instead of link.php there is php (it's better for SEO).

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some pointless connections from mod_rewrite to nginx
« Reply #3 on: 2014-10-09, 13:15:07 »
Any redirect builtin in domain. If you access http://domain.com/webmail then will redirect to http://webmail.domain.com/. So modified your rewrite to bypass /webmail, /cp /kloxo and /kloxononssl.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Some pointless connections from mod_rewrite to nginx
« Reply #4 on: 2014-10-09, 14:30:21 »
We are going directly to: http://turysta.3bt.pl/wycieczki_objazdowe so why it's refferring to webmail ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some pointless connections from mod_rewrite to nginx
« Reply #5 on: 2014-10-09, 15:06:52 »
I am sure, it's your rewrite setting because I didn't found this issue in my servers.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Some pointless connections from mod_rewrite to nginx
« Reply #6 on: 2014-10-09, 18:50:53 »
I am sure, it's your rewrite setting because I didn't found this issue in my servers.

Part of my rewrite which might be related to this:

Quote
Options -Multiviews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some pointless connections from mod_rewrite to nginx
« Reply #7 on: 2014-10-09, 19:34:22 »
I am sure, it's your rewrite setting because I didn't found this issue in my servers.

Part of my rewrite which might be related to this:

Quote
Options -Multiviews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]
It's outside from Kloxo-MR issue but possible related to 'RewriteRule ^(.*)$ http://%1/$1 [L,R=301]'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.04 seconds with 16 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM