Git Plugin

2019-11-04 Thread noloader
Hi Everyone,

I'm running a Fedora 31 server. The server hosts one Nginx-based website on
80 and 443. The server also hosts one Git-project. The Git project is
located at /var/myproject and only accessible over SSH at the moment.

I'd like to put a web front-end on the Git project for browsing and
diff'ing.

Searching the forum I don't see discussions of Git plugins or Nginx
front-ends for Git projects.

My question is, does someone have a recommendation for a simple Nginx plugin
to put the project on the web?

Thanks in advance.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,286091,286091#msg-286091

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Block spefic URL

2019-11-04 Thread Aleksandar Lazic

Hi.

Am 04.11.2019 um 12:07 schrieb Proline29:

Hello,
I'm trying to block such kind of URL

https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46

Tried
if ( $request_uri = https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46)
{
return444;
}

location ~* https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46 {
deny all;
}

  if ( $query_string = "826c99368cc93a894267703e0fc2ed46" ) {
return 404;
}

No one of this solution didn't help


As '#id=826c99368cc93a894267703e0fc2ed46' is a fragment I think the part does 
not reach the server as maxim mentioned in the below answer.


https://forum.nginx.org/read.php?2,49075,49079

What do you see when you activate the debug log?

Regards
Aleks


Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,286086,286086#msg-286086

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx



___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Блокировка URL

2019-11-04 Thread Илья Шипицин
пн, 4 нояб. 2019 г. в 18:14, Proline29 :

> Суть задачи блокировать URL вида
> https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46



часть, начинающаяся с '#' и дальше, не передается на сервер.


>
> Пробовал след. варианты.
>
> if ( $request_uri =
> https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46)
> {
> return 444;
> }
>
> location ~* https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46 {
> deny all;
> }
>
> if ( $query_string = "826c99368cc93a894267703e0fc2ed46" ) {
> return 404;
> }
>
> Не 1 не сработал, просьба подсказать если кто либо сталкивался либо есть
> идеи.
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?21,286087,286087#msg-286087
>
> ___
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Блокировка URL

2019-11-04 Thread Proline29
Суть задачи блокировать URL вида
https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46
Пробовал след. варианты.

if ( $request_uri = https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46)
{
return 444;
}

location ~* https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46 {
deny all;
}

if ( $query_string = "826c99368cc93a894267703e0fc2ed46" ) {
return 404;
}

Не 1 не сработал, просьба подсказать если кто либо сталкивался либо есть
идеи.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,286087,286087#msg-286087

___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Block spefic URL

2019-11-04 Thread Proline29
Hello,
I'm trying to block such kind of URL

https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46

Tried
if ( $request_uri = https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46)
{
return444;
}

location ~* https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46 {
deny all;
}

 if ( $query_string = "826c99368cc93a894267703e0fc2ed46" ) { 
return 404; 
}

No one of this solution didn't help

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,286086,286086#msg-286086

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx