Nginx rewrite config, revcms

Results 1 to 3 of 3
  1. #1
    Account Upgraded | Title Enabled! Bozzie is offline
    MemberRank
    Aug 2011 Join Date
    ur mumLocation
    275Posts

    Nginx rewrite config, revcms

    Has anyone got a config file for revcms for nginx? i've tried using
    worker_processes 2;
    worker_rlimit_nofile 10000;
    pid /var/run/nginx.pid;


    events {
    worker_connections 4000;
    use epoll;
    }


    http {
    include mime.types;
    default_type application/octet-stream;
    keepalive_timeout 65;
    gzip on;


    server {
    listen MYVPSIP:80;
    server_name MYVPSIP;
    root /var/www/html;
    index index.php index.html index.htm;


    location / {
    if (!-e $request_filename){
    rewrite ^/(.*)(\.)(.*)$ /index.php?url=$1.$3 last;
    }
    }


    # use fastcgi for all php files
    location ~ \.php$
    {
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param REDIRECT_STATUS 200;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    }
    }
    but have no look as when I goto localhost it's just Screenshot by Lightshot , thanks in advance.


  2. #2
    Account Upgraded | Title Enabled! Bozzie is offline
    MemberRank
    Aug 2011 Join Date
    ur mumLocation
    275Posts

    Re: Nginx rewrite config, revcms

    anyone know???

  3. #3
    Account Upgraded | Title Enabled! Jamal7 is offline
    MemberRank
    Dec 2013 Join Date
    547Posts

    Re: Nginx rewrite config, revcms

    Hello try this:

    htaccess to nginx converter



Advertisement