migrate to new git
This commit is contained in:
18
web/sites/Web.config
Normal file
18
web/sites/Web.config
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
|
||||
</system.web>
|
||||
<location path="sites">
|
||||
<system.web>
|
||||
<authorization>
|
||||
<!--<allow users ="*" />-->
|
||||
<deny users="*" />
|
||||
</authorization>
|
||||
</system.web>
|
||||
</location>
|
||||
</configuration>
|
||||
|
||||
<!--
|
||||
https://docs.microsoft.com/zh-TW/troubleshoot/developer/webapps/aspnet/www-authentication-authorization/authorization-permissions
|
||||
-->
|
||||
1
web/sites/default/upload/images/logo.svg
Normal file
1
web/sites/default/upload/images/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M381.2 172.8C377.1 164.9 368.9 160 360 160h-156.6l50.84-127.1c2.969-7.375 2.062-15.78-2.406-22.38S239.1 0 232 0h-176C43.97 0 33.81 8.906 32.22 20.84l-32 240C-.7179 267.7 1.376 274.6 5.938 279.8C10.5 285 17.09 288 24 288h146.3l-41.78 194.1c-2.406 11.22 3.469 22.56 14 27.09C145.6 511.4 148.8 512 152 512c7.719 0 15.22-3.75 19.81-10.44l208-304C384.8 190.2 385.4 180.7 381.2 172.8z"/></svg>
|
||||
|
After Width: | Height: | Size: 626 B |
BIN
web/sites/default/upload/images/logo.zip
Normal file
BIN
web/sites/default/upload/images/logo.zip
Normal file
Binary file not shown.
1
web/sites/site1.local/upload/images/logo.svg
Normal file
1
web/sites/site1.local/upload/images/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M256 224C238.4 224 223.1 238.4 223.1 256S238.4 288 256 288c17.63 0 32-14.38 32-32S273.6 224 256 224zM470.2 128c-10.88-19.5-40.51-50.75-116.3-41.88C332.4 34.88 299.6 0 256 0S179.6 34.88 158.1 86.12C82.34 77.38 52.71 108.5 41.83 128c-16.38 29.38-14.91 73.12 25.23 128c-40.13 54.88-41.61 98.63-25.23 128c29.13 52.38 101.6 43.63 116.3 41.88C179.6 477.1 212.4 512 256 512s76.39-34.88 97.9-86.13C368.5 427.6 441 436.4 470.2 384c16.38-29.38 14.91-73.13-25.23-128C485.1 201.1 486.5 157.4 470.2 128zM95.34 352c-4.001-7.25-.1251-24.75 15-48.25c6.876 6.5 14.13 12.87 21.88 19.12c1.625 13.75 4.001 27.13 6.751 40.13C114.3 363.9 99.09 358.6 95.34 352zM132.2 189.1C124.5 195.4 117.2 201.8 110.3 208.2C95.22 184.8 91.34 167.2 95.34 160c3.376-6.125 16.38-11.5 37.88-11.5c1.75 0 3.876 .375 5.751 .375C136.1 162.2 133.8 175.6 132.2 189.1zM256 64c9.502 0 22.25 13.5 33.88 37.25C278.6 105 267.4 109.3 256 114.1C244.6 109.3 233.4 105 222.1 101.2C233.7 77.5 246.5 64 256 64zM256 448c-9.502 0-22.25-13.5-33.88-37.25C233.4 407 244.6 402.7 256 397.9c11.38 4.875 22.63 9.135 33.88 12.89C278.3 434.5 265.5 448 256 448zM256 336c-44.13 0-80.02-35.88-80.02-80S211.9 176 256 176s80.02 35.88 80.02 80S300.1 336 256 336zM416.7 352c-3.626 6.625-19 11.88-43.63 11c2.751-12.1 5.126-26.38 6.751-40.13c7.752-6.25 15-12.63 21.88-19.12C416.8 327.2 420.7 344.8 416.7 352zM401.7 208.2c-6.876-6.5-14.13-12.87-21.88-19.12c-1.625-13.5-3.876-26.88-6.751-40.25c1.875 0 4.001-.375 5.751-.375c21.5 0 34.51 5.375 37.88 11.5C420.7 167.2 416.8 184.8 401.7 208.2z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
1
web/sites/site2.local/upload/images/logo.svg
Normal file
1
web/sites/site2.local/upload/images/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M9.375 233.4C3.375 239.4 0 247.5 0 256v128c0 8.5 3.375 16.62 9.375 22.62S23.5 416 32 416h32V224H32C23.5 224 15.38 227.4 9.375 233.4zM464 96H352V32c0-17.62-14.38-32-32-32S288 14.38 288 32v64H176C131.8 96 96 131.8 96 176V448c0 35.38 28.62 64 64 64h320c35.38 0 64-28.62 64-64V176C544 131.8 508.3 96 464 96zM256 416H192v-32h64V416zM224 296C201.9 296 184 278.1 184 256S201.9 216 224 216S264 233.9 264 256S246.1 296 224 296zM352 416H288v-32h64V416zM448 416h-64v-32h64V416zM416 296c-22.12 0-40-17.88-40-40S393.9 216 416 216S456 233.9 456 256S438.1 296 416 296zM630.6 233.4C624.6 227.4 616.5 224 608 224h-32v192h32c8.5 0 16.62-3.375 22.62-9.375S640 392.5 640 384V256C640 247.5 636.6 239.4 630.6 233.4z"/></svg>
|
||||
|
After Width: | Height: | Size: 941 B |
1
web/sites/site3.local/upload/images/logo.svg
Normal file
1
web/sites/site3.local/upload/images/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M156.6 384.9L125.7 353.1C117.2 345.5 114.2 333.1 117.1 321.8C120.1 312.9 124.1 301.3 129.8 288H24C15.38 288 7.414 283.4 3.146 275.9C-1.123 268.4-1.042 259.2 3.357 251.8L55.83 163.3C68.79 141.4 92.33 127.1 117.8 127.1H200C202.4 124 204.8 120.3 207.2 116.7C289.1-4.07 411.1-8.142 483.9 5.275C495.6 7.414 504.6 16.43 506.7 28.06C520.1 100.9 516.1 222.9 395.3 304.8C391.8 307.2 387.1 309.6 384 311.1V394.2C384 419.7 370.6 443.2 348.7 456.2L260.2 508.6C252.8 513 243.6 513.1 236.1 508.9C228.6 504.6 224 496.6 224 488V380.8C209.9 385.6 197.6 389.7 188.3 392.7C177.1 396.3 164.9 393.2 156.6 384.9V384.9zM384 167.1C406.1 167.1 424 150.1 424 127.1C424 105.9 406.1 87.1 384 87.1C361.9 87.1 344 105.9 344 127.1C344 150.1 361.9 167.1 384 167.1z"/></svg>
|
||||
|
After Width: | Height: | Size: 980 B |
34
web/sites/sites-config.json
Normal file
34
web/sites/sites-config.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"sites": [
|
||||
{
|
||||
"url": "site1.local",
|
||||
"folder": "site1.local",
|
||||
"connection": "SQL Conn String : site1.local",
|
||||
"title": "網站一"
|
||||
},
|
||||
{
|
||||
"url": "site2.local",
|
||||
"folder": "site2.local",
|
||||
"connection": "SQL Conn String : site1.local",
|
||||
"title": "網站二"
|
||||
},
|
||||
{
|
||||
"url": "site3.local",
|
||||
"folder": "site3.local",
|
||||
"connection": "SQL Conn String : site1.local",
|
||||
"title": "網站三"
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
"url": "*",
|
||||
"folder": "default",
|
||||
"connection": "SQL Conn String : default",
|
||||
"title": "*"
|
||||
},
|
||||
"resource": {
|
||||
"assets": "assets",
|
||||
"config": "config",
|
||||
"modules": "modules",
|
||||
"upload": "upload"
|
||||
}
|
||||
}
|
||||
21
web/sites/sites.txt
Normal file
21
web/sites/sites.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# 目的
|
||||
單一空間可存放多個網站
|
||||
網站程式都一樣, 但各有檔案空間
|
||||
網站以進入域名識別, 各自空間不能互相存取
|
||||
(某些檔案夾可能放在別台主機上)
|
||||
|
||||
# 路徑
|
||||
sites : 正常時無法存取
|
||||
sites/sites-config.json(或XML) : 全主機設定檔
|
||||
sites/site?.local資料夾: 依域名指向個別資料夾
|
||||
(域名資料夾)
|
||||
config : 相關設定檔, 不能從HTTP存取
|
||||
assets : 網站基本靜態檔(影像, JS, CSS...)
|
||||
modules : 個別客戶客製程式(暫訂)
|
||||
upload : 個別網站的上傳路徑, (可能指向別台主機)
|
||||
|
||||
# 作法例:
|
||||
將 https://site1.local 的upload路徑指到對應路徑
|
||||
頁面中存取 https://site1.local/upload/news/123.jpg
|
||||
實際路徑 ~/sites/site1.local/upload/news/123.jpg
|
||||
Reference in New Issue
Block a user