コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
最近の更新
未作成ページ
おまかせ表示
ヘルプ
MonoBook
検索
検索
ログイン
個人用ツール
ログイン
ログアウトした編集者のページ
もっと詳しく
投稿記録
トーク
「
Xsp
」を編集中
ページ
議論
日本語
閲覧
編集
ソースを編集
履歴表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
編集
ソースを編集
履歴表示
全般
リンク元
関連ページの更新状況
特別ページ
ページ情報
2017年10月23日 (月) 03:44時点における
162.158.179.205
(
トーク
)
による版
(
→関連項目
)
(
差分
)
← 古い版
|
最新版
(
差分
) |
新しい版 →
(
差分
)
警告: このページの古い版を編集しています。
公開すると、この版以降になされた変更がすべて失われます。
警告:
ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。
ログイン
または
アカウントを作成
すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。
スパム攻撃防止用のチェックです。 けっして、ここには、値の入力は
しない
でください!
{{小文字}} '''xsp'''とは、[[Mono]]プロジェクトおよび[[GNOME]]プロジェクトにより[[オープンソース]]で開発が行われているWebアプリケーションサーバー(Webサーバー)である。 == 概要 == [[マイクロソフト]]が[[Windows]]向けに開発・提供しているWebアプリケーション・フレームワークである[[ASP.NET]]および[[ASP.NET MVC]]を、[[Linux]]や[[FreeBSD]]、[[Mac OS X]]などの様々な[[OS]]上で動かすことを主目的としている。 XSP自体は、[[Mono]]および[[C Sharp|C#]]を用いて開発されており、Monoが動作する環境であればOSを問わず動作する。なお、Windows上であればマイクロソフト製のランタイムライブラリ([[.NET Framework]])でも動作する。さらにUNIX拡張機能を用いることでWindows上では動作しなくなるが、UNIX系OS固有の機能を用いたWebシステムを構築することも可能となっている。 XSPは安定して動作するため単体のWebサーバーとして用いることも可能である。ただし、マイクロソフトの[[Internet Information Services]]([[IIS]])ほどWebサーバーとしての汎用性は追求していない。このため別途Webサーバーなどと連携させて動作させることができ、例えばApache HTTP Serverでは[[mod_mono]]モジュールを用いて連携を行う。 [[MonoDevelop]]を用いてASP.NETおよびASP.NET MVCを用いたWebアプリケーションを開発する際に、バックグラウンドで一時的に起動するデバッグ用のWebサーバーとしても用いられている。 == 使い方 == === コマンドライン === [[ASP.NET]]や[[ASP.NET MVC]]で書いたWebアプリを格納したディレクトリに移動してxpsを立ち上げる。 Webアプリが使っている[[.NET Framework]]のバージョンごとにxsp、xsp2、xsp4と別々のコマンドになっている。 .NET Framework 3.xは.NET Framework 2.xのマイナーチェンジなので欠番である(xsp2を使う)。 なお、.NET Framework 2.x向けに作ったWebアプリをxsp4で動かしてもほぼ動く。 <source lang="bash"> $ cd /hoge/OreOreWebApp $ /usr/local/bin/xsp4 </source> === Apacheと連携 === [[mod_mono#設定例]]の項目を参照。 === コマンドライン === ASP.NETやASP.NET MVCのWebアプリを格納したディレクトリに移動して以下のコマンドを打つ。 $ xsp4 デフォルトではポート番号8080で起動するので、変更したい場合は以下のようにする。 $ xsp4 --port 80 ==== usage ==== <pre> --port N: n is the tcp port to listen on. Default value: 8080 AppSettings key name: MonoServerPort --random-port: listen on a randomly assigned port. The port numer will be reported to the caller via a text file. --address addr: addr is the ip address to listen on. Default value: 0.0.0.0 AppSettings key name: MonoServerAddress --https: enable SSL for the server Default value: false. AppSettings key name: --https-client-accept: enable SSL for the server with optional client certificates Default value: false (non-ssl). AppSettings key name: --https-client-require: enable SSL for the server with mandatory client certificates Default value: false (non-ssl). AppSettings key name: --cert FILENAME: path to X.509 certificate file (cer) AppSettings key name: --pkfile FILENAME: path to private key file (pvk) AppSettings key name: --p12file FILENAME: path to a PKCS#12 file containing the certificate and the private AppSettings key name: --pkpwd PASSWORD: password to decrypt the private key AppSettings key name: --protocol: specify which protocols are available for SSL Possible values: Default, Tls, Ssl2, Ssl3 Default value: Default (all) AppSettings key name: --root rootdir: the server changes to this directory before anything else. Default value: current directory. AppSettings key name: MonoServerRootDir --appconfigfile FILENAME: adds application definitions from the XML configuration file. See sample configuration file that comes with the server. AppSettings key name: MonoApplicationsConfigFile --appconfigdir DIR: adds application definitions from all XML files found in the specified directory DIR. Files must have '.webapp' extension AppSettings key name: MonoApplicationsConfigDir --applications APPS: a comma separated list of virtual directory and real directory for all the applications we want to manage with this server. The virtual and real dirs. are separated by a colon. Optionally you may specify virtual host name and a port. [[hostname:]port:]VPath:realpath,... Samples: /:. the virtual / is mapped to the current directory. /blog:../myblog the virtual /blog is mapped to ../myblog myhost.someprovider.net:/blog:../myblog the virtual /blog at myhost.someprovider.net is mapped to ../myblog /:.,/blog:../myblog Two applications like the above ones are handled. Default value: /:. AppSettings key name: MonoApplications --nonstop: don't stop the server by pressing enter. Must be used when the server has no controlling terminal. --no-hidden: allow access to hidden files (see 'man xsp' for details) --version: displays version information and exits. --verbose: prints extra messages. Mainly useful for debugging. --pidfile file: write the process PID to the specified file. </pre> == 関連項目 == * [[mod_mono]] * [[Mono]] * [[Kestrel]] == 参考文献 == {{reflist}} == 外部リンク == {{stub}}
編集内容の要約:
MonoBookへの投稿はすべて、他の投稿者によって編集、変更、除去される場合があります。 自分が書いたものが他の人に容赦なく編集されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください(詳細は
MonoBook:著作権
を参照)。
著作権保護されている作品は、許諾なしに投稿しないでください!
このページを編集するには、下記の確認用の質問に回答してください (
詳細
):
1たす1は?(全角で入力してください)
キャンセル
編集の仕方
(新しいウィンドウで開きます)
このページで使用されているテンプレート:
テンプレート:小文字
(
編集
)
本文の横幅制限を有効化/無効化