/assets/avatar.png

Live Long and Prosper 🖖

Creating Subdomains with Apache Virtual Hosts | Apache Subdomain Virtual Host Example

Set Up Subdomains with Apache Virtual Hosts

Some people are unaware that the “www” part of the URL is actually a subdomain (http://www.example.com), and can (in theory) point to a different location than http://example.com - it is not advised that you use www as an active sudomain, as most people expect both example.com and www.example.com to have the same content.

This is actually the basis for canonicalisation, but that’s another blog post altogether

So how do we set up subdomains using Apache virtual hosts? It’s actually very simple, we just need to configure two things, follow this guide for a very simple apache subdomain virtual host example: Apache Virtual Host Configuration File

Discover the volume identifier for your EFI boot partition.

Run this command:

diskutil list The output should look something like this:

1
2
3
4
5
 #: TYPE                     NAME          SIZE       IDENTIFIER
 0: GUID_partition_scheme                  *251.0 GB  disk0
 1: EFI                                    209.7 MB   disk0s1
 2: Apple_HFS                Macintosh HD  250.1 GB   disk0s2
 3: Apple_Boot               Recovery HD   650.0 MB   disk0s3

In this case, the volume identifier of the EFI partition is disk0s1

facebook 设计总监人才标准

如果你是一位这样的设计师: 你很重视「连结、赋权予全人类」的任务。 相较于一小群你认识的人,为数以百万计的人解决问题,更能令你感到满足。 充满好奇