Aug 30, 2010

NginX redirect http url to https url

--more info--
see other info on

--knowing issue--
it is assumed that nginx is installed perfectly and https config is ready

open your nginx configuration
# vi /usr/local/nginx/conf/nginx.conf 
take a look on this config
server {
        listen       80;
        #charset koi8-r;
        #access_log  logs/host.access.log  main;
        location / {
        rewrite ^/aku(.*)$1 permanent;
            root   html;
            index  index.html index.htm;
on the red line is the configuration. add that config to your configuration file

--check n jajal --

source :