<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTTPS Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/https/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/https/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Tue, 12 Aug 2025 18:28:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>HTTPS Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/https/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>YOURLS: Branded URL Shortener on a Dedicated Server</title>
		<link>https://serverstadium.com/knowledge-base/yourls-url-shortener-dedicated-servers/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 18:28:26 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12203</guid>

					<description><![CDATA[<p>Introduction Run a branded URL shortener with YOURLS on a ServerStadium dedicated server (or ServerStadium VM). This guide sets up YOURLS on Ubuntu&#160;24.04 with Nginx, PHP&#160;8.3, MariaDB/MySQL, and automatic HTTPS via Let’s Encrypt—so your team gets short links, click analytics, and a simple admin UI on your own domain. Prerequisites A ServerStadium dedicated server or&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/yourls-url-shortener-dedicated-servers/">YOURLS: Branded URL Shortener on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">Run a branded URL shortener with <strong>YOURLS</strong> on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=yourls">ServerStadium dedicated server</a> (or <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=yourls">ServerStadium VM</a>). This guide sets up YOURLS on Ubuntu&nbsp;24.04 with Nginx, PHP&nbsp;8.3, MariaDB/MySQL, and automatic HTTPS via Let’s Encrypt—so your team gets short links, click analytics, and a simple admin UI on your own domain.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=yourls">ServerStadium dedicated server</a> or <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=yourls">VM</a> running Ubuntu&nbsp;24.04.</li>
  <li>A domain like <code>sho.rt</code> or <code>yourls.example.com</code> pointing to your server’s public IP.</li>
  <li>SSH access with a sudo-capable user and an email address for Let’s Encrypt notices.</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Install Nginx, PHP-FPM, and MariaDB</h2>


<pre><code>sudo apt update && sudo apt -y upgrade
sudo apt -y install nginx mariadb-server \
  php8.3-fpm php8.3-mysql php8.3-curl php8.3-xml php8.3-mbstring php8.3-gd php8.3-zip php8.3-intl \
  unzip curl certbot python3-certbot-nginx

sudo systemctl enable --now nginx mariadb php8.3-fpm
</code></pre>


<h2 class="wp-block-heading">Step 2 — Create the Database</h2>


<pre><code>sudo mysql_secure_installation

sudo mysql -e "CREATE DATABASE yourls DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
sudo mysql -e "CREATE USER 'yourlsuser'@'localhost' IDENTIFIED BY 'ChangeThisStrongPassword!';"
sudo mysql -e "GRANT ALL PRIVILEGES ON yourls.* TO 'yourlsuser'@'localhost'; FLUSH PRIVILEGES;"
</code></pre>


<h2 class="wp-block-heading">Step 3 — Download YOURLS (Latest Stable) and Deploy</h2>



<p class="wp-block-paragraph">This uses the current stable release (1.10.2). Adjust if a newer stable version is available.</p>


<pre><code>sudo mkdir -p /var/www/yourls
cd /tmp
wget -O yourls.tar.gz https://github.com/YOURLS/YOURLS/archive/refs/tags/1.10.2.tar.gz
tar -xzf yourls.tar.gz
sudo rsync -a YOURLS-1.10.2/ /var/www/yourls/
sudo chown -R www-data:www-data /var/www/yourls
</code></pre>


<h2 class="wp-block-heading">Step 4 — Configure YOURLS</h2>


<pre><code># Create the user config directory
sudo mkdir -p /var/www/yourls/user

# Generate a cookie key
CK=$(openssl rand -base64 48)

# Write config.php (edit domain, users, and passwords as needed)
sudo tee /var/www/yourls/user/config.php >/dev/null <<EOF
&lt;?php
/* MySQL settings */
define( 'YOURLS_DB_USER', 'yourlsuser' );
define( 'YOURLS_DB_PASS', 'ChangeThisStrongPassword!' );
define( 'YOURLS_DB_NAME', 'yourls' );
define( 'YOURLS_DB_HOST', 'localhost' );
define( 'YOURLS_DB_PREFIX', 'yourls_' );

/* Site options */
define( 'YOURLS_SITE', 'https://yourls.example.com' ); // your short domain, no trailing slash
define( 'YOURLS_PRIVATE', true );                       // admin area requires login
define( 'YOURLS_UNIQUE_URLS', true );
define( 'YOURLS_COOKIEKEY', '$CK' );                    // random secret key

/* Admin user(s) */
$yourls_user_passwords = array(
  'admin' => 'ChangeThisStrongPassword!'                // set a strong password
);

/* Optional locale and timezone */
// define( 'YOURLS_LANG', '' );
// define( 'YOURLS_HOURS_OFFSET', 0 );
EOF

sudo chown www-data:www-data /var/www/yourls/user/config.php
sudo chmod 440 /var/www/yourls/user/config.php
</code></pre>


<h2 class="wp-block-heading">Step 5 — Nginx Server Block + PHP-FPM</h2>


<pre><code>sudo tee /etc/nginx/sites-available/yourls >/dev/null <<'EOF'
server {
    listen 80;
    listen [::]:80;
    server_name yourls.example.com;

    root /var/www/yourls;
    index index.php;

    # YOURLS loader: route all unmatched paths to yourls-loader.php
    location / {
        try_files $uri $uri/ /yourls-loader.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
    }

    # Security: deny access to hidden files (except .well-known for ACME)
    location ~ /\.(?!well-known) {
        deny all;
    }
}
EOF

sudo ln -s /etc/nginx/sites-available/yourls /etc/nginx/sites-enabled/yourls
sudo nginx -t &#038;&#038; sudo systemctl reload nginx
</code></pre>


<h2 class="wp-block-heading">Step 6 — Enable HTTPS (Let’s Encrypt)</h2>


<pre><code>sudo certbot --nginx -d yourls.example.com --redirect -m you@example.com --agree-tos -n
</code></pre>


<h2 class="wp-block-heading">Step 7 — Run the Installer &amp; Log In</h2>



<ul class="wp-block-list">
  <li>Open <code>https://yourls.example.com/admin/install.php</code> to create the database tables.</li>
  <li>Then go to <code>https://yourls.example.com/admin/</code> and log in with the admin user configured in <code>config.php</code>.</li>
  <li>Create your first branded short link and share it!</li>
</ul>



<h2 class="wp-block-heading">Optional: Public API &amp; Plugins</h2>



<ul class="wp-block-list">
  <li>For team usage only, keep YOURLS private (default). If you want a public API, set <code>define('YOURLS_PRIVATE_API', false);</code> in <code>config.php</code>.</li>
  <li>Explore plugins (rate limiting, QR codes, custom keywords) from the YOURLS ecosystem to extend functionality.</li>
</ul>



<h2 class="wp-block-heading">Firewall &amp; Service Checks</h2>


<pre><code>sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo systemctl status nginx php8.3-fpm --no-pager
</code></pre>


<h2 class="wp-block-heading">Troubleshooting</h2>



<ul class="wp-block-list">
  <li><strong>Blank/403 at root:</strong> YOURLS intentionally doesn’t show a homepage—use <code>/admin/</code> for the UI. Short URLs still resolve from the root.</li>
  <li><strong>PHP errors:</strong> Ensure PHP&nbsp;8.1+ is installed and FPM socket path matches your version (Ubuntu&nbsp;24.04 uses <code>/run/php/php8.3-fpm.sock</code>).</li>
  <li><strong>Short links 404:</strong> Confirm your Nginx block contains <code>try_files $uri $uri/ /yourls-loader.php$is_args$args;</code> and you reloaded Nginx.</li>
  <li><strong>HTTPS fails:</strong> Check DNS A/AAAA records and re-run <code>certbot --nginx</code>. Inspect logs via <code>journalctl -u nginx -n 100 --no-pager</code>.</li>
</ul>



<p class="wp-block-paragraph">Want an easy, affordable start? Choose an instant <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=yourls">ServerStadium dedicated server</a> and brand your links today.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">With YOURLS on ServerStadium, you control your data, domain, and analytics—all secured over HTTPS. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=yourls">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=yourls">ServerStadium website</a>.</p>

<p>The post <a href="https://serverstadium.com/knowledge-base/yourls-url-shortener-dedicated-servers/">YOURLS: Branded URL Shortener on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jellyfin Media Server: Movies and Music on a Dedicated Server</title>
		<link>https://serverstadium.com/knowledge-base/jellyfin-media-server-dedicated-servers/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 18:22:44 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12201</guid>

					<description><![CDATA[<p>Introduction Set up your own Netflix-style library with Jellyfin on a ServerStadium dedicated server or VM. This guide covers a clean Ubuntu&#160;24.04 install, creating media folders, enabling a secure HTTPS site with Nginx + Let’s Encrypt, and basic multi-user setup. Prerequisites A ServerStadium dedicated server or VM running Ubuntu&#160;24.04. SSH access with a sudo-capable user.&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/jellyfin-media-server-dedicated-servers/">Jellyfin Media Server: Movies and Music on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">Set up your own Netflix-style library with <strong>Jellyfin</strong> on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> or <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">VM</a>. This guide covers a clean Ubuntu&nbsp;24.04 install, creating media folders, enabling a secure HTTPS site with Nginx + Let’s Encrypt, and basic multi-user setup.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> or <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">VM</a> running Ubuntu&nbsp;24.04.</li>
  <li>SSH access with a sudo-capable user.</li>
  <li>A domain/subdomain (e.g., <code>media.example.com</code>) pointing to your server’s public IP.</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Install Jellyfin (Official Repo Script)</h2>



<p class="wp-block-paragraph">The official installer adds the repository and installs Jellyfin and its codecs.</p>


<pre><code>sudo apt update && sudo apt -y install curl gnupg apt-transport-https ca-certificates
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
# If needed, ensure installed:
sudo apt -y install jellyfin
sudo systemctl enable --now jellyfin
sudo systemctl status jellyfin --no-pager
</code></pre>


<h2 class="wp-block-heading">Step 2 — Create Media Folders &amp; Permissions</h2>


<pre><code>sudo mkdir -p /srv/media/{movies,tv,music}
# Jellyfin runs as the "jellyfin" user by default
sudo chown -R jellyfin:jellyfin /srv/media
</code></pre>


<p class="wp-block-paragraph">If you mount additional disks (e.g., at <code>/srv/media</code>), ensure ownership stays with <code>jellyfin:jellyfin</code> or grant group read access as needed.</p>



<h2 class="wp-block-heading">Step 3 — First-Run Wizard</h2>



<ul class="wp-block-list">
  <li>Temporarily open the local port to finish setup: <code>sudo ufw allow 8096/tcp</code></li>
  <li>Browse to <code>http://&lt;server-ip&gt;:8096</code>, create the admin account, and add libraries pointing to <code>/srv/media/movies</code>, <code>/srv/media/tv</code>, <code>/srv/media/mus ic</code>.</li>
  <li>In <em>Dashboard → Networking</em>, leave HTTP at <code>8096</code>. We’ll put HTTPS behind Nginx next.</li>
</ul>



<h2 class="wp-block-heading">Step 4 — Secure HTTPS with Nginx Reverse Proxy</h2>



<p class="wp-block-paragraph">We’ll proxy Jellyfin (localhost:8096) behind Nginx on <code>media.example.com</code> with a free Let’s Encrypt certificate.</p>


<pre><code>sudo apt -y install nginx certbot python3-certbot-nginx

# Create the proxy config
sudo tee /etc/nginx/sites-available/jellyfin &gt;/dev/null &lt;&lt;'EOF'
server {
    listen 80;
    listen [::]:80;
    server_name media.example.com;
    return 301 https://$host$request_uri;
}

server {
    # For Nginx 1.25+: enable HTTP/2 explicitly
    listen 443 ssl;
    listen [::]:443 ssl;
    http2 on;

    server_name media.example.com;

    # Let’s Encrypt paths (created by certbot)
    ssl_certificate /etc/letsencrypt/live/media.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/media.example.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    # Increase upload size for posters, etc.
    client_max_body_size 20M;

    # Upstream Jellyfin (local)
    set $jellyfin 127.0.0.1;

    location / {
        proxy_pass http://$jellyfin:8096;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_buffering off;  # better for streaming
    }

    # WebSocket endpoint
    location /socket {
        proxy_pass http://$jellyfin:8096;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header X-Forwarded-Host $http_host;
    }
}
EOF

# Enable the site and get a certificate
sudo ln -s /etc/nginx/sites-available/jellyfin /etc/nginx/sites-enabled/jellyfin
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d media.example.com --redirect -m you@example.com --agree-tos -n

# Lock down the firewall for public access via HTTPS only
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw deny 8096/tcp
sudo ufw enable
sudo ufw status
</code></pre>


<p class="wp-block-paragraph">In Jellyfin <em>Dashboard → Networking</em>, add your reverse proxy to <strong>Known Proxies</strong> (e.g., <code>127.0.0.1</code> and your server’s private IP). This ensures client IPs are passed correctly through Nginx.</p>



<h2 class="wp-block-heading">Step 5 — Create Users &amp; Manage Libraries</h2>



<ul class="wp-block-list">
  <li>Go to <em>Dashboard → Users → +</em> to add family/teammates. Assign libraries and playback permissions.</li>
  <li>Use <em>Dashboard → Libraries</em> to add or rescan folders as you upload media to <code>/srv/media</code>.</li>
  <li>For remote streaming, keep originals reasonable in size/bitrate or pre-encode to H.264/H.265 for smoother playback on modest CPUs.</li>
</ul>



<h2 class="wp-block-heading">Optional: Service &amp; Updates</h2>


<pre><code># Check service status / logs
sudo systemctl status jellyfin --no-pager
journalctl -u jellyfin -n 100 --no-pager

# Update Jellyfin when new releases arrive
sudo apt update && sudo apt -y upgrade
</code></pre>


<h2 class="wp-block-heading">Troubleshooting</h2>



<ul class="wp-block-list">
  <li><strong>Can’t reach HTTPS site:</strong> Confirm DNS points to your server; re-run Certbot and check <code>sudo nginx -t</code> and <code>journalctl -u nginx</code>.</li>
  <li><strong>Direct port works but proxy fails:</strong> Verify Nginx site is enabled and Jellyfin is listening on <code>8096</code>; restart both services.</li>
  <li><strong>Wrong client IPs:</strong> Add Nginx to <em>Known Proxies</em> in Jellyfin networking settings and reload.</li>
  <li><strong>Playback stutters:</strong> Prefer direct play/stream-copy codecs and wired networking; reduce transcode quality if CPU is saturated.</li>
</ul>



<p class="wp-block-paragraph">Ready to stream? Launch on an instant, low-cost <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium dedicated server</a> for reliable bandwidth and storage.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">You now have a secure Jellyfin media server with user accounts and HTTPS, ready for movies, TV, and music—hosted on fast, dependable ServerStadium hardware. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium website</a>.</p>

<p>The post <a href="https://serverstadium.com/knowledge-base/jellyfin-media-server-dedicated-servers/">Jellyfin Media Server: Movies and Music on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Easy File Sharing with FileBrowser on a Dedicated Server</title>
		<link>https://serverstadium.com/knowledge-base/filebrowser-simple-file-sharing-dedicated-servers/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 18:08:30 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12195</guid>

					<description><![CDATA[<p>Introduction This guide will walk you through installing FileBrowser—a simple, web-based file manager—on a ServerStadium VM or a dedicated server running Ubuntu 24.04. You’ll set up FileBrowser as a service, secure it with HTTPS via Nginx and Let’s Encrypt, and create user accounts with scoped access for safe, point-and-click file sharing. Prerequisites A ServerStadium dedicated&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/filebrowser-simple-file-sharing-dedicated-servers/">Easy File Sharing with FileBrowser on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">This guide will walk you through installing <strong>FileBrowser</strong>—a simple, web-based file manager—on a <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium VM</a> or a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">dedicated server</a> running Ubuntu 24.04. You’ll set up FileBrowser as a service, secure it with HTTPS via Nginx and Let’s Encrypt, and create user accounts with scoped access for safe, point-and-click file sharing.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium dedicated server</a> or <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">VM</a> with Ubuntu 24.04.</li>
  <li>A domain (e.g., <code>files.example.com</code>) pointing to your server’s public IP.</li>
  <li>SSH access with a sudo-capable user and an email address for Let’s Encrypt notices.</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Install FileBrowser (Official Script)</h2>



<p class="wp-block-paragraph">Use the project’s installer to fetch the latest binary:</p>


<pre><code>sudo apt update && sudo apt -y install curl unzip nginx certbot python3-certbot-nginx
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
filebrowser version
</code></pre>


<p class="wp-block-paragraph">Create a dedicated system user and directories for data and config:</p>


<pre><code>sudo useradd --system --create-home --home-dir /srv/share --shell /usr/sbin/nologin filebrowser
sudo mkdir -p /srv/share /etc/filebrowser
sudo chown -R filebrowser:filebrowser /srv/share /etc/filebrowser
</code></pre>


<h2 class="wp-block-heading">Step 2 — Initialize Database &amp; Create Admin</h2>



<p class="wp-block-paragraph">Initialize FileBrowser’s database, then add an admin account.</p>


<pre><code># Initialize the database file
sudo -u filebrowser filebrowser -d /etc/filebrowser/filebrowser.db config init

# Create an admin user (change password!)
sudo -u filebrowser filebrowser -d /etc/filebrowser/filebrowser.db users add admin 'ChangeThisStrongPassword!' --perm.admin
</code></pre>


<h2 class="wp-block-heading">Step 3 — Run FileBrowser as a Service</h2>



<p class="wp-block-paragraph">Run FileBrowser on localhost:8080 and reverse-proxy it with Nginx for HTTPS.</p>


<pre><code>sudo tee /etc/systemd/system/filebrowser.service &gt;/dev/null &lt;&lt;'EOF'
[Unit]
Description=FileBrowser
After=network.target

[Service]
User=filebrowser
Group=filebrowser
WorkingDirectory=/srv/share
ExecStart=/usr/local/bin/filebrowser \
  --database /etc/filebrowser/filebrowser.db \
  --address 127.0.0.1 --port 8080 \
  --root /srv/share
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now filebrowser
sudo systemctl status filebrowser --no-pager
</code></pre>


<h2 class="wp-block-heading">Step 4 — Nginx Reverse Proxy with HTTPS</h2>



<p class="wp-block-paragraph">Create a simple Nginx server block for your domain that proxies to FileBrowser on localhost.</p>


<pre><code>sudo tee /etc/nginx/sites-available/filebrowser &gt;/dev/null &lt;&lt;'EOF'
server {
    listen 80;
    server_name files.example.com;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
EOF

sudo ln -s /etc/nginx/sites-available/filebrowser /etc/nginx/sites-enabled/filebrowser
sudo nginx -t && sudo systemctl reload nginx

# Issue and install a Let's Encrypt certificate
sudo certbot --nginx -d files.example.com --redirect -m you@example.com --agree-tos -n
</code></pre>


<h2 class="wp-block-heading">Step 5 — Create Regular Users with Scoped Access</h2>



<p class="wp-block-paragraph">Give each user their own folder (scope) so they only see what they should.</p>


<pre><code># Example: user 'alice' limited to /srv/share/users/alice
sudo mkdir -p /srv/share/users/alice
sudo chown -R filebrowser:filebrowser /srv/share/users

sudo -u filebrowser filebrowser -d /etc/filebrowser/filebrowser.db users add alice 'AnotherStrongPass!' \
  --scope /srv/share/users/alice \
  --perm.create --perm.delete --perm.download --perm.modify --perm.rename --perm.share
</code></pre>


<p class="wp-block-paragraph">Log in at <code>https://files.example.com</code> using the <code>admin</code> account to create additional users or adjust permissions in <em>Settings → User Management</em>.</p>



<h2 class="wp-block-heading">Optional: Brand, Sharing Links, and Basic Security</h2>



<ul class="wp-block-list">
  <li><strong>Branding:</strong> Set a name/logo in <em>Settings → Global Settings</em> or via CLI (e.g., <code>filebrowser config set --branding.name "Your Company"</code>).</li>
  <li><strong>Share links:</strong> Ensure users have the <em>share</em> permission, then use the “Share” action to generate links for clients and teammates.</li>
  <li><strong>Firewall:</strong> Allow web traffic and keep FileBrowser bound to localhost:
    <br><code>sudo ufw allow 80,443/tcp &amp;&amp; sudo ufw enable</code>
  </li>
</ul>



<h2 class="wp-block-heading">Troubleshooting</h2>



<ul class="wp-block-list">
  <li><strong>502/Bad Gateway:</strong> Check the service and Nginx logs:
    <br><code>journalctl -u filebrowser -n 100 --no-pager</code> &nbsp;and&nbsp; <code>journalctl -u nginx -n 100 --no-pager</code>.
  </li>
  <li><strong>Can’t log in:</strong> Reset a user’s password:
    <br><code>sudo -u filebrowser filebrowser -d /etc/filebrowser/filebrowser.db users update alice --password 'NewPass!'</code>
  </li>
  <li><strong>Permissions/visibility:</strong> Verify the user’s <em>scope</em> path and ownership under <code>/srv/share</code>; keep ownership with <code>filebrowser:filebrowser</code>.</li>
  <li><strong>SSL not issuing:</strong> Confirm DNS is pointing to your server and ports 80/443 are open; re-run <code>certbot --nginx</code>.</li>
</ul>



<p class="wp-block-paragraph">Need a quick, affordable start? Spin up an instant <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium dedicated server</a> and get FileBrowser online in minutes.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">With FileBrowser running behind HTTPS on ServerStadium, you’ve got a clean, point-and-click way to share files securely with clients and teammates. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium website</a>.</p>

<p>The post <a href="https://serverstadium.com/knowledge-base/filebrowser-simple-file-sharing-dedicated-servers/">Easy File Sharing with FileBrowser on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Simple Static Website Hosting with Caddy and Let’s Encrypt</title>
		<link>https://serverstadium.com/knowledge-base/caddy-static-site-lets-encrypt-dedicated-servers/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 18:00:35 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12192</guid>

					<description><![CDATA[<p>Introduction This step-by-step guide shows how to host a static website with Caddy (automatic HTTPS included) on a ServerStadium dedicated server or a ServerStadium VM running Ubuntu 24.04. You’ll install Caddy, point your domain, enable free TLS via Let’s Encrypt, and add simple caching—no prior Nginx/Apache experience required. Prerequisites A ServerStadium dedicated server or VM&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/caddy-static-site-lets-encrypt-dedicated-servers/">Simple Static Website Hosting with Caddy and Let’s Encrypt</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">This step-by-step guide shows how to host a static website with <strong>Caddy</strong> (automatic HTTPS included) on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> or a <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium VM</a> running Ubuntu 24.04. You’ll install Caddy, point your domain, enable free TLS via Let’s Encrypt, and add simple caching—no prior Nginx/Apache experience required.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> or <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">VM</a> with Ubuntu 24.04.</li>
  <li>A domain name with an A/AAAA record pointing to your server’s public IP.</li>
  <li>SSH access with a sudo-capable user, and an email address for TLS notices.</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Install Caddy (Official Repository)</h2>



<p class="wp-block-paragraph">Install from Caddy’s official repository to get the latest stable version.</p>


<pre><code>sudo apt update
sudo apt -y install debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt -y install caddy
</code></pre>


<h2 class="wp-block-heading">Step 2 — Create Your Web Root and a Test Page</h2>


<pre><code>sudo mkdir -p /var/www/static-site

sudo tee /var/www/static-site/index.html >/dev/null <<'EOF'
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>Welcome</title></head>
<body>
  <h1>It works! Caddy on ServerStadium</h1>
  <p>Your static site is live and ready for content.</p>
</body>
</html>
EOF

# The Caddy service on Ubuntu runs as the "caddy" user; grant read access:
sudo chown -R caddy:caddy /var/www/static-site
</code></pre>


<h2 class="wp-block-heading">Step 3 — Configure Your Caddyfile (Automatic HTTPS)</h2>



<p class="wp-block-paragraph">Replace <code>example.com</code> with your domain. Caddy will automatically obtain and renew TLS certificates from Let’s Encrypt as long as DNS points to your server.</p>


<pre><code>sudo tee /etc/caddy/Caddyfile >/dev/null <<'EOF'
{
  email you@example.com
}

example.com, www.example.com {
  root * /var/www/static-site
  file_server
  encode gzip zstd

  @assets {
    path *.css *.js *.png *.jpg *.jpeg *.svg *.ico *.webp *.woff *.woff2
  }
  header @assets Cache-Control "public, max-age=31536000, immutable"
}
EOF

# Validate and apply:
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl enable --now caddy
sudo systemctl reload caddy
</code></pre>


<h2 class="wp-block-heading">Step 4 — Open the Firewall</h2>


<pre><code>sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
</code></pre>


<h2 class="wp-block-heading">Step 5 — Test Your Site</h2>



<ul class="wp-block-list">
  <li>Visit <code>http://example.com</code> first—Caddy will redirect to HTTPS after the certificate is issued.</li>
  <li>Check the service logs if needed: <code>sudo journalctl -u caddy -n 100 --no-pager</code>.</li>
</ul>



<h2 class="wp-block-heading">Optional: Redirect “www” to Root (or Vice Versa)</h2>



<p class="wp-block-paragraph">The site label above already covers both <code>example.com</code> and <code>www.example.com</code>. If you prefer a strict redirect, use two site blocks like this:</p>


<pre><code>sudo tee /etc/caddy/Caddyfile >/dev/null <<'EOF'
{
  email you@example.com
}

www.example.com {
  redir https://example.com{uri} permanent
}

example.com {
  root * /var/www/static-site
  file_server
  encode gzip zstd
  @assets { path *.css *.js *.png *.jpg *.jpeg *.svg *.ico *.webp *.woff *.woff2 }
  header @assets Cache-Control "public, max-age=31536000, immutable"
}
EOF

sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl reload caddy
</code></pre>


<h2 class="wp-block-heading">Deploying Content</h2>



<ul class="wp-block-list">
  <li>Place files under <code>/var/www/static-site</code> (HTML, CSS, JS, images). Caddy serves them instantly—no reload required unless you change the Caddyfile.</li>
  <li>For simple versioning, keep your site in a Git repo and deploy with <code>git pull</code> to the web root.</li>
</ul>



<h2 class="wp-block-heading">Optional: Basic Password Protection</h2>



<p class="wp-block-paragraph">Protect a folder with Basic Auth while you stage content. Generate a hash and add a rule:</p>


<pre><code># Generate a password hash:
caddy hash-password --plaintext 'YourStrongPassword!'

# Example Caddyfile snippet to protect /private
example.com {
  root * /var/www/static-site
  file_server
  basicauth /private {
    admin JDJhJDE...paste-the-generated-hash-here...
  }
}
</code></pre>


<h2 class="wp-block-heading">Troubleshooting</h2>



<ul class="wp-block-list">
  <li><strong>Certificate not issued:</strong> Confirm DNS A/AAAA records point to your server and ports 80/443 are open. Check logs: <code>journalctl -u caddy</code>.</li>
  <li><strong>403/404 errors:</strong> Verify <code>root *</code> path and file permissions. Ensure web root is readable by the <code>caddy</code> user.</li>
  <li><strong>Changes not applied:</strong> After editing <code>/etc/caddy/Caddyfile</code>, run <code>sudo caddy validate</code> then <code>sudo systemctl reload caddy</code>.</li>
</ul>



<p class="wp-block-paragraph">Want a hassle-free start? Choose an instant, low-cost <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium dedicated server</a> and deploy your static site in minutes.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">You’ve deployed a secure static website with automatic HTTPS using Caddy on ServerStadium infrastructure—fast, simple, and production-ready. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium website</a>.</p>

<p>The post <a href="https://serverstadium.com/knowledge-base/caddy-static-site-lets-encrypt-dedicated-servers/">Simple Static Website Hosting with Caddy and Let’s Encrypt</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
