問題タブ [apache2-module]

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 に答える
11988 参照

php - PHP サーバー API を CGI/FastCGI から Apache 2.0 Handler に変更するには?

PHP がサーバー API CGI/FastCGI で実行されている Plesk 12 サーバーがあります。しかし、スクリプト要件の一部を Apache 2.0 Handler に変更する必要があります。

Apache 2.0 ハンドラーを有効にするために Apache 構成でいくつかの変更を行いましたが、成功しませんでした。

これから私を助けてください。

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

apache - Raspberry Pi の Apache2 2.2 に mod_proxy_wstunnel を追加する方法 (バックポート mod_proxy_wstunnel)

Raspberry Pi はまだ Apache 2.2 (現在 2.2.22-13+deb7u4) を使用しています。Websockets (「ProxyPass」) のプロキシとして Apache を使用するには、Apache モジュール mod_proxy_wstunnel が必要です。

Apache モジュール mod_proxy_wstunnel は、httpd 2.4.5 以降で使用できます。

mod_proxy_wstunnel を Raspberry Pi 上の Apache2 2.2 に追加するにはどうすればよいですか (バックポート mod_proxy_wstunnel)?

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

apache - Apache HTTP サーバーでリクエスト URL に基づいてフィルタリングする方法

アプリケーションとクライアントの間に Apache http サーバーを配置したいと考えています。

クライアントからのアクセスでは、クエリ パラメータを渡す必要があります。たとえば、クライアントがhttp://myhost:myport/myappで実行されている場合、パラメーター myparam を渡すことによってのみアクセスする必要があります。http://myhost:myport/myapp?myparam=123のように。

したがって、私のApache httpサーバーでは、クエリパラメーターmyparamを含まないリクエストをフィルタリングしたいと考えています。

フィルターを使ってみました。定義済みのフィルターがいくつかありますが、私の要件を満たすフィルターはありません。mod_ext_filterを使ってみました。しかし、URL ではなく、コンテンツ全体がプログラムに渡されているようです。URL に存在するパラメーターに基づいてフィルター処理する必要があるため、要件を満たしていないと思います。

URLで渡されるパラメータに基づいてフィルタリングするために使用できるhttpサーバーモジュールはありますか?

編集

さらに、クエリ パラメータから値を取得し、それを検証する必要もあります。検証は REST サービス呼び出しです

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

php - Apache2 virtual hosts links in website no working

I installed apache2 server and enabled a2ensite for my domain name. I followed link - https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts to setup virtual hosts.

Now when I type my domain name, the site homepage shows up but the links in website are not working. I get "Not found" with message "requested URL was not found on this server"

My mydomian.com.conf file is as below in /etc/apache2/sites-enabled folder

#xA;

All the code is present in path - /var/www/html/mydomain.com/public_html

Please let me know how I can make the links on my website working.

Thanks

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

apache - Apache モジュールで構成ファイルを読み取る

私はApacheモジュールを開発しています。自分の構成ファイルからデータを読みたいです。Apache で構成ファイルを読み取る方法。モジュールの開発にはC言語を使用しています。