Nginx IPV6

Download nginx rpm SOURCE

http://centos.alt.ru/pub/nginx/0.8/RHEL/SRPMS/nginx-0.8.46-1.el5.src.rpm

Install rpm source

# rpm -Uvh nginx-0.8.46-1.el5.src.rpm

Chnage to rpm spec directory

# cd /path/to/rpm/spec/dir

Edit nginx.spec and add –with-ipv6 at configure section. IE:

./configure \
    --user=%{nginx_user} \
    --group=%{nginx_group} \
    --prefix=%{nginx_datadir} \
    --sbin-path=%{_sbindir}/%{name} \
    --conf-path=%{nginx_confdir}/%{name}.conf \
    --error-log-path=%{nginx_logdir}/error.log \
    --http-log-path=%{nginx_logdir}/access.log \
    --http-client-body-temp-path=%{nginx_home_tmp}/client_body \
    --http-proxy-temp-path=%{nginx_home_tmp}/proxy \
    --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
    --pid-path=%{_localstatedir}/run/%{name}.pid \
    --lock-path=%{_localstatedir}/lock/subsys/%{name} \
    --with-http_secure_link_module \
    --with-http_random_index_module \
    --with-http_ssl_module \
    --with-http_realip_module \
    --with-http_addition_module \
    --with-http_sub_module \
    --with-http_dav_module \
    --with-http_flv_module \
    --with-http_gzip_static_module \
    --with-http_stub_status_module \
    --with-http_perl_module \
    --with-ipv6 \
    --with-mail \
    --with-mail_ssl_module \
    --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
    --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair \
    --add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module \
    --add-module=%{_builddir}/nginx-%{version}/mod_zip-1.1.5 \
    --add-module=%{_builddir}/nginx-%{version}/nginx_upload_module-2.0.12 \
    --add-module=%{_builddir}/nginx-%{version}/nginx_mod_h264_streaming-2.2.7

Displaying PDF In Our Website

Displaying PDF In Our Website

Ingredients:

Download both software

# yum -y install swftools
# wget http://flexpaper.googlecode.com/files/FlexPaper_1.3.1_flash.zip

Go to http DocumentRoot, then unzip FlexPaper_1.3.1_flash.zip

# cd /var/www/html/
# unzip /path/to/FlexPaper_1.3.1_flash.zip

There’s example in FlexPaper_1.3.1_flash.zip distribution, We need to create our own swf file from existing pdf

# pdf2swf DNSSEC_in_6_minutes.pdf -o DNSSEC_in_6_minutes.swf -T 9 -f

Lots of NOTICE output there…

NOTICE  Adding /usr/share/swftools/fonts to font directories
Title:        Slide 1
Author:       Alan Clegg
Creator:      Impress
Producer:     OpenOffice.org 2.4
CreationDate: 20080715091448-04'00'
Pages:        79
Linearized:   no
Encrypted:    no
NOTICE  processing PDF page 1 (720x540:0:0) (move:0:0)
NOTICE  file contains jpeg pictures
NOTICE  file contains pbm pictures 
NOTICE  processing PDF page 2 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 3 (720x540:0:0) (move:0:0)
NOTICE  File contains links
NOTICE  processing PDF page 4 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 5 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 6 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 7 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 8 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 9 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 10 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 11 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 12 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 13 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 14 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 15 (720x540:0:0) (move:0:0)
NOTICE  processing PDF page 16 (720x540:0:0) (move:0:0)
--- cut ---
NOTICE  SWF written