小编Not*_*aeL的帖子

如果指令在 apache VirtualHost conf 中不起作用,则显示“无效命令”

为什么??

<VirtualHost *:80>
        ServerAdmin admin@mydomain.com
        DirectoryIndex index.php
        <If "%{SERVER_PROTOCOL} != 'HTTPS'">
            Redirect / https://www.mydomain.com:443/
        </If>
.....
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

保存,然后重启:

sudo /etc/init.d/apache2 restart
Syntax error on line 4 of /etc/apache2/sites-enabled/000-default:
Invalid command '<If', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!
Run Code Online (Sandbox Code Playgroud)

scripting httpd.conf redirect virtualhost apache-2.2

8
推荐指数
1
解决办法
1万
查看次数

使用腻子客户端的 SMB SSH 隧道非常缓慢

我已经使用 putty SSH 客户端设置了一个 SMB SSH 隧道,以直接从我的 Windows 机器上的服务器编辑我的网页(也是因为我的 virtuazoo 服务器不允许 NFS)。

即使将河豚设置为加密算法,它也会变得非常慢(2-3 KB/s)

任何提高性能的想法?

performance ssh server-message-block ssh-tunnel

2
推荐指数
1
解决办法
1541
查看次数