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

Fog acces in https

Scheduled Pinned Locked Moved
FOG Problems
2
4
2.5k
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.
  • A
    Abadie Pierre
    last edited by Sep 21, 2013, 8:21 PM

    Hello every body,

    I’m a beginner, and i’ve got a problem

    I would to access to fog server in https mode. I know its apache2 problem, but i dont understand why when i access in http, everything is ok, but in https, firefox don’t find anything:

    “The requested URL /fog/management/index.php was not found on this server.
    Apache/2.2.22 (Ubuntu) Server at 192.168.0.14 Port 443”

    1/the hostname of the machine is: flumotion (yes, i installed flumotion packet first, in second fog)
    2/the ip adress is 192,168,0,14
    3/ i genrate ssl certificate:
    [COLOR=#4f81bd]openssl req -x509 -nodes -days 365 -newkey rsa:1024 -out /etc/ssl/mycert.crt -keyout /etc/ssl/mykey.key[/COLOR]
    4/i create a vitualhost who named fog in etc/apache2/sites-avaibles

    [B]So, this my file etc/hosts:[/B]

    [I]127.0.0.1 localhost.localdomain flumotion fog[/I]
    [I]# The following lines are desirable for IPv6 capable hosts[/I]
    [I]::1 ip6-localhost ip6-loopback[/I]
    [I]fe00::0 ip6-localnet[/I]
    [I]ff00::0 ip6-mcastprefix[/I]
    [I]ff02::1 ip6-allnodes[/I]
    [I]ff02::2 ip6-allrouters[/I]

    [B]This is my file etc/apache2/ports.conf[/B]

    GNU nano 2.2.6 Fichier : ports.conf

    NameVirtualHost *:443
    listen 80

    <IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
    </IfModule>

    <IfModule mod_gnutls.c>
    Listen 443
    </IfModule>

    [B]This my file et/apache2/sites-availables/fog[/B]

    GNU nano 2.2.6 Fichier : fog

    <VirtualHost *:443>
    ServerAdmin webmaster@flumotion
    ServerName flumotion
    ServerAlias 192.168.0.14/fog
    DocumentRoot /var/www/fog

    <Directory /var/www/fog>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory “/usr/lib/cgi-bin”>
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    <Files ~“^.ht”>
    </Files>
    SSLEngine on
    SSLCertificateFile /etc/ssl/mycert.crt
    SSLCertificateKeyFile /etc/ssl/mykey.key
    SSLVerifyClient none
    AccessFileName .httpdoverride

    </VirtualHost>

    ^G Aide ^O Écrire ^R Lire fich. ^Y Page préc. ^K Couper ^C Pos. cur.
    ^X Quitter ^J Justifier ^W Chercher ^V Page suiv. ^U Coller ^T Orthograp.
    Anybody have a idea?

    Thx for your help

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Sep 21, 2013, 8:39 PM

      It almost sounds like your https side mod_ssl is actually looking in the wrong folder. I’m guessing your running Ubuntu so your default install file goes in /var/www/

      However, the thing it’s looking for looks to be trying to find /var/www/fog/fog

      Maybe try changing this line:
      [CODE]DocumentRoot /var/www/fog[/CODE]

      to
      [CODE]DocumentRoot /var/www[/CODE]

      [B]OR[/B] change the alias you’re calling from:

      [CODE]ServerAlias 192.168.0.14/fog[/CODE]

      to:
      [CODE]ServerAlias 192.168.0.14[/CODE]

      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
      • A
        Abadie Pierre
        last edited by Sep 21, 2013, 8:53 PM

        [quote=“Tom Elliott, post: 16448, member: 7271”]It almost sounds like your https side mod_ssl is actually looking in the wrong folder. I’m guessing your running Ubuntu so your default install file goes in /var/www/

        However, the thing it’s looking for looks to be trying to find /var/www/fog/fog

        Maybe try changing this line:
        [CODE]DocumentRoot /var/www/fog[/CODE]

        to
        [CODE]DocumentRoot /var/www[/CODE]

        [B]OR[/B] change the alias you’re calling from:

        [CODE]ServerAlias 192.168.0.14/fog[/CODE]

        to:
        [CODE]ServerAlias 192.168.0.14[/CODE][/quote]

        Hi!

        Great!!! It works!, i change:
        [FONT=Consolas]DocumentRoot /var/www/fog[/FONT]

        [FONT=Consolas]to[/FONT]

        [FONT=Consolas]DocumentRoot /var/www[/FONT]
        [FONT=Consolas]And it work![/FONT]
        [FONT=Consolas] [/FONT]
        [FONT=Consolas]Thx a lot friend :)[/FONT]

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Sep 21, 2013, 9:04 PM

          no problem.

          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
          • 1 / 1
          1 / 1
          • First post
            3/4
            Last post

          190

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project