Skip to content

Instantly share code, notes, and snippets.

View matthijs110's full-sized avatar

Matthijs matthijs110

  • The Netherlands
  • 17:52 (UTC +02:00)
View GitHub Profile
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

anonymous
anonymous / index.php
Created May 8, 2014 17:59
Created with Gistr for Brackets.iohttps://github.com/LucasKA/Gistr
<div class="row">
<div class="col-xs-6 col-md-3">
<i><?php
if (mysql_result($data_rank, 0) == "Owner"): ?> <!-- If user is Owner -->
<img class="thumbnail thumbnail-owner" src="http://website.craftshark.net/avatar/avatar/<?php echo mysql_result($data_username, 0); ?>/150">
<?php endif; ?>
<!-- If user is Player -->
<?php
if (mysql_result($data_rank, 0) == "Player"): ?>