为什么??
<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) 我已经使用 putty SSH 客户端设置了一个 SMB SSH 隧道,以直接从我的 Windows 机器上的服务器编辑我的网页(也是因为我的 virtuazoo 服务器不允许 NFS)。
即使将河豚设置为加密算法,它也会变得非常慢(2-3 KB/s)
任何提高性能的想法?
apache-2.2 ×1
httpd.conf ×1
performance ×1
redirect ×1
scripting ×1
ssh ×1
ssh-tunnel ×1
virtualhost ×1