docker 中的nginx頁面,windows 訪問200 ,linux訪問301 這是什么情況(下面附nginx、docker相關(guān)配置)
宿主機(jī)ip 192.168.251.172
windows 訪問
linux 訪問
nginx的訪問日志
nginx 加的配置
location /test {
#root /usr/share/nginx/html;
root /opt/hsq/;
index index.html index.htm;
}
docker 容器詳細(xì)
[
{
"Id": "4881ad1456bc68b1972c2f17443fa2a25abaa0c2470757cefc475cee2afdfa46",
"Created": "2018-06-11T03:00:09.642318467Z",
"Path": "/bin/bash",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 22892,
"ExitCode": 0,
"Error": "",
"StartedAt": "2018-06-11T03:00:10.487932071Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:cd5239a0906a6ccf0562354852fae04bc5b52d72a2aff9a871ddb6bd57553569",
"ResolvConfPath": "/var/lib/docker/containers/4881ad1456bc68b1972c2f17443fa2a25abaa0c2470757cefc475cee2afdfa46/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/4881ad1456bc68b1972c2f17443fa2a25abaa0c2470757cefc475cee2afdfa46/hostname",
"HostsPath": "/var/lib/docker/containers/4881ad1456bc68b1972c2f17443fa2a25abaa0c2470757cefc475cee2afdfa46/hosts",
"LogPath": "/var/lib/docker/containers/4881ad1456bc68b1972c2f17443fa2a25abaa0c2470757cefc475cee2afdfa46/4881ad1456bc68b1972c2f17443fa2a25abaa0c2470757cefc475cee2afdfa46-json.log",
"Name": "/web1",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/opt/hsq/nginx:/etc/nginx",
"/opt/hsq/test/:/opt/hsq/test/"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "80"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "shareable",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8d6eec1ff1b54e0fdb18149e653d7233b6c8f430ed31a4af352cbbcd1b5a8a13-init/diff:/var/lib/docker/overlay2/c7375eaaa06f696804de134dfd9c8df85cb4f6dc48f23b4749cdee5c4ce99f04/diff:/var/lib/docker/overlay2/298a78c1ff783b76ce47bc0911cbc2edbdabcfa018bd394176bbc708efec6380/diff:/var/lib/docker/overlay2/1b4f7f84d028b44aaf902cbe815ad62f5967b0c8e802c8046f454478bc9b6c54/diff",
"MergedDir": "/var/lib/docker/overlay2/8d6eec1ff1b54e0fdb18149e653d7233b6c8f430ed31a4af352cbbcd1b5a8a13/merged",
"UpperDir": "/var/lib/docker/overlay2/8d6eec1ff1b54e0fdb18149e653d7233b6c8f430ed31a4af352cbbcd1b5a8a13/diff",
"WorkDir": "/var/lib/docker/overlay2/8d6eec1ff1b54e0fdb18149e653d7233b6c8f430ed31a4af352cbbcd1b5a8a13/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/opt/hsq/nginx",
"Destination": "/etc/nginx",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/hsq/test",
"Destination": "/opt/hsq/test",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "4881ad1456bc",
"Domainname": "",
"User": "",
"AttachStdin": true,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"80/tcp": {}
},
"Tty": true,
"OpenStdin": true,
"StdinOnce": true,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.15.0-1~stretch",
"NJS_VERSION=1.15.0.0.2.1-1~stretch"
],
"Cmd": [
"/bin/bash"
],
"Image": "nginx",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"maintainer": "NGINX Docker Maintainers <docker-maint@nginx.com>"
},
"StopSignal": "SIGTERM"
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "f7b425debef4a8752fc4f13688054f073dff0ca65320faf3f328fe4f5804f247",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "80"
}
]
},
"SandboxKey": "/var/run/docker/netns/f7b425debef4",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "fb6a9bb1e78b71dbfcae2ff8bdafb59a4997bad5cffaed397665ff3f765120e7",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "bf49f453d20badf43be6d756c3b83e844ac1ab0800042e8a681c9b230628f380",
"EndpointID": "fb6a9bb1e78b71dbfcae2ff8bdafb59a4997bad5cffaed397665ff3f765120e7",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
}
}
]
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。