• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. cul3r0
    3. Topics
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 15
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by cul3r0

    • C

      Authentication options for image uploads

      Feature Request
      • • • cul3r0
      1
      0
      Votes
      1
      Posts
      175
      Views

      No one has replied

    • C

      Unsolved HTTPS Redirect Web GUI

      FOG Problems
      • • • cul3r0
      8
      0
      Votes
      8
      Posts
      625
      Views

      D

      @JJ-Fullmer said in HTTPS Redirect Web GUI:

      https redirect

      I had this issue, but wanted to add to the Copilot answer that works on RHEL 8.10 running the latest Apache and FOG 1.5.10.1634 (this assumes you installed FOG with NO HTTPS option, in other words HTTPS disabled by default):

      To redirect all HTTP requests on port 80 to HTTPS on port 443 using your provided certificate and key, you can use the following configuration:

      Create a new configuration file in the /etc/httpd/conf.d/ directory, for example, redirect.conf:

      <VirtualHost *:80> ServerName ip.of.fog.server ServerAlias hostnameOfFogServer RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] </VirtualHost>

      Update your SSL configuration in the /etc/httpd/conf.d/ssl.conf file to include your certificate and key:

      <VirtualHost *:443> ServerName ip.of.fog.server ServerAlias hostnameOfFogServer DocumentRoot /var/www/html/ SSLEngine on SSLCertificateFile /opt/fog/ssl/UNIQUE-FOR-ME/MYCERT.cer SSLCertificateKeyFile /opt/fog/ssl/UNIQUE-FOR-ME/MYCERT.key <Directory /var/www/html/fog/> DirectoryIndex index.php index.html index.htm AllowOverride All Require all granted </Directory> <FilesMatch "\.php$"> SetHandler "proxy:fcgi://127.0.0.1:9000/" </FilesMatch> 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>

      Restart Apache to apply the changes:

      sudo systemctl restart httpd

      This configuration will redirect all HTTP requests to HTTPS and use the provided certificate and key for SSL. Make sure to replace ip.of.fog.server and hostnameOfFogServer with your actual server IP and hostname.

      Lastly, When enrolling a cert I used the FQDN and plain hostname as a “Subject Alternative Name”. For my company, this means internal use only (.pvt). This takes care of both redirects (prob could have also talked to the DNS team to redirect the hostname to the FQDN eg hostname.blah.pvt as well. But it’s better (and faster) in the cert if you can do it that way.

    • C

      Fog Client cannot authenticate after Certificate change

      FOG Problems
      • • • cul3r0
      3
      0
      Votes
      3
      Posts
      405
      Views

      C

      @sebastian-roth this was before i figured out how to view my open forums. I apoligize , please delete or ignore or mark skip. Thank you

    • C

      Fog Server CA Download

      FOG Problems
      • • • cul3r0
      7
      0
      Votes
      7
      Posts
      820
      Views

      S

      @cul3r0 said in Fog Server CA Download:

      How do you recompile your own client binaries? Is there documentation on that?

      You can find information on all the tools and stuff you need in our github project readme though it’s kind of dated (older versions).

      I have been quiet because I am looking into re-designing the whole thing to make it a lot easier. Please be patient a little longer.

    • C

      How to install SSL Cert ONLY on web server

      FOG Problems
      • • • cul3r0
      3
      0
      Votes
      3
      Posts
      464
      Views

      C

      @sebastian-roth Correct

    • 1 / 1