# multiweb
Serve multiple websites easily using Go.

Base URL: *sites.example.com

Site 1: foo.com

Site 2: bar.com

Folder structure:
```
sites
	- foo.com
	- bar.com
```
foo.com DNS CNAME: `foo.com.sites.example.com`

bar.com DNS CNAME: `bar.com.sites.example.com`

# multiweb
Serve multiple websites easily using Go.

Base URL: `sites.example.com`

Folder structure:
```
sites // The root folder
    - foo.com
        - www                   // foo.com website files go here.
        - ssl                   // SSL certs for foo.com go here
            ssl.bundle.crt      // SSL bundle for site
            ssl.key             // SSL key
        - a                     // a.foo.com
            - www               // a.foo.com site files.
            - ssl               // SSL certs for a.foo.com  
                ssl.bundle.crt
                ssl.key
        - b
            - www
    - bar.com
        - www
        - c
            - www
        - d
            - www
            - ssl
                ssl.bundle.crt
                ssl.key
```
foo.com DNS CNAME: `foo.com.sites.example.com`

bar.com DNS CNAME: `bar.com.sites.example.com`

c.bar.com DNS CNAME: `c.bar.com.sites.example.com`
Update folder structure in readme
Update folder structure in readme
