Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : help config nginx rewrite in webuzo



Threaded Mode | Print  

 help config nginx rewrite in webuzo (1 Replies, Read 15568 times)
chadul
Group: Member
Post Group: Newbie
Posts: 1
Status:
Here my nginx config in webuzo:
Code

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

pid        /usr/local/apps/nginx/var/log/nginx.pid;

events {
    worker_connections  1024;
}

error_log /usr/local/apps/nginx/var/log/error_log debug;


http {
    include      mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log /usr/local/apps/nginx/var/log/web.access.log  main;

    sendfile        on;
    #tcp_nopush    on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;
   
    client_max_body_size 200M;
   
    # If your domain names are long, increase this parameter.
    server_names_hash_bucket_size 64;
   
    include /usr/local/apps/nginx/etc/conf.d/*.conf;}

server{
listen 80;
server_name domain.com www.domain.com;
rewrite ^/lagu/(.*)/(.*)/([0-9]+)$ /index.php?genre=$1&q=$2&p=$3 last;
rewrite ^/lagu/(.*)/([0-9]+)$ /index.php?genre=$1&p=$3 last;
rewrite ^/lagu/(.*)/(.*)$ /index.php?genre=$1&q=$2 last;
rewrite ^/lagu/(.*)$ /index.php?genre=$1 last;


rewrite ^/download-lagu/([0-9]+)/(.*)$ /v.php?id=$1&n=$2 last;

rewrite ^/(.*)\.html /$1.php last;

}
}


But not works keep 404 not found, please help :(
IP: --   

help config nginx rewrite in webuzo
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
You can add the extra configuration in a separate file and include it in the main configuration.
Guide : http://www.webuzo.com/wiki/Edit_Extra_Configuration_File

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 16, 2024, 10:15 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.029