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-08, 01:53:30

Author Topic: how to update Error Pages for all clients  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Offline medo.mine1

  • Junior Member
  • *
  • Posts: 47
  • Karma: +0/-0
    • View Profile
how to update Error Pages for all clients
« on: 2015-10-09, 02:39:01 »
Hello Mustafa,
I've uploaded a custom set of the error pages in /usr/kloxo/lxlabs/httpdocs/error/ ,
But when I visit any incorrect url it show the default Kloxo-MR 404 page instead of the updated one.
I visited https://name.tld:2221/error/404.html to make sure the uploaded files work fine,
How to update it for all clients at once?
Thanks in advance.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: how to update Error Pages for all clients
« Reply #1 on: 2015-10-09, 03:11:28 »
Error pages are in /home/kloxo/httpd/error where copy from /usr/kloxo/lxlabs/httpdocs/error/ in cleanup process.

If you want customize, copy each file to custom file (example 404.html to custom.404.html) inside /usr/kloxo/lxlabs/httpdocs/error/ and then modified this custom files.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline medo.mine1

  • Junior Member
  • *
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: how to update Error Pages for all clients
« Reply #2 on: 2015-10-09, 03:22:06 »
Error pages are in /home/kloxo/httpd/error where copy from /usr/kloxo/lxlabs/httpdocs/error/ in cleanup process.

If you want customize, copy each file to custom file (example 404.html to custom.404.html) inside /usr/kloxo/lxlabs/httpdocs/error/ and then modified this custom files.
I copied the custom pages to  /home/kloxo/httpd/error ,
now it shows the custom page but no images or css !
Just a text page.
Also tried sh /script/fix-chownchmod
Thanks
« Last Edit: 2015-10-09, 03:36:27 by medo.mine1 »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: how to update Error Pages for all clients
« Reply #3 on: 2015-10-09, 05:34:21 »
Error pages are in /home/kloxo/httpd/error where copy from /usr/kloxo/lxlabs/httpdocs/error/ in cleanup process.

If you want customize, copy each file to custom file (example 404.html to custom.404.html) inside /usr/kloxo/lxlabs/httpdocs/error/ and then modified this custom files.
I copied the custom pages to  /home/kloxo/httpd/error ,
now it shows the custom page but no images or css !
Just a text page.
Also tried sh /script/fix-chownchmod
Thanks
Investigate url of images and css and their files are exists.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline medo.mine1

  • Junior Member
  • *
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: how to update Error Pages for all clients
« Reply #4 on: 2015-10-09, 12:36:08 »
all files are in a folder named "assets" inside  '/home/kloxo/httpd/error' ,
>>>>>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en"> <!--<![endif]-->

<head>
    <meta charset="utf-8" />
    <title>Error 401 - Unauthorized</title>
    <meta name="author" content="ukieweb" />
    <meta name="keywords" content="404 page, guardian, css3, template, html5 template" />
    <meta name="description" content="404 - Page Template" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <!-- Libs CSS -->
    <link type="text/css" media="all" href="//assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <!-- Template CSS -->
    <link type="text/css" media="all" href="//assets/css/style.css" rel="stylesheet" />
    <!-- Responsive CSS -->
    <link type="text/css" media="all" href="//assets/css/respons.css" rel="stylesheet" />

    <!-- Favicons -->
    <link rel="apple-touch-icon" sizes="144x144" href="//assets/img/favicons/favicon144x144.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="//assets/img/favicons/favicon114x114.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="//assets/img/favicons/favicon72x72.png" />
    <link rel="apple-touch-icon" href="//assets/img/favicons/favicon57x57.png" />
    <link rel="shortcut icon" href="//assets/img/favicons/favicon.png" />
    <!-- Google Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>

</head>
<body>

    <!-- Load page -->
    <div class="animationload">
        <div class="loader">
        </div>
    </div>
    <!-- End load page -->


    <!-- Content Wrapper -->
    <div id="wrapper">
        <div class="container">
            <div class="col-xs-12 col-sm-7 col-lg-7">
                <!-- Info -->
                <div class="info">
                    <h1>Stop!</h1>
                    <h2>Error 401 - Unauthorized</h2>
                    <p>The request was a legal request, but the server is refusing to respond to it.</p>
                    <a href="http://hosting.pyramidlinux.com" class="btn">Go Home</a>
                    <a href="mailto:info@pyramidlinux.com" class="btn btn-light-blue">Contact Us</a>
                </div>
                <!-- end Info -->
            </div>

            <div class="col-xs-12 col-sm-5 col-lg-5 text-center">
                <!-- Guardian -->
                <div class="guardian">
                    <img src=".///assets/img/guardian.gif" alt="Guardian" />
                </div>
                <!-- end Guardian -->
            </div>

        </div>
        <!-- end container -->
    </div>
    <!-- end Content Wrapper -->


    <!-- Scripts -->
    <script src="/assets/js/jquery-2.1.1.min.js" type="text/javascript"></script>
    <script src="/assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/assets/js/modernizr.custom.js" type="text/javascript"></script>
    <script src="/assets/js/jquery.nicescroll.min.js" type="text/javascript"></script>
    <script src="/assets/js/scripts.js" type="text/javascript"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</body>
</html>
>>>
whats  wrong?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: how to update Error Pages for all clients
« Reply #5 on: 2015-10-09, 12:46:45 »
If full path of assets is /home/kloxo/httpd/error/assets, your image, js and css path must as '/error/assets' (example: '/error/assets/js/jquery-2.1.1.min.js').
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline medo.mine1

  • Junior Member
  • *
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: how to update Error Pages for all clients
« Reply #6 on: 2015-10-09, 14:22:26 »
It works!
Thanks a lot :)

 


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

Page created in 0.036 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM