Welcome! Log In Create A New Profile

Advanced

Nginx with php configuration how to block all requests/urls other than two?

January 29, 2015 09:20AM
So i use nginx with PHP and i have the following two urls i want to allow access on the subdomain.

The full url would be sub1.domain.com/index.php?option=com_hwdmediashare&task=addmedia.upload&base64encryptedstring

if ( $args ~ 'option=com_hwdmediashare&task=addmedia.upload([a-zA-Z0-9-_=&])' ) {
}

And

sub1.domain.com/media/com_hwdmediashare/assets/swf/Swiff.Uploader.swf

But i cant figure out in nginx how to block all other traffic/requests on the subdomain apart from those two urls can anyone help me get a understanding of the location block of nginx so i can block access to all links apart from those two.
Subject Author Posted

Nginx with php configuration how to block all requests/urls other than two?

c0nw0nk January 29, 2015 09:20AM

Re: Nginx with php configuration how to block all requests/urls other than two?

itpp2012 January 29, 2015 10:09AM

Re: Nginx with php configuration how to block all requests/urls other than two?

c0nw0nk January 29, 2015 10:55AM

Re: Nginx with php configuration how to block all requests/urls other than two?

itpp2012 January 29, 2015 12:29PM

Re: Nginx with php configuration how to block all requests/urls other than two?

B.R. January 29, 2015 12:58PM

Re: Nginx with php configuration how to block all requests/urls other than two?

Francis Daly January 29, 2015 01:48PM

Re: Nginx with php configuration how to block all requests/urls other than two?

c0nw0nk January 30, 2015 02:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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