nginx: SSLのconfigure オプションを間違えていた。( on Ubuntu 8.0.4 LTS )

http://hdknr.spaces.live.com/blog/cns!82BB74511E950AA4!1290.entry のオプションは間違っていました。

 

hdknr@ubuntu-vbox:~/nginx-0.6.37$ ./configure  –with-http_ssl_module –add-module=`pwd`/mod_wsgi/ –with-debug  –with-md5=/usr/lib –with-sha1=/usr/lib
checking for OS
+ Linux 2.6.24-24-generic i686
checking for C compiler … found
checking for gcc variadic macros … found
checking for C99 variadic macros … found
checking for unistd.h … found
checking for inttypes.h … found
checking for limits.h … found
checking for sys/filio.h … not found
checking for crypt.h … found
checking for Linux specific features
checking for epoll … found
checking for sendfile() … found
checking for sendfile64() … found
checking for sys/prctl.h … found
checking for prctl(PR_SET_DUMPABLE) … found
checking for sched_setaffinity() … found
checking for nobody group … not found
checking for nogroup group … found
checking for poll() … found
checking for /dev/poll … not found
checking for kqueue … not found
checking for crypt() … not found
checking for crypt() in libcrypt … found
configuring additional modules
adding module in /home/hdknr/nginx-0.6.37/mod_wsgi/
ngx_http_wsgi_module: using Python 2.5
checking for wsgi … found
+ ngx_http_wsgi_module was configured
checking for PCRE library … found
checking for OpenSSL library … found
checking for zlib library … found
checking for int size … 4 bytes
checking for long size … 4 bytes
checking for long long size … 8 bytes
checking for void * size … 4 bytes
checking for uint64_t … found
checking for sig_atomic_t … found
checking for sig_atomic_t size … 4 bytes
checking for socklen_t … found
checking for in_addr_t … found
checking for in_port_t … found
checking for rlim_t … found
checking for uintptr_t … uintptr_t found
checking for system endianess … little endianess
checking for size_t size … 4 bytes
checking for off_t size … 8 bytes
checking for time_t size … 4 bytes
checking for setproctitle() … not found
checking for pread() … found
checking for pwrite() … found
checking for strerror_r() … found but is not working
checking for gnu style strerror_r() … found
checking for localtime_r() … found
checking for posix_memalign() … found
checking for memalign() … found
checking for sched_yield() … found
checking for mmap(MAP_ANON|MAP_SHARED) … found
checking for mmap("/dev/zero", MAP_SHARED) … found
checking for System V shared memory … found
checking for struct msghdr.msg_control … found
checking for ioctl(FIONBIO) … found
checking for struct tm.tm_gmtoff … found

Configuration summary
  + using system PCRE library
  + using system OpenSSL library
  + using md5 library: /usr/lib
  + using sha1 library: /usr/lib
  + using system zlib library

  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/sbin/nginx"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files: "/usr/local/nginx/client_body_temp"
  nginx http proxy temporary files: "/usr/local/nginx/proxy_temp"
  nginx http fastcgi temporary files: "/usr/local/nginx/fastcgi_temp"

 

hdknr@ubuntu-vbox:~/nginx-0.6.37$ make
hdknr@ubuntu-vbox:~/nginx-0.6.37$ sudo make install
:
:
:
make[1]: ディレクトリ `/home/hdknr/nginx-0.6.37′ から出ます
hdknr@ubuntu-vbox:~/nginx-0.6.37$ sudo make install
make -f objs/Makefile install
make[1]: ディレクトリ `/home/hdknr/nginx-0.6.37′ に入ります
test -d ‘/usr/local/nginx’ || mkdir -p ‘/usr/local/nginx’
test -d ‘/usr/local/nginx/sbin’         || mkdir -p ‘/usr/local/nginx/sbin’
test ! -f ‘/usr/local/nginx/sbin/nginx’         || mv ‘/usr/local/nginx/sbin/nginx’                     ‘/usr/local/nginx/sbin/nginx.old’
cp objs/nginx ‘/usr/local/nginx/sbin/nginx’
test -d ‘/usr/local/nginx/conf’         || mkdir -p ‘/usr/local/nginx/conf’
cp conf/koi-win ‘/usr/local/nginx/conf’
cp conf/koi-utf ‘/usr/local/nginx/conf’
cp conf/win-utf ‘/usr/local/nginx/conf’
test -f ‘/usr/local/nginx/conf/mime.types’      || cp conf/mime.types ‘/usr/local/nginx/conf’
cp conf/mime.types ‘/usr/local/nginx/conf/mime.types.default’
test -f ‘/usr/local/nginx/conf/fastcgi_params’       || cp conf/fastcgi_params ‘/usr/local/nginx/conf’
cp conf/fastcgi_params     ‘/usr/local/nginx/conf/fastcgi_params.default’
test -f ‘/usr/local/nginx/conf/nginx.conf’      || cp conf/nginx.conf ‘/usr/local/nginx/conf’
cp conf/nginx.conf ‘/usr/local/nginx/conf/nginx.conf.default’
test -d ‘/usr/local/nginx/logs’         || mkdir -p ‘/usr/local/nginx/logs’
test -d ‘/usr/local/nginx/logs’ ||      mkdir -p ‘/usr/local/nginx/logs’
test -d ‘/usr/local/nginx/html’         || cp -r html ‘/usr/local/nginx’
test -d ‘/usr/local/nginx/logs’ ||      mkdir -p ‘/usr/local/nginx/logs’
make[1]: ディレクトリ `/home/hdknr/nginx-0.6.37′ から出ます

hdknr@ubuntu-vbox:~/nginx-0.6.37$ sudo vim /usr/local/nginx/conf/nginx.conf

    # HTTPS server
    #
    server {
        listen       443;
        server_name  localhost;

        ssl                  on;
        ssl_certificate      /home/hdknr/nginx-0.6.37/cert/ubuntu.vbox/cert.pem;
        ssl_certificate_key  /home/hdknr/nginx-0.6.37/cert/ubunyu.vbox/pri.pem;

        ssl_session_timeout  5m;

        ssl_protocols  SSLv2 SSLv3 TLSv1;
        ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
        ssl_prefer_server_ciphers   on;

        location / {
            root   html;
            index  index.html index.htm;
        }
    }

hdknr@ubuntu-vbox:~/nginx-0.6.37$ sudo su –

root@ubuntu-vbox:/usr/local/nginx/conf# /usr/local/nginx/sbin/nginx
2009/05/26 12:47:07 [debug] 27553#0: mod_wsgi: initializing the Python interpreter

root@ubuntu-vbox:/usr/local/nginx/conf# lsod -i:80
-su: lsod: command not found

root@ubuntu-vbox:/usr/local/nginx/conf# lsof -i:80
COMMAND   PID   USER   FD   TYPE DEVICE SIZE NODE NAME
nginx   27554   root    5u  IPv4  83253       TCP *:www (LISTEN)
nginx   27555 nobody    5u  IPv4  83253       TCP *:www (LISTEN)

root@ubuntu-vbox:/usr/local/nginx/conf# lsof -i:443
COMMAND   PID   USER   FD   TYPE DEVICE SIZE NODE NAME
nginx   27554   root    6u  IPv4  83254       TCP *:https (LISTEN)
nginx   27555 nobody    6u  IPv4  83254       TCP *:https (LISTEN)

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中