• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Redirect /fog/management to root X.X.X.X

Scheduled Pinned Locked Moved
General
6
30
11.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bluesky
    last edited by Feb 15, 2017, 6:29 PM

    Hi - New to fog but been reading through a lot of the posts and can’t see a way to redirect fog landing page to the root http://x.x.x.x.

    Note: This is a fresh install

    Info: Running Ubuntu 16.04
    Fog:
    Running Version 1.3.4
    SVN Revision: 6066

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by george1421 Feb 15, 2017, 5:10 PM Feb 15, 2017, 11:09 PM

      I might suggest that you no do this, but create a default page in the http root that just forwards the user to the /fog path.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 2
      • B
        bluesky
        last edited by Feb 15, 2017, 11:10 PM

        Thx, I will give it a try

        G 1 Reply Last reply Feb 15, 2017, 11:11 PM Reply Quote 0
        • G
          george1421 Moderator @bluesky
          last edited by george1421 Feb 15, 2017, 5:56 PM Feb 15, 2017, 11:11 PM

          @bluesky

          For example create a file index.html in the root of the web site and inside that index.html file something as simple as this

          <html>
          <head>
          <meta http-equiv="refresh" content="1;url=http://<fog_server_ip>/fog/index.php" />
          </head>
          <body>
          Redirecting to FOG Server
          </body>
          </html>
          

          ref: http://stackoverflow.com/questions/3292038/redirect-website-after-certain-amount-of-time

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          B 1 Reply Last reply Feb 16, 2017, 12:41 AM Reply Quote 0
          • S
            sudburr
            last edited by Feb 15, 2017, 11:49 PM

            This is what I do with CentOS7:

            echo "Make Apache Default Web Page default to <servername>/ instead of <servername>/fog/"
            sed -i.bak "s|DirectoryIndex index.html|DirectoryIndex /fog/index.php index.html|g" /etc/httpd/conf/httpd.conf
            sed -i.bak "s|/management|/fog/management|g" /var/www/html/fog/index.php
            

            The first part is in Apache’s documentation. The second part cinches the knot.

            [ Standing in between extinction in the cold and explosive radiating growth ]

            1 Reply Last reply Reply Quote 0
            • B
              bluesky @george1421
              last edited by Feb 16, 2017, 12:41 AM

              @george1421 Just confirming where the index.html should be. I have it in /var/www/fog/index.html. I tested this by just entering ip in firefox browser and it takes me to the index of / page.

              G 1 Reply Last reply Feb 16, 2017, 12:44 AM Reply Quote 0
              • W
                Wayne Workman
                last edited by Feb 16, 2017, 12:42 AM

                This is what you should be doing: https://wiki.fogproject.org/wiki/index.php?title=Simple_Redirect

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                B 1 Reply Last reply Feb 16, 2017, 1:08 AM Reply Quote 1
                • G
                  george1421 Moderator @bluesky
                  last edited by Feb 16, 2017, 12:44 AM

                  @bluesky Yeah, you should be using Wayne’s post. The index.html should work, but there may be some apache configs that need to happen. I was just shooting from where I know. The php solution that wayne posted does the same exact thing but via a php page.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  B 1 Reply Last reply Feb 16, 2017, 1:15 AM Reply Quote 1
                  • B
                    bluesky @Wayne Workman
                    last edited by Feb 16, 2017, 1:08 AM

                    @Wayne-Workman this fails chown root:apache /var/www/html/index.php invalid group. should this be www-data?

                    W 1 Reply Last reply Feb 16, 2017, 1:12 AM Reply Quote 1
                    • W
                      Wayne Workman @bluesky
                      last edited by Wayne Workman Feb 15, 2017, 7:14 PM Feb 16, 2017, 1:12 AM

                      @bluesky said in Redirect /fog/management to root X.X.X.X:

                      this fails chown root:apache /var/www/html/index.php invalid group. should this be www-data?

                      Yep. In Ubuntu/Debian it’s www-data

                      I updated the wiki to reflect this.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      1 Reply Last reply Reply Quote 0
                      • B
                        bluesky @george1421
                        last edited by Feb 16, 2017, 1:15 AM

                        @george1421 Thanks I have tried both your suggestions, but if you know this works, then I suspect I have issues with my apache2 service

                        W 1 Reply Last reply Feb 16, 2017, 1:15 AM Reply Quote 0
                        • W
                          Wayne Workman @bluesky
                          last edited by Feb 16, 2017, 1:15 AM

                          @bluesky It’s not working?

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          B 2 Replies Last reply Feb 16, 2017, 1:22 AM Reply Quote 0
                          • B
                            bluesky @Wayne Workman
                            last edited by Feb 16, 2017, 1:22 AM

                            @Wayne-Workman No its not working, typing "X.X.X.X "into the browser takes me to the index of / page. interestingly enough if i type local host, it takes me to the Apache Debian default page then redirects me to the fog web console

                            1 Reply Last reply Reply Quote 0
                            • B
                              bluesky @Wayne Workman
                              last edited by Feb 16, 2017, 1:41 AM

                              @Wayne-Workman I think I am going to start all over with fresh install. I am using virtual box so I can destroy and start over easily. I suspect I have touched to many files made to many config changes.

                              W 1 Reply Last reply Feb 16, 2017, 1:46 AM Reply Quote 0
                              • W
                                Wayne Workman @bluesky
                                last edited by Wayne Workman Feb 15, 2017, 7:46 PM Feb 16, 2017, 1:46 AM

                                @bluesky I can assure you that the wiki article I posted does work. Others and myself have used it many times on many different OSs. Starting over is probably best since you’re just playing around with fog.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                B 2 Replies Last reply Feb 16, 2017, 12:00 PM Reply Quote 0
                                • B
                                  bluesky @Wayne Workman
                                  last edited by Feb 16, 2017, 12:00 PM

                                  @Wayne-Workman Ok Thanks thats what I will do. Thanks for all your help. So far, I have FOG up and running in a school district…just now trying to tweak a few things

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bluesky @Wayne Workman
                                    last edited by Feb 16, 2017, 3:21 PM

                                    @Wayne-Workman Hi Wayne - I just cant seem to get this to work following the instructions on wiki.
                                    I have started with fresh install of Ubuntu 16 and FOG . I dont want to waste your time but thought I would provide the update.

                                    1.) ls -l /var/www/html/index.php
                                    -rwxr–r-- 1 root www-data 78 Feb 16 09:24 /var/www/html/index.php

                                    2.) Contents of above file:
                                    <?php
                                    header(‘Location: http://10.0.2.15/fog/management/index.php’);
                                    exit;
                                    ?>

                                    3.)
                                    Latest Version: 1.3.4
                                    Latest Development Version: 1.3.5-RC-7
                                    Latest SVN Version: 6065

                                    4.) Server Version: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k

                                    1 Reply Last reply Reply Quote 0
                                    • x23piracyX
                                      x23piracy
                                      last edited by x23piracy Feb 16, 2017, 9:24 AM Feb 16, 2017, 3:24 PM

                                      create a index.html in /var/www with the following content:

                                      <meta http-equiv="refresh" content="0; URL=/fog">
                                      

                                      ║▌║█║▌│║▌║▌█

                                      B 1 Reply Last reply Feb 16, 2017, 4:11 PM Reply Quote 1
                                      • B
                                        bluesky @x23piracy
                                        last edited by Feb 16, 2017, 4:11 PM

                                        @x23piracy Thanks, this worked!

                                        W 1 Reply Last reply Feb 18, 2017, 5:38 AM Reply Quote 0
                                        • W
                                          Wayne Workman @bluesky
                                          last edited by Feb 18, 2017, 5:38 AM

                                          @bluesky I just tried the steps in the wiki verbatim and they work fine. I’m not sure what is wrong, are you replacing the x.x.x.x with the server IP address?

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                          Daily Clean Installation Results:
                                          https://fogtesting.fogproject.us/
                                          FOG Reporting:
                                          https://fog-external-reporting-results.fogproject.us/

                                          B 1 Reply Last reply Feb 18, 2017, 4:42 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            3/30
                                            Last post

                                          209

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project