服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我有一个可以在/auth-admin上进行授权的服务。 我可以确认它适用于静态网页。 但是,如果页面有一些像phpmyadminloginapi调用, auth_request将打破它。 什么是设置auth_request的正确方法? server { listen 443 ssl; server_name example.com; location / { proxy_pass http://192.168.1.13:8085; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /auth-admin { internal; proxy_pass http://192.168.1.13:8085/auth.php?admin; } location /phpmyadmin/ { auth_request /auth-admin; proxy_pass http://192.168.1.13:8086/; add_header X-Frame-Options "SAMEORIGIN"; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto […]
我一直在尝试设置无盘机器,以便从FreeNAS 11上运行的iSCSI目标直接启动Windows 10 Pro x64。iSCSI目标的zvol位于两个镜像SSD上。 这是目前testing设置的概念certificate之前,我投入更多的时间和金钱进入这种types的configuration。 通过我在本机中使用的Intel X540-T1 10GbE网卡上的Option ROM完成与iSCSI目标的连接。 (我也用iPXE挂钩iSCSI目标)这似乎没有问题连接到目标。 我用来安装Windows的映像是我添加了NIC驱动程序的版本1511图像。 在此之前,我还将iSCSI启动器服务设置为自动,将其安装在VM上,设置服务,sysprepping,然后使用DISM捕获映像。 我以前可以 a)使用英特尔的OpROM连接到目标 b)使用本地安装媒体(USB)将Windows 10直接安装到所述目标上。 它能够在安装过程中看到iSCSI目标而不会受到挑衅。 重新启动后安装后,Windows将开始引导,但然后迅速(看似)失去连接到目标,因为没有networking活动,并最终蓝屏与INACCESSIBLE_BOOT_DEVICE错误消息。 使用iPXE / wimboot / WinPE将Windows直接安装到iSCSI目标上时,结果相同。 有谁能告诉我我在做什么错在这里? 我在这个领域里有点新鲜,所以我觉得我一定在做一些愚蠢的事情。 提前致谢
我有一个远程vps亚马逊ec2。 我想使用openvpn客户端。 Openvpn运行成功,但我无法通过SSH连接到它。 (remote vps) <–––––> through vpn <–––> some remote sites(many ips) ^ (this works) | | (can't connect) | (my pc) openvpn客户端运行时,如何连接到远程vps? client.conf client dev tun proto udp remote vpnserver.com 1198 resolv-retry infinite nobind persist-key persist-tun cipher aes-128-cbc auth sha1 tls-client remote-cert-tls server auth-user-pass auth.txt comp-lzo verb 1 reneg-sec 0 crl-verify crl.rsa.2048.pem ca […]
我已经使用Apache2在Ubuntu服务器上通过https(自签名)创build了一个WebDAV共享。 当我尝试将其添加为networking位置(在Windows 10上)时,它失败,说该文件夹无效。 我试图映射到一个驱动器使用net use p: https://example.com/webdav但它失败说System error 1790 has occurred. The network logon failed. System error 1790 has occurred. The network logon failed. 我的Apacheconfiguration是: Alias /webdav /var/www/webdav <Directory /var/www/webdav> DAV On AuthType Digest AuthName "webdav" AuthUserFile /etc/apache2/users.password Require valid-user RewriteEngine off Satisfy all Order allow,deny Allow from all ForceType application/octet-stream Options Indexes </Directory> Cyberduck可以使用https连接到驱动器。 […]
我不断看到这个新的debian 9.1安装。 启动过程中只有轻微的延迟,但下面的扫描工作正常。 小但烦人的事情。 任何我需要修复? 我试图通过日志search,但无法find事件: :〜#dmesg | grep -i lvmet :〜#grep -i lvmet /var/log/*.log :〜#journalctl | grep -i lvmet 注意:lvm卷是root,swap和home,并且都不encryption。 安装iso: https : //cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.1.0-amd64-mate.iso
我正在尝试使用自动化软件安装并运行SonicWALL NetExtender,该软件允许我将文件上载到目标计算机,并在该计算机上运行命令。 所以,我上传SonicWALL的证书,上传NetExtender,运行它,然后尝试连接。 整个过程工作正常,除了一个部分需要手动参与,这是打破了我的能力,导致大量的东西被自动化。 NetExtender软件询问有关证书。 我该如何阻止? 这是我创build的日志。 "C:\Program Files (x86)\SonicWall\SSL-VPN\NetExtender\NECLI.exe" connect -s DNSNAME:#### -u vpnconn -d LocalDomain -p "NotPublic" Connecting… There is a problem with the site's security certificate. Warning: The security certificate was issued by a company you have not chosen to trust. View the certificate to determine whether you want to trust the […]
我有一个基于RPI的系统,我想克隆。 我的SD卡是32 G,有25G可用空间。 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *31.9 GB disk1 1: Windows_FAT_32 boot 64.0 MB disk1s1 2: Linux 2.4 GB disk1s2 3: Linux 29.4 GB disk1s3 当我使用dd if=/dev/disk1 of=./my.img bs=1m 我得到一个32G img文件。 我的问题:是否可以创build一个实际使用的空间的图像? 我可以创build一个可以闪存到16G SD的IMG吗? 注意: 我试图count=6000 (build议在这里https://stackoverflow.com/questions/43210957/osx-truncate-sd-card-img ),但它没有工作 结果32G img不能使用Eacher闪存到32G SD,因为它说img太大了。 当我试图用dd来刷新img时,RPI不能和sd一起。 请帮忙。
我为自己的LDAP用户安装了autofs的主目录。 除了一台电脑之外,它的function就像一个魅力。 在LDAP日志中,我有: ldap rpc.mountd[975]: authenticated mount request from 192.168.0.XX:845 for /export/home/adminlocal (/export/home) ldap rpc.mountd[975]: can't stat exported dir /export/home/adminlocal: No such file or directory Adminlocal是本地帐户,不是LDAP帐户。 奇怪的事情:这些日志出现在login屏幕之前(实际上,login屏幕不显示,加载光标保持黑色)。 我尝试了auto.master中的switch + auto.master和+ dir:/etc/autofs/auto.master.d( 无法阻止autofs挂载到本地主目录 )。 没有效果我也尝试添加adminlocal / – 在我的auto.home( 如何防止autofs挂载在特定的目录? )。 我得到: ldap rpc.mountd[1000]: authenticated mount request from 192.168.0.XX:740 for /export/home/.Trash-1000 (/export/home) ldap rpc.mountd[1000]: can't stat exported […]
我做了这个https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04 然后从下面的apache切换到nginx *** https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04 ***一切都很好。 但现在facebookdebugging器给我:curl错误:SSL_CACERT SSL证书问题:无法获得本地发行者证书 ***问:如何重新下载证书颁发机构的所有证书,并在我的情况下重新下载? Alexs-MacBook-Air:~ alex$ openssl s_client -connect goeasysmile.com:443 CONNECTED(00000003) depth=0 /CN=goeasysmile.com verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 /CN=goeasysmile.com verify error:num=27:certificate not trusted verify return:1 depth=0 /CN=goeasysmile.com verify error:num=21:unable to verify the first certificate verify return:1 — Certificate chain 0 s:/CN=goeasysmile.com i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 […]
任何人都可以帮助我设置“对象更改通知”的问题。 我正试图执行“ gsutil notification watchbucket https://<my_project_id>.appspot.com/ gs://glrs_test_deepshikha 这是给错误: ServiceException: 401 Unauthorized WebHook callback channel: https://<my_project_id>.appspot.com/ 我已成功validation域名为所有者。 能够使用gsutil cp加载文件。 但是,gsutil watchbucket不工作,请帮忙