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

    https/SSL issues help. :)

    Scheduled Pinned Locked Moved Solved
    General Problems
    3
    13
    1.9k
    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.
    • E
      ek_N
      last edited by

      Hello! I used to have this setup in my 001-fog.conf to have Https (code below). after updating to 1.5.3 it dissapeared so i added it again and restarted apache. but still get a HTTP ERROR 500.

      Have I been doing this wrong all the time even tho it worked?
      it still works by using the ip/fog in the browser.

      Suggestions or pointing me in the right direction greatly appreciated.

      
      <VirtualHost *:80>
         ServerName fog.servername.com
         Redirect / https://fog.servername.com/
      </VirtualHost>
      
      <VirtualHost *:443>
          <FilesMatch "\.php$">
              SetHandler "proxy:fcgi://127.0.0.1:9000/"
          </FilesMatch>
          KeepAlive Off
          ServerName fog.servername.com
          DocumentRoot /var/www/fog
          SSLEngine on
          SSLCertificateFile /etc/apache2/SSL/fog/server.crt
          SSLCertificateKeyFile /etc/apache2/SSL/fog/server.key
          SSLCertificateChainFile //etc/apache2/SSL/fog/fromGodaddy.crt
          <Directory /var/www/html/fog/>
              DirectoryIndex index.php index.html index.htm
          </Directory>
          RewriteEngine On
          RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
          RewriteRule .* - [F]
          RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
          RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
          RewriteRule ^/fog/(.*)$ /fog/api/index.php [QSA,L]
      </VirtualHost>
      
      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @ek_N Take a look at your apache error logs (see my signature) and post here what errors you have in there.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        E 1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by Tom Elliott

          For what it’s worth, you can pass the installfog.sh arguments that will take care of the configuration for you too.

          From what I’m reading on your layout, you would do something like:

          ./installfog.sh --force-https -y
          

          This would build a 001-fog.conf that will force redirecting to HTTPS. From there, you would modify the 001-fog.conf file to change your SSLCertificate{....}File lines to your relevant layout.

          After that, you could edit the /opt/fog/.fogsettings file and add the line: novhost="y" to the end. Save the file and upgrades should no longer overwrite the 001-fog.conf file, and you should have a working configuration.

          Of course, as @Sebastian-Roth suggest, please post the contents of your apache error logs.

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          E 1 Reply Last reply Reply Quote 0
          • E
            ek_N @Sebastian Roth
            last edited by

            @sebastian-roth

            [Thu May 31 08:39:36.763081 2018] [proxy_fcgi:error] [pid 25919] [client 10.101.xx.xx:54901] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /var/www/fog/common$
            [Thu May 31 08:39:37.659072 2018] [proxy_fcgi:error] [pid 25919] [client 10.101.x.xx:54903] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /var/www/fog/common$```
            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • E
              ek_N @Tom Elliott
              last edited by

              @tom-elliott

              Ok, thank you I will try that unless @Sebastian-Roth has some input about the error log.

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @ek_N
                last edited by

                @ek_n when you run the installer please before hand run:

                sudo mv /var/www/fog{,_back}
                sudo mv /var/www/html/fog{,_back}
                

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                E 2 Replies Last reply Reply Quote 0
                • E
                  ek_N @Tom Elliott
                  last edited by

                  @tom-elliott Thank you everything is running as normal. Just one more question. Documentroot should be this right DocumentRoot /var/www/fog ?

                  1 Reply Last reply Reply Quote 0
                  • E
                    ek_N @Tom Elliott
                    last edited by

                    @tom-elliott Nevermind. DocumentRoot /var/www/fog worked as default. Thank you for all your time and help! 🙂

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      ek_N @ek_N
                      last edited by

                      @ek_n I spoke too soon this is what I get when i try to network boot a machine.

                      tftp://10.1.xxx.xxx/default.ipxe… ok
                      https://10.1.101.60/fog/service/ipxe/boot.php … Permission denied (http://ipxe.org/0216eb8f)
                      could not boot:Permission denied (http://ipxe.org/0216eb8f)
                      chainloading dailed. hit ‘s’ for the ipxe shell;

                      1 Reply Last reply Reply Quote 0
                      • E
                        ek_N
                        last edited by

                        OK so I reverted back to http and it’s back to normal.

                        and it’s working again. I assume that since it was trying to boot https: with the IP. and the certificate had a hostname it wouldn’t accept it because it would show as invalid certificate?

                        Tom ElliottT 1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @ek_N
                          last edited by

                          @ek_n you can set the fogsettings file ip variable to that of the hostname

                          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          1 Reply Last reply Reply Quote 0
                          • E
                            ek_N
                            last edited by

                            @tom-elliott I was thinking about doing it. But i’m afraid it would ruin all the computers with the clients since they where installed with the IP address. Maybe this is not the case if I use FQDN instead?

                            1 Reply Last reply Reply Quote 0
                            • E
                              ek_N
                              last edited by

                              BTW you can mark it as solved. Got it up and running from the info you guys gave me thank you!

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post

                              141

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project