問題タブ [litespeed]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
3 に答える
2632 参照

php - HEAD リクエストに対する PHP レスポンス

PDF ファイルの一部をバイト範囲で提供する PHP スクリプトがあります。

HTTP HEAD リクエストを受信した場合、実際のファイルの内容ではなく、ヘッダー (PDF ファイルのサイズを含む) を返信する必要があります。私はこれを試しました:

問題は、何か (Web サーバー == LiteSpeed だと思います) が Content-Length ヘッダーをContent-Length: 0- に置き換えて、目的全体を無効にすることです。

誰が私が何をすべきかを提案できますか? ありがとう

0 投票する
2 に答える
1099 参照

php - litespeed - 致命的なエラー: 未定義関数 curl_init() の呼び出し

VPS(PHP 5.6.29)で実行litespeed 5.1.11しています。Centos 6.8cUrlは自分のphpコードで使用しています。Web ページとしてブラウジングしてコードを実行するとすべて正常に動作しますが、コマンドで実行するとエラーが発生しました:
Fatal error: Call to undefined function curl_init()
どうすれば修正できますか?

この構成パラメーターを使用してphpをコンパイルします。

'./configure' '--prefix=/usr/local/lsws/lsphp5' '--disable-fileinfo' '--with-bz2' '--enable-zip' '--with-curl' '-- with-mysql' '--with-mysql-sock' '--with-sqlite' '--with-tidy' '--with-xpm-dir' '--enable-pdo' '--with-pdo- sqlite' '--with-pdo-mysql' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-soap' '--with-gettext' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-mcrypt' '--with-mysqli' '-- with-openssl''--with-pic''--with-png-dir''--with-zlib''--with-pcre-regex''--with-gd''--enable-shmop' '--enable-track-vars''--enable-sockets''--enable-sysvsem''--enable-sysvshm''--enable-magic-quotes''--enable-mbstring''--with- iconv''--enable-json''--with-litespeed'

そして、phpinfo の cUrl セクション: phpinfo

0 投票する
1 に答える
75 参照

php - litespeedのvaryキャッシュで同じURLに異なるキャッシュを設定するには?

このドキュメントでは、vary の使用方法についての説明はごくわずかです。

https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:developer_guide:response_headers

X-LiteSpeed-Vary: cookie=cookie1,cookie=cookie2

より詳細なドキュメントはありますか?