Welcome! Log In Create A New Profile

Advanced

Re: htaccess

August 24, 2012 11:21AM
http://winginx.com/htaccess
resulted :

=====================
# nginx configuration

index index.php;

charset off;

location ~ /(media|skin|js)/ {
}

location /api {
rewrite ^/api/rest /api.php?type=rest break;
}

location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
}

location /RELEASE_NOTES.txt {
deny all;
}

================
But I already have a 'location' settings in my nginx.conf:
========================
location / {
root /var/www/html;
index index.php index.html index.htm;
fastcgi_param REDIRECT_STATUS 200;
}
===================
how can i merge both of this?
Subject Author Posted

htaccess

iqbalmp August 24, 2012 10:56AM

Re: htaccess

Christopher Meng August 24, 2012 11:14AM

Re: htaccess

iqbalmp August 24, 2012 11:21AM

Re: htaccess

iqbalmp August 24, 2012 11:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready