VMWare Fusion 3 で簡単にサーバの設定をいぢることができるようになったので、早速前から気になってた mod_wsgi を試してついでに Python も 2.7.1 にしてみたのでメモ。Django も 1.3 にしてみたけど、それはまた次回。 続きを読む
Friday, April 3, 2009 WSGI and printing to standard output. If you use WSGI on top of CGI, the WSGI adapter communicates with the web server using standard input (sys.stdin) and standard output (sys.stdout). Available WSGI adapters for CGI do... 続きを読む
2011年5月27日 mod_wsgiをセットアップしたときのメモ 最近はgeventを使ってコードを書いています。当然Webサーバもgeventをそのまま使っていました。今回もそれでもよかったのですが、久しぶりにフロントエンドにApacheをつかって、mod_wsgiを使ってPythonのア... 続きを読む
先日、WSGIはネットワーク図に似ているよね、という話題で盛り上がりました。 そのときに描いた図がこれです。 Cascadeミドルウェアがハブ、Routesがルーター、AuthKitがファイアウォールといった感じで対応しています。 それからつい最近、Ian Bickingの過去の... 続きを読む
Python前回は、Web.pyを使ったけど、それを使わない方法。にこ生では、リダイレクトしないぞと言っていたが、単純にHTTPレスポンスの番号を間違えていただけだった。301をかえすところを、304をかえしていた。304は、変更なしだった。 # -*- coding: utf-8 -*- ... 続きを読む
PythonPythonには、web.py(http://webpy.org/)というWSGI(Web Server Gateway Interface)準拠のモジュールがある。というわけで、mod_wsgiと、web.pyを使ってみた。web.pyは、easy_install web.pyで入れる。mod_wsgiは適当に入れる。で、Apacheの設定。いろ... 続きを読む
Posted Thursday, 04 March 2010 at 03:36 by Andrew Liu Tagged: python | web applications | linux | fedora | web development Read more blogs... OS: Fedora 10 Ideally, we want to run WSGI applications under our Apache web server, rather than on ... 続きを読む
kuma8さんが簡潔かつ的確なまとめを書いてくださっているが、とりあえず記録しておく。今回試した環境は、CentOS 5.2Python 2.6 Django 1.0.1-beta 必要なライブラリをインストールするServer版のCentOSを普通にインストールしたらApache2は入っているはずなの... 続きを読む
Installation IssuesAlthough mod_wsgi is not a large package in itself, it depends on both Apache and Python to get it compiled and installed. Because Apache and Python are complicated systems in their own right, various problems can come up d... 続きを読む
Linux, Python, 備忘録 | 03:30x86_64のCentOSに、ソースからPythonを入れてmod_wsgiを入れようとするとエラーが出たので、うまくいったときの方法を残しておきます。Pythonを入れるソースからインストール。 # wget http://www.python.org/ftp/python/2.6.6/Py... 続きを読む
環境: VirtualBox on CentOS : 5.0 Apache : 2.2.3 mod_wsgi : リビジョン 204 mod_wsgi を入手します。 $ svn checkout http://modwsgi.googlecode.com/svn/trunk/ modwsgi A modwsgi/configure A modwsgi/LICENCE A modwsgi/configure.ac A modwsgi/Makefile... 続きを読む
I've just started learning Python WSGI (PEP-333) and thought the best way to learn would be to write some WSGI tools myself. Most recently, I chose to write a middleware application that converts all output into valid gzipped data. In this ar... 続きを読む
CATEGORY art (2) book (29) diary (17) twitter (8) fashion (6) food (5) linux (1) music (4) MySQL (1) photo (1) program (6) javascript (3) jQuery (3) objective-C (1) Python (3) tool (3) web-design (7) Python3 + mod_wsig3.3 をインストールしてHe... 続きを読む
WSGIとは PythonでWebアプリを作るときに必ず出てくる単語にWSGIがあります。 WSGIとは、Web Server Gateway Interface の略で、WebサーバーとPython製Webアプリを つなげる標準インタフェースです。 WSGIの上で動くようにアプリケーションを作ると、そのアプリ... 続きを読む
嵌まったのでメモ。パターンは以下の通り。ディストロでmod_pythonが配布されていてそれを使っている。普段は自前でコンパイルしたPython最新版を使っている。mod_wsgiも自前コンパイル環境でビルドした。LoadModuleでmod_pythonをロードしていると、それと前後... 続きを読む
WSGI, Python, Network | 02:41 | 前提としては、社内のWiki(仮にintra.example.comとする)には外部から直接アクセスできないゲートウェイ(仮にgw.example.comとする)にはssh接続できるノートPCを使っていて、頻繁にLANの内部と外部を行き来するという状況で、... 続きを読む
Installation InstructionsInstallation and configuration instructions for mod_wsgi are described in the following documents: Quick Installation Guide Quick Configuration Guide If wishing to install mod_wsgi on Windows, details of where precomp... 続きを読む
WSGIとPythonでスマートなWebアプリケーション開発を 第2回 WSGIを使ったもう少し複雑なアプリケーションの作成 2008年8月20日 保坂翔馬 WSGI, Python, フレームワーク 1 2 3 はじめに 第1回では「Hello, world.」を出力する簡単なアプリケーションを作成し,W... 続きを読む
WSGIとPythonでスマートなWebアプリケーション開発を 第1回 WSGIの概要 2008年8月13日 保坂翔馬 WSGI, Python, フレームワーク 1 2 PythonのWebアプリケーションフレームワーク Pythonには,Zope,Twisted,Django,TurboGearsなどのさまざまなWebアプリケーシ... 続きを読む