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, 07:44:11

Author Topic: Websites serving contents from the same documentroot  (Read 5184 times)

0 Members and 1 Guest are viewing this topic.

Offline Xieles

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Hello,

I having a strange issue in my kloxo mr server. All the websites hosted in the server are serving the contents from the document root of  a domain rather than its own. The apache config files of the domains and its document seems fine and the interesting thing is that a newly created domain too will serve its contents from the other document root.

I have tried the scripts in kloxo. Still no luck, any idea what is going on here.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Websites serving contents from the same documentroot
« Reply #1 on: 2016-02-10, 03:53:06 »
Inform here your 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xieles

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Websites serving contents from the same documentroot
« Reply #2 on: 2016-02-10, 04:56:46 »
Hi,

Thanks for looking into this, This is the result.

A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016020801
   - Web: hiawatha-10.0.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: tvetvonline.com
C. Services:
   1. MySQL: MariaDB-server-10.0.23-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1869       1488        380          0        144        996
   -/+ buffers/cache:        347       1521
   Swap:          511          1        510
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/xvda1       50G  3.6G   44G   8% /


*** Process Time: 00:00:00:02.2292 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Websites serving contents from the same documentroot
« Reply #3 on: 2016-02-10, 05:18:56 »
Inform your domains and or subdomains which have a trouble. Use PM if necessary.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xieles

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Websites serving contents from the same documentroot
« Reply #4 on: 2016-02-10, 06:45:08 »
Hello,

Since all websites are serving the contents from the documentroot of a single domain. I have updated the A record to another server. Please use host entries to view the site.

78.142.19.61    checkserver.in  www.checkserver.in tvelectro.com www.tvelectro.com futebolaovivo.top www.futebolaovivo.top



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Websites serving contents from the same documentroot
« Reply #5 on: 2016-02-10, 07:39:47 »
Make sure each domains use their own document root.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xieles

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Websites serving contents from the same documentroot
« Reply #6 on: 2016-02-10, 07:49:22 »
Hi,

Thank you. I have already done that. This is a snippet from the config file of one of the domain.

-----------------------------------
<VirtualHost ${ip}:${port} >

        SetEnvIf X-Forwarded-Proto https HTTPS=1

        ServerAdmin webmaster@checkserver.in

        ServerName checkserver.in

        Include /opt/configs/apache/conf/globals/acme-challenge.conf

        ServerAlias www.checkserver.in

        DocumentRoot "/home/admin/checkserver.in"
----------------------------------------------
This all happened after apache crashed and restarted again. The interesting one is that even if I create a new domain, the files will served from the doucmentroot of another domain. I have never seen such a scenario in my  experience.
« Last Edit: 2016-02-10, 07:53:00 by Xieles »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Websites serving contents from the same documentroot
« Reply #7 on: 2016-02-10, 08:06:25 »
Make sure 'default domain' use certain domain in every client.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xieles

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Websites serving contents from the same documentroot
« Reply #8 on: 2016-02-10, 08:58:42 »
Hello,

I found the issue. In the conf file of the default domain of admin "xxxx.com". I commented the following lines.

#Define ipalloc 78.142.19.61                                     
#<IfVersion < 2.4>                                               
#       NameVirtualHost ${ipalloc}:${port}                       
#       NameVirtualHost ${ipalloc}:${portssl}                   
#</IfVersion>

And every websites is now serving contents from it own documentroot. Is this a bug or should I really comment this line out.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Websites serving contents from the same documentroot
« Reply #9 on: 2016-02-10, 09:16:37 »
Don't assign IP to certain domain, except you own more than 1 IP. Need 1 IP as shared IP for all domains. That it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xieles

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Websites serving contents from the same documentroot
« Reply #10 on: 2016-02-10, 09:39:10 »
Hello,

Is the lines I commented out included during the default kloxo installation.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Websites serving contents from the same documentroot
« Reply #11 on: 2016-02-10, 09:43:34 »
Without IP assign to certain domain, will be appear:
Code: [Select]
<IfVersion < 2.4>
Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}
</IfVersion>
..:: 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.046 seconds with 21 queries.

web stats analysis