Status
Not open for further replies.

dheeraj4uuuu

Active Member
25
2010
0
0
Hi,

I have recently setup the nginx server.
As i know nginx doesnt support htaccess. I have set of rules for nginx. But i dont where to put those rules. Do i have to put them
Code:
/etc/nginx/nginx.conf

Can someone help me with this.
 
4 comments
depends on your configuration setup

rewrite rules should be added in

Location / {
....

rewrite rules here....

...
}

---------- Post added at 09:09 PM ---------- Previous post was at 09:08 PM ----------

depends on your configuration setup

rewrite rules should be added in

Location / {
....

rewrite rules here....

...
}
 
Eidt config file as ;
Code:
server { 
listen *:80;
 location / {
 root   /var/www/html;
 index index.php index.html;

  # if file exists return it right away

 if (-f $request_filename) { break; }  

# otherwise rewrite the f**ker

 if (!-e $request_filename) { 
rewrite ^(.+)$ /index.php$1 last; break;
 }  }
 
Status
Not open for further replies.
Back
Top