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-27, 21:21:58

Author Topic: Domain not going to Document Root  (Read 9087 times)

0 Members and 1 Guest are viewing this topic.

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Domain not going to Document Root
« on: 2014-05-19, 12:16:57 »
I have 4 domains setup in kloxo mr.

However, only the primary domain can goes to the correct document root.

Browse other websites gave an error as below:
Not Found
The requested URL / was not found on this server.

Any Ideas?  Thank you.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Domain not going to Document Root
« Reply #1 on: 2014-05-19, 12:20:49 »
Inform your 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #2 on: 2014-05-19, 12:37:38 »
[root@server httpd]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2014051901

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.37-1.ius.el6.x86_64
   2. PHP: php53u-5.3.28-3.ius.el6.x86_64
   3. Httpd: httpd-2.2.27-1.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64
   7. Dns: bind-9.9.5-1.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2048        541       1506          0          0        206
   -/+ buffers/cache:        334       1713
   Swap:            0          0          0

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #3 on: 2014-05-19, 12:52:00 »
It seems jump to webmail application, did I set something wrongly?

/var/log/httpd/error_log:

[Mon May 19 18:17:40 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:17:41 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:17:50 2014] [error] [client 220.181.108.185] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:18:39 2014] [error] [client 123.125.71.117] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:21:49 2014] [error] [client 157.55.32.76] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:25:22 2014] [error] [client 157.55.32.76] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:28:02 2014] [error] [client 157.55.32.76] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:28:35 2014] [error] [client 157.55.35.75] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:34:12 2014] [error] [client 157.55.35.75] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:34:28 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:34:28 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:37:21 2014] [error] [client 62.210.215.114] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:38:22 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:38:22 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Domain not going to Document Root
« Reply #4 on: 2014-05-19, 13:27:13 »
inform here 'yum list installed kloxomr-webmail*; dir -l  /home/kloxo/httpd/webmail'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #5 on: 2014-05-19, 13:37:47 »
Seems no webmail apps installed... but why the document root will jump to the mail directory?

[root@server httpd]# yum list installed kloxomr-webmail*; dir -l  /home/kloxo/httpd/webmail
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.linux.duke.edu
 * extras: centoso4.centos.org
 * mratwork-epel: mirrors.servercentral.net
 * mratwork-ius-stable: ord.mirror.rackspace.com
 * updates: centoso4.centos.org
0 packages excluded due to repository protections
Error: No matching Packages to list
total 20
drwxr-xr-x 2 apache apache 4096 May 19 17:40 images
drwxr-xr-x 2 apache apache 4096 May 19 16:47 img
-rw-r--r-- 1 apache apache  713 May 19 17:40 inc.php
-rw-r--r-- 1 apache apache 2240 Feb 12  2013 index.html
-rw-r--r-- 1 apache apache 2400 May 19 17:40 index.php
[root@server httpd]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Domain not going to Document Root
« Reply #6 on: 2014-05-19, 13:54:38 »
Try 'yum install kloxomr-webmail*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #7 on: 2014-05-19, 14:32:53 »
I have followed your instruction and now
Primary domain is still okay but the browse the other domain,
the browser now shows the "Access denied".

/var/log/httpd/error_log:

[Mon May 19 20:31:34 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/\xe8\xaa\x8d\xe8\xad\x98-oh
[Mon May 19 20:31:43 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/robots.txt
[Mon May 19 20:31:46 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/\xe5\xad\xb8\xe5\x93\xa1\xe6\x96\x87\xe7\xab\xa0
[Mon May 19 20:31:50 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/\xe5\xad\xb8\xe5\x93\xa1\xe6\x96\x87\xe7\xab\xa0

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #8 on: 2014-05-19, 16:22:02 »
I tried 'sh /script/fixwebmail; sh /script/restart-all',

now the primary domain remain correct, okay,
and the all other domains goes to squirrel mail login page,
and not the document root I set,

any suggestion?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Domain not going to Document Root
« Reply #9 on: 2014-05-19, 16:36:07 »
So, what's result of 'yum list installed kloxomr-webmail*; dir -l  /home/kloxo/httpd/webmail' now?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #10 on: 2014-05-19, 16:37:20 »
[root@server /]# yum list installed kloxomr-webmail*; dir -l  /home/kloxo/httpd/webmail
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.linux.duke.edu
 * extras: centoso4.centos.org
 * mratwork-epel: mirrors.servercentral.net
 * mratwork-ius-stable: ord.mirror.rackspace.com
 * updates: centoso4.centos.org
0 packages excluded due to repository protections
Installed Packages
kloxomr-webmail-afterlogic.noarch                         7.2.1-1.mr                         @mratwork-release-neutral-noarch
kloxomr-webmail-roundcube.noarch                          1.0.rc-3.mr                        @mratwork-release-neutral-noarch
kloxomr-webmail-squirrelmail.noarch                       1.4.22-6.mr                        @mratwork-release-neutral-noarch
kloxomr-webmail-telaen.noarch                             1.3.2-2.mr                         @mratwork-release-neutral-noarch
total 52
drwxr-xr-x 12 apache apache 4096 May 19 20:07 afterlogic
drwxr-xr-x  2 apache apache 4096 May 19 17:40 images
drwxr-xr-x  2 apache apache 4096 May 19 16:47 img
-rw-r--r--  1 apache apache  713 May 19 17:40 inc.php
-rw-r--r--  1 apache apache 2240 Feb 12  2013 index.html
-rw-r--r--  1 apache apache 2400 May 19 17:40 index.php
-rw-r--r--  1 apache apache   39 May 19 22:10 redirect-to-afterlogic.php
-rw-r--r--  1 apache apache   38 May 19 22:10 redirect-to-roundcube.php
-rw-r--r--  1 apache apache   41 May 19 22:10 redirect-to-squirrelmail.php
-rw-r--r--  1 apache apache   35 May 19 22:10 redirect-to-telaen.php
drwxr-xr-x 11 apache apache 4096 May 19 20:08 roundcube
drwxr-xr-x 14 apache apache 4096 May 19 20:08 squirrelmail
drwxr-xr-x 13 apache apache 4096 May 19 20:07 telaen
[root@server /]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Domain not going to Document Root
« Reply #11 on: 2014-05-19, 16:44:04 »
So, try 'sh /script/fix-all; sh /script/restart-all'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #12 on: 2014-05-19, 16:47:51 »
Tried.

It is the same as before, redirected to squirrel mail login page.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Domain not going to Document Root
« Reply #13 on: 2014-05-19, 16:57:59 »
Go to 'switch programs' and then change 'web' to 'lighttpd' and then change back to 'apache' or 'nginx-proxy'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lewisngai

  • Junior Member
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Domain not going to Document Root
« Reply #14 on: 2014-05-19, 17:16:07 »
I have followed what you said, and then I reboot my VPS, but result is the same.  Problem still here.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.068 seconds with 18 queries.

web stats analysis