Welcome! Log In Create A New Profile

Advanced

Problem with URL rewriting in nginx

Posted by danilodb 
Problem with URL rewriting in nginx
January 10, 2015 06:41AM
Hi everybody.

I'm sorry to open another post, but i searched the forum and did not find any solutions.
First of all I beg your pardon for my totally unawareness about servers... i have just started to try to learn.

My problem is:

I'm trying to set up BicBucStriim (BBS) application on an Archlinux server with nginx and every single try to have URL rewrite to work does not succeed.
Formerly i tried an installation on an Apache server and all was going good.
I think that the problem is URL rewrite but i did not understand how that should work.
On the support page of BBS they say to use try_files directive to perform the Url rewrite. But all that happens is a 404 error.

Is that correct? or should i use rewrite directive instead?

Thanks in advance to anyone that would help me.
Have a good day
Re: Problem with URL rewriting in nginx
January 10, 2015 11:35AM
This is the configuration in Apache.

<IfModule mod_rewrite.c>
Options -MultiViews

# Tell PHP that the mod_rewrite module is ENABLED.
SetEnv HTTP_MOD_REWRITE On

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

# protect database
<FilesMatch data.db>
Order allow,deny
Deny from all
</FilesMatch>

# protect schema
<FilesMatch schema.sql>
Order allow,deny
Deny from all
</FilesMatch>

is there anyone that could help me?

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready