Welcome! Log In Create A New Profile

Advanced

DNS Rewrite Rules Apache To Ngnix Translation , Help

Posted by dzekcee 
DNS Rewrite Rules Apache To Ngnix Translation , Help
April 02, 2016 09:17AM
Hi Nginx community


I need you help i use to successfully migrate my site from Apache to Ngnix but i trying to convert some DNS rewrite rules and till now with no success . Can you please give me some translation help .

Rewrites that i wont to translate are :

RewriteCond %{HTTP_HOST} ^domain\.net\.mk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.net\.mk$
RewriteRule ^(.*)$ "http\:\/\/domain\.com\.mk\/$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^domain\.mk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.mk$
RewriteRule ^(.*)$ "http\:\/\/domain\.com\.mk\/$1" [R=301,L]


Thanks for you support , where do a need to put translated rewrites in my vhost template or in nginx.conf (single web site on VPS)
Re: DNS Rewrite Rules Apache To Ngnix Translation , Help
April 02, 2016 09:19AM
Replayed by mistake



Edited 1 time(s). Last edit at 04/02/2016 09:20AM by dzekcee.
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: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready