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. 2024-04-23, 20:14:26

Author Topic: 403 Error on all customer domain  (Read 7617 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
403 Error on all customer domain
« on: 2013-02-27, 03:46:59 »
I've checked all and seems all nginx and apache configs are ok but I got 403 Errors on all this customer domains.

Code: [Select]
/script/fixweb --client=clientname
didn't helped.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #1 on: 2013-02-27, 03:50:35 »
Take a look at this nginxproxy config for one of his domains:

Code: [Select]
### begin content - please not remove this line


## web for 'film.super.xxx.pl'
server {
    listen *:80;

    server_name film.super.xxx.pl www.film.super.xxx.pl;

    index index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl;

    set $domain 'film.super.xxx.pl';

    set $rootdir '/home/kaplan161/film.super.xxx.pl';

    root $rootdir;

    set $user 'kaplan161';

    access_log '/home/httpd/film.super.xxx.pl/stats/film.super.xxx.pl-custom_log' main;
    error_log  '/home/httpd/film.super.xxx.pl/stats/film.super.xxx.pl-error_log';

    set $statstype 'stats';

    include '/home/nginx/conf/globals/webalizer.conf';

    set $fpmport '52336';

    include '/home/nginx/conf/globals/proxy.conf';

    location ^~ /(.*) {
        deny   121.168.39.168;
        deny   71.19.255.42;
        allow  all;
    }

    include '/home/nginx/conf/globals/generic.conf';
}


## webmail for 'film.super.xxx.pl' handled by ../webmails/webmail.conf


## web for 'film.super.xxx.pl'
server {
    listen *:443;

    ssl on;
    ssl_certificate /home/kloxo/httpd/ssl/eth0___localhost.crt;
    ssl_certificate_key /home/kloxo/httpd/ssl/eth0___localhost.key;
    ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!MD5;

    server_name film.super.xxx.pl www.film.super.xxx.pl;

    index index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl;

    set $domain 'film.super.xxx.pl';

    set $rootdir '/home/kaplan161/film.super.xxx.pl';

    root $rootdir;

    set $user 'kaplan161';

    access_log '/home/httpd/film.super.xxx.pl/stats/film.super.xxx.pl-custom_log' main;
    error_log  '/home/httpd/film.super.xxx.pl/stats/film.super.xxx.pl-error_log';

    set $statstype 'stats';

    include '/home/nginx/conf/globals/webalizer.conf';

    set $fpmport '52336';

    include '/home/nginx/conf/globals/proxy.conf';

    location ^~ /(.*) {
        deny   121.168.39.168;
        deny   71.19.255.42;
        allow  all;
    }

    include '/home/nginx/conf/globals/generic.conf';
}


## webmail for 'film.super.xxx.pl' handled by ../webmails/webmail.conf


### end content - please not remove this line
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #2 on: 2013-02-27, 03:58:51 »
This is causing such error:

Code: [Select]
   location ^~ /(.*) {
        deny   121.168.39.168;
        deny   71.19.255.42;
        allow  all;

After removing it or readding domain it disappears. Can you tell me why ? What are these IP addresses ? Customer and I did not add them to allowed/denied IP's ...
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #3 on: 2013-02-27, 04:09:04 »
Maybe rkhunter added this or fail2ban ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 403 Error on all customer domain
« Reply #4 on: 2013-02-27, 04:40:50 »
Find out on Panel. Possible you add blocked ips.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #5 on: 2013-02-27, 04:43:56 »
Quote from: "MRatWork"
Find out on Panel. Possible you add blocked ips.

Yes, he added but then removed them and this caused 403 Forbidden. Please investigate maybe there is a bug.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #6 on: 2013-02-27, 23:04:06 »
I see some changes related to this issue. Is this finally fixed right now ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 403 Error on all customer domain
« Reply #7 on: 2013-02-27, 23:09:58 »
Quote from: "Spacedust"
I see some changes related to this issue. Is this finally fixed right now ?
Look like ok in my test. Possible issue on apache rather than nginx.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #8 on: 2013-02-27, 23:16:49 »
Quote from: "MRatWork"
Quote from: "Spacedust"
I see some changes related to this issue. Is this finally fixed right now ?
Look like ok in my test. Possible issue on apache rather than nginx.

So /script/fixweb is needed again ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 403 Error on all customer domain
« Reply #9 on: 2013-02-27, 23:23:36 »
Need cleanup and then fixweb.

Simple solution... change 'Deny IP1, IP2' to 'Deny IP1 IP2' (remember, just remove comma) on apache domain config.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 403 Error on all customer domain
« Reply #10 on: 2013-02-27, 23:28:44 »
Quote from: "MRatWork"
Need cleanup and then fixweb.

Simple solution... change 'Deny IP1, IP2' to 'Deny IP1 IP2' (remember, just remove comma) on apache domain config.

Good. What if I don't have such denied IP's now and will just upgrade Kloxo ?

Also I see new watchdog on port 50000, so a lot of changes ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 403 Error on all customer domain
« Reply #11 on: 2013-02-27, 23:40:23 »
Watchdog for port 5000 (php-fpm) cancelled because always false detected by watchdog. So, back to previous idea (just detect port 80). If port 80 down, then check what's webserver type and use php-fpm or not.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: 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

Page created in 0.039 seconds with 18 queries.

web stats analysis