Welcome! Log In Create A New Profile

Advanced

Re: Replace apache with nginx

Francis Daly
May 10, 2016 05:10PM
On Thu, May 05, 2016 at 11:25:18AM +0300, Christian Ivanov wrote:

Hi there,

> Hello there. I want to migrate my website only on nginx. I setup
> everything, but have issue with my htaccess.

I'm not entirely sure of what specifically you are looking for here.

Perhaps the secure link module
(http://nginx.org/en/docs/http/ngx_http_secure_link_module.html) or
other similar things can help?

> Here is the file:
>
> [root@server]# cat .htaccess
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteRule ^audio-(.*)\.html$ %{ENV:BASE}/audio_redirect_mask.php [L]
> RewriteRule ^s/(.*)$ %{ENV:BASE}/audio_redirect_source.php?u=$1 [L]
> </IfModule>
> [root@server]#
>
> Somebody to have good idea, how can I replace this htaccess and execute
> rewrite, without mod_php with apache or php-fpm?

Can you describe the intended behaviour here? As in, if I request
/audio-file.html, what response should I get?

Or alternatively: what request should I make, in order to be sent the
content of the file /usr/local/nginx/html/audio-file.html?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Replace apache with nginx

Christian Ivanov May 05, 2016 04:26AM

Re: Replace apache with nginx

B.R. May 06, 2016 07:46AM

Re: Replace apache with nginx

Francis Daly May 10, 2016 05:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 324
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