hacks.gordito.se

  • Archive
  • RSS
  • Ask me anything

Multiple SSL Virtual Hosts in Apache

I looked a long time for a working example of multiple SSL Virtual Hosts in Apache. Finally i found one that was working, so here you have it:

NameVirtualHost *:443

      <VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/ssl/apache2/server.crt
        SSLCertificateKeyFile /etc/ssl/apache2/server.key

        ServerName domain.tld
        SSLOptions StrictRequire
        SSLProtocol all -SSLv2

        DocumentRoot /path/to/ssl/enabled/site
        <Directory /path/to/ssl/enabled/site/>
          SSLRequireSSL
          Order Deny,Allow
          Allow from All
        </Directory>
      </VirtualHost>

      <VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/ssl/apache2/otherserver.crt
        SSLCertificateKeyFile /etc/ssl/apache2/otherserver.key

        ServerName otherdomain.tld
        SSLOptions StrictRequire
        SSLProtocol all -SSLv2

        DocumentRoot /path/to/other/ssl/enabled/site
        <Directory /path/to/other/ssl/enabled/site/>
          SSLRequireSSL
          Order Deny,Allow
          Allow from All
        </Directory>
      </VirtualHost>

Source: en.gentoo-wiki.com

    • #apache
    • #virtaulhost
    • #ssl
    • #multiple
    • #*:443
  • 3 weeks ago
  • Permalink
  • Share
    Tweet

For the creative person that isn’t satisfied with the beauty of the C++ code itself, check out openFrameworks toolkit for artist and interaction designers (and everybody else to). This is by far the easiest way to create graphical projects in C++! Everything is taken care of, it takes to seconds to get started, and it supports all big platforms.

Love in a Lib!

http://www.openframeworks.cc/

Source: openframeworks.cc

    • #c++
    • #openframeworks
  • 3 months ago
  • Permalink
  • Share
    Tweet

C++11 Intro

Currently working a lot with C++ and thought it was time to update to C++11! Found this amazing article that goes through the basic changes in an easy way. The worlds best language just got better!

http://www.softwarequalityconnection.com/2011/06/the-biggest-changes-in-c11-and-why-you-should-care/

Source: softwarequalityconnection.com

    • #c++11
    • #c++
    • #basics
    • #programing
  • 3 months ago
  • Permalink
  • Share
    Tweet

Assembly OS X Hello World

Hello world in assembly explained in a good and easy way. Exciting stuff..

    • #assembly hello world
  • 3 months ago
  • Permalink
  • Share
    Tweet

Mount a HFS+ Journal Enabled drive in Ubuntu

I had some problems with this, and didn’t find any good answers on teh internetz. But after some thinking/more googling I came up with a solution. But first, the problem:

If you want HFS+ support in ubuntu, install the following packages:

$ sudo apt-get install hfsplus hfsutils hfsprogs

I had a FAT32 external usb disk, that showed up on /dev/sdb1 on my ubuntu 10.10 server. Mounting went fine and all was dandy, but then I got the bright idea to reformat the drive to HFS+ to support my Mac. After the HFS+ reformat (on my Mac) and recopying of files, putting it back in to my ubuntu computer and trying to mount it gave me some strange errors:

$sudo mount -f hfsplus /dev/sdb1 /media/external

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail

And dmesg took me to a “unable to find HFS+ superblock” message, witch took me to this page:

http://ubuntuforums.org/archive/index.php/t-991328.html

The clue I found here was that HFS+ had two partions, and for everything to work again I had to mount the SECOND partion, not the first, in otherwords /dev/sdb2 instead of /dev/sdb1. Simple, stupid, but very frustrating if you didn’t know. 

Mounting the second partion worked, but the drive was still in read only mode. That was fixed with a flag:

$ sudo mount -f hfsplus /dev/sdb2 /media/external -o forced

and a chmod and chown:

$ sudo chmod 777 -R /media/external

$ sudo chown gordito:gordito -R /media/external

Now everything works fine, and Journaling is NOT tured off! Good luck!

    • #HFS+
    • #Ubuntu
    • #mount
    • #Journaling
    • #Mac
    • #Apple
    • #HDD
    • #External
    • #USB
  • 6 months ago
  • 170
  • Permalink
  • Share
    Tweet

Japans economy may be sleeping, but their robot engineers aren’t!

    • #flying
    • #sphere
    • #robot
  • 6 months ago
  • 13
  • Permalink
  • Share
    Tweet

Beautiful Tintin animation that catches something from all 24 Tintin books.

    • #tintin
    • #animation
  • 7 months ago
  • 12
  • Permalink
  • Share
    Tweet

RIP Steve!

    • #think different
    • #steve jobs
    • #rip
  • 7 months ago
  • Permalink
  • Share
    Tweet
fer1972:

Jack Hand Terrier by romanolsanik 
View Separately

fer1972:

Jack Hand Terrier by romanolsanik 

Source: fer1972

  • 8 months ago > fer1972
  • 8255
  • Permalink
  • Share
    Tweet

If this was around 20 years ago, I would have learnt to read in no time!

Source: vimeo.com

    • #alphabet
    • #read
    • #letters
  • 8 months ago
  • 9
  • Permalink
  • Share
    Tweet
Very cool house ad from Svensk Fastighetsförmedling, nice move!
http://www.svenskfast.se/Hemnet/Pages/ObjectView.aspx?objectid=3OK3LB3QRS6LJJ6U
Pop-upView Separately

Very cool house ad from Svensk Fastighetsförmedling, nice move!

http://www.svenskfast.se/Hemnet/Pages/ObjectView.aspx?objectid=3OK3LB3QRS6LJJ6U

Source: svenskfast.se

    • #house
    • #ad
  • 8 months ago
  • Permalink
  • Share
    Tweet
Putin is one busy prime minister. Where does he find time to work, I wonder?
http://www.theatlantic.com/infocus/2011/09/vladimir-putin-action-man/100147/
Pop-upView Separately

Putin is one busy prime minister. Where does he find time to work, I wonder?

http://www.theatlantic.com/infocus/2011/09/vladimir-putin-action-man/100147/

Source: The Atlantic

    • #Vladimir Putin
    • #Action
    • #photo
  • 8 months ago
  • 3
  • Permalink
  • Share
    Tweet

Japan takes the water fountain to the next level.

Source: freshome.com

    • #Water
    • #fountain
    • #Japan
  • 8 months ago
  • Permalink
  • Share
    Tweet

POCO C++ Lib <3

My love for this very well coded lib is unmatched for the moment!
For some Poco love in Ubuntu do this:

$ sudo apt-get install libpoco-dev

    • #Poco
    • #C++
    • #&lt;3
    • #Ubuntu
  • 8 months ago
  • 5
  • Permalink
  • Share
    Tweet
A good solution to an unsloved OS X problem!
http://itunes.apple.com/se/app/moom/id419330170?mt=12
Check out more good stuff at ManyTricks.com
Pop-upView Separately

A good solution to an unsloved OS X problem!

http://itunes.apple.com/se/app/moom/id419330170?mt=12

Check out more good stuff at ManyTricks.com

Source: itunes.apple.com

    • #Moom
    • #Window handling
    • #resize
    • #ManyTricks.com
  • 8 months ago
  • 102
  • Permalink
  • Share
    Tweet
← Newer • Older →
Page 1 of 2

About

by Robin Kochauf

gordito.se

Follow @kochauf

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr