Announcement

Collapse
No announcement yet.

Log on via HTTPS?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Log on via HTTPS?

    I have installed OX via Martin's installer, thank you Martin, and I would like to be able to get to the login page from https along with http. Can this be done? Is there a Wiki on it? If so, I have miss it.

    Thanks,
    Asok

  • #2
    Hi Asok,

    HTTPS is nothing that needs to be configured OX-specific, it's just adding a certificate and configure apache to use https, i guess there are a lot of manuals out there how to do this.

    Greetings

    Comment


    • #3
      Thanks. I was not sure if doing that would break OX or not.

      Comment


      • #4
        Here is how I got it to work.

        #Create now certificate
        openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

        #chmod 600 /etc/apache2/apache.pem

        #a2enmod ssl

        vi /etc/apache2/sites-available/default

        NameVirtualHost *:80
        NameVirtualHost *:443
        <VirtualHost *:80>
        ServerName somedomain.net
        DocumentRoot /var/www/
        ServerAdmin oxadmin@somedomain.net
        SetOutputFilter DEFLATE
        SetEnvIfNoCase REQUEST_URI .(?:gif|jp?g|png)$ no-gzip dont-vary
        DeflateFilterNote Input instream
        DeflateFilterNote Output outstream
        DeflateFilterNote Ratio ratio
        ExpiresActive On
        ExpiresByType image/gif A259200
        ExpiresByType image/png A259200
        ExpiresByType image/jpg A259200
        ExpiresByType image/jpeg A259200
        <Directory />
        Options FollowSymLinks
        AllowOverride None
        </Directory>
        <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        </Directory>
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On
        </VirtualHost>
        <VirtualHost *:443>
        ServerName somedomain.net
        DocumentRoot /var/www/
        ServerAdmin oxadmin@somedomain.net
        SetOutputFilter DEFLATE
        SetEnvIfNoCase REQUEST_URI .(?:gif|jp?g|png)$ no-gzip dont-vary
        DeflateFilterNote Input instream
        DeflateFilterNote Output outstream
        DeflateFilterNote Ratio ratio
        ExpiresActive On
        ExpiresByType image/gif A259200
        ExpiresByType image/png A259200
        ExpiresByType image/jpg A259200
        ExpiresByType image/jpeg A259200
        <Directory />
        Options FollowSymLinks
        AllowOverride None
        </Directory>
        <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        </Directory>
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        SSLEngine on
        SSLCertificateFile /etc/apache2/apache.pem
        ServerSignature On
        </VirtualHost>


        vi /etc/apache2/ports.conf
        Listen 80
        Listen 443

        /etc/init.d/apache2 restart


        The only problem is that after some reboots I get the following when I try to log on vi http or https

        error:404 - /ajax/login
        Last edited by Guest; 04-01-2008, 09:32 PM.

        Comment


        • #5
          Thanks Asok!

          Comment

          Working...
          X