nginx

nginx サブドメイン設定

blog用にサブドメインを設定。 . . # blog - wordpress server { listen 80; server_name frenzy.psychobil.ly; location / { root html/wordpress; index index.html index.htm index.php; deny 216.13.56.89; } location ~ \.php$ { root html/wordpress; …

nginx-mode

nginxのconfを弄るのが不便だったので探したらやっぱりあった nginx-mode設定 $ test -d ~/.emacs.d || mkdir ~/.emacs.d $ cd ~/.emacs.d $ git clone https://github.com/noxyu3m/nginx-mode.git $ git clone https://github.com/ajc/nginx-mode.git $ cat…

nginx + php

phpも使いたいので設定。php install $ sudo yum -y install php php-cgi nginx php 連携にspawn-fcgiを使用 $ sudo yum -y install spawn-fcgi $ cat /etc/init.d/php-fastcgi #!/bin/sh # # spawn-fcgi Start and stop FastCGI processes # # chkconfig: -…

nginx + perl

nginxでperlを動かす。install FastCGI $ curl http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz -o fcgi-2.4.0.tar.gz $ tar xvzf fcgi-2.4.0.tar.gz $ cd fcgi-2.4.0 $ CFLAGS="-O3 -mtune=native -m64 -msse -msse2 -msse3 -fstrict-overflow -fopenmp" ./…

nginxのバージョンを隠す

エラーページなどで、nginxのバージョンが出力されていた。 別に見えていても良いのだけど、設定を覚えるためにも、隠してみた。 $ cat conf/nginx.conf . http { . . server_tokens off; } .$ sudo ./sbin/nginx -s reload