Apache - Redirect traffic from root to subdirectory

02 Jun 2017

I’m using an Amazon Linux AMI, but the steps are general.

Edit your .conf file - sudo vim /etc/httpd/conf/httpd.conf

Add the following under <Directory></Directory>.

<Directory>
    # You may have existing parameters here. Don't touch.
    RedirectMatch ^/$ /blog/
</Directory>

This would redirect any traffic coming to our root directory to /blog/, which, incidentally, is how you got here, if you just visited daviseford.com :)


AoS/Warhammer - Ogre Kingdoms

31 May 2017

Some photos of my Ogre Kingdoms army.


Jekyll - Display All Images In Folder

31 May 2017

To loop over and display a folder of images in Jekyll (makes galleries really easy):

{% for image in site.static_files %}
    {% if image.path contains 'path/to/image/folder/' %}
        <a href="{{ site.baseurl }}{{ image.path }}" target="_blank">
            <img src="{{ site.baseurl }}{{ image.path }}" alt="" class="img-thumbnail" />
        </a>
    {% endif %}
{% endfor %}

AoS/Warhammer - Seraphon Saurus Warriors

30 May 2017

Some WIP photos of my burgeoning Seraphon army.

Seraphon Warriors Seraphon Warriors Seraphon Warriors
Seraphon Warriors Seraphon Warriors Seraphon Warriors

Definitely still a work in progress, lots of details could be fixed on these guys - I’ve moved on to working on Saurus Knights and their respective mounts, plus a fully loaded Carnosaur >:)