Re: What is mod_rewrite called when using NGINX?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Keith Smith via PLUG-discuss
Date:  
To: Main PLUG discussion list
CC: techlists
Subject: Re: What is mod_rewrite called when using NGINX?
Thanks!!

I have not worked with NGINX in the past. I have only used Apache.

I am writing some software that I want to run on NGINX the same as
apache. I need to get the value of PHP $_SERVER['REQUEST_URI'].

For apache I have had to put some code in the apache vhost config file
(is called a directives file?), activate the mod_rewrite module, and add
some code to my .htaccess file.

I need to do the equivalent using NGINX.

Thank you for your guidance.



On 2022-10-03 10:43, James Mcphee via PLUG-discuss wrote:
> nginx has some builtin rewrite stuff. it's not mod_rewrite, but it
> covers the most used examples. you can get a basic primer on nginx's
> site.
> https://www.nginx.com/blog/converting-apache-to-nginx-rewrite-rules/
>
> On Mon, Oct 3, 2022 at 9:56 AM Keith Smith via PLUG-discuss
> <> wrote:
>
>> Hi,
>>
>> Apache has mod_rewrite. What is the equivalent called when using
>> NGINX?
>>
>> Thanks!!
>> ---------------------------------------------------
>> PLUG-discuss mailing list:
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
> --
> James McPhee
>
> ---------------------------------------------------
> PLUG-discuss mailing list:
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list:
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss