What is mod_rewrite called when using NGINX?

techlists at phpcoderusa.com techlists at phpcoderusa.com
Mon Oct 3 11:27:40 MST 2022


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
> <plug-discuss at lists.phxlinux.org> wrote:
> 
>> Hi,
>> 
>> Apache has mod_rewrite.  What is the equivalent called when using
>> NGINX?
>> 
>> Thanks!!
>> ---------------------------------------------------
>> PLUG-discuss mailing list: PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> 
> --
> James McPhee
> jmcphe at gmail.com
> ---------------------------------------------------
> PLUG-discuss mailing list: PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss


More information about the PLUG-discuss mailing list