Aben's Blog

vuePress-theme-reco Aben    2020 - 2025
Aben's Blog Aben's Blog

Choose mode

  • dark
  • auto
  • light
Home
Category
  • Docker
  • golang
  • Node.js
  • iOS
  • macOS
Tag
TimeLine
More
  • GitHub
  • Backend
author-avatar

Aben

17

Article

22

Tag

Home
Category
  • Docker
  • golang
  • Node.js
  • iOS
  • macOS
Tag
TimeLine
More
  • GitHub
  • Backend

Nginx conf for Xcode DocC

vuePress-theme-reco Aben    2020 - 2025

Nginx conf for Xcode DocC

Aben 2021-07-27 19:07:45 SwiftDocCXcodeNginx
   server {
      listen 0.0.0.0:8080;
      
      location / {
          return 301 http://docc.io84.com/documentation/abalbum ;
      }
  
      location ~* ^/(documentation|tutorials) {
          root   /app;
          try_files $uri $uri/ /documentation/index.html;
      }

      location ~* ^/(css|js|data|images|downloads|img|videos)\/.*$ {
          root   /app;
          try_files $uri /documentation/$uri;
      }
      
      location ~* ^/(favicon\.ico|favicon\.svg|theme-settings\.json)$ {
          root   /app;
          try_files $uri /documentation/$uri;
      }
  }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
http://localhost/documentation/yourdocument
1