Hi,
On Sat, Oct 22, 2016, at 19:37, Ben wrote:
> Hi,
>
> nginx/1.10.0 & PHP 7.0.8
>
> I'm struggling to get NGINX to work with the Slim PHP framework for
> paths.
>
> The base index.php works fine (e.g. http://example.com works), however
> if I try a framework path (e.g. http://example.com/hel
olute path as
mentioned in documentation.
On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote:
> I somehow can't make this scenario work:
>
> root structure:
> /a/index.html
> /b/ <-- no index.html
>
> accessing:
> 1. site.com/a -> redirect to site.com/a/ -> sho
Hi,
On Mon, Oct 10, 2016, at 15:50, Nurahmadie Nurahmadie wrote:
> > >
> > > Still need more locations, but independent to directories you want to
> > > access:
> > >
> > >
> > > server {
> > > listen 7770;
> > > root /tmp;
> > > autoindex on;
> > >
Hi,
On Mon, Oct 10, 2016, at 15:29, Nurahmadie Nurahmadie wrote:
> Hi
>
> > On Mon, Oct 10, 2016, at 15:08, Edho Arief wrote:
> > > Hi,
> > >
> > > On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote:
> > > > I somehow can't make this s
Hi,
On Mon, Oct 10, 2016, at 15:23, Francis Daly wrote:
> On Mon, Oct 10, 2016 at 12:56:57PM +0900, Edho Arief wrote:
>
> Hi there,
>
> untested, but...
>
> > accessing:
> > 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html
> > 2. sit
ack}B";
}
if ($index_fallback = AB) {
return 418;
}
}
}
On Mon, Oct 10, 2016, at 15:08, Edho Arief wrote:
> Hi,
>
> On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote:
> > I somehow can't make this scenario work:
> >
> >
Hi,
On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote:
> I somehow can't make this scenario work:
>
> root structure:
> /a/index.html
> /b/ <-- no index.html
>
> accessing:
> 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html
> 2. site
I somehow can't make this scenario work:
root structure:
/a/index.html
/b/ <-- no index.html
accessing:
1. site.com/a -> redirect to site.com/a/ -> show /a/index.html
2. site.com/b -> redirect to site.com/b/ -> show @fallback
Using
try_files $uri $uri/index.html @fallback;
doesn't work quite
Hi,
On Thu, Oct 6, 2016, at 00:32, Valentin V. Bartenev wrote:
> On Wednesday 05 October 2016 18:34:06 Anoop Alias wrote:
> > I have an httpd upstream server that listen on both http and https at
> > different port and want to send all http=>http_upstream and https =>
> > https_upstream
> >
>
>
Hi,
On Mon, Aug 29, 2016, at 01:59, İhsan Doğan wrote:
> Hi,
>
> On Saturday, 27 Aug 2016 21:50 +0100, Francis Daly wrote:
>
> > > I've defined a location alias in my nginx.conf:
> >
> > > location/foo/ {
> > > alias /var/www/foo/;
> > > }
> >
> > > Even the direc
Hi,
On Tue, Aug 9, 2016, at 01:59, msonntag wrote:
> Hi Edho,
>
> > If going so far to hit api server anyway, why not proxy all requests
> > (except assets) and serve the index page if 200 and request type is
> > html? nginx then can intercept errors and return correct html error
> >page.
>
> Y
Hi,
On Tue, Aug 9, 2016, at 00:07, msonntag wrote:
> Hey B. R.,
>
> Thanks for getting back to me. I am pretty sure that I was not able to
> make
> my point very clear.
>
> The main point is that a client accessing www.example.com/items/1 is
> simply
> delivered a HTML file bootstrapping an Angu
Hi,
On Thu, Aug 4, 2016, at 21:27, pixeye wrote:
> Hello there,
>
> I'm trying to set a new variable based on another one.
>
> I've found this response which is kinda close to what i want to do :
> https://www.ruby-forum.com/topic/6876231#1176774
>
> map $request_uri $last_path {
> ~/(?[^/]+)
Hi,
On Sun, Jul 31, 2016, at 05:44, Simon Hönscheid wrote:
> server {
>server_name www.example.com;
>listen xxx.xxx.xxx.xx:443 ssl http2;
>access_log /var/log/nginx/www.example.com-access.log combined;
>error_log /var/log/nginx/www.example.com-error.log notice;
>ssl_protocols T
Hi,
On Sun, Jun 26, 2016, at 06:09, Lebod wrote:
> My complete set up is below. The only difference is the use of
> "example.com"
> instead of the domain for privacy reasons.I was really hoping that a
> gracious person would just point out the mistake in the set up if there
> is
> one...
>
> serv
Hi,
On Sat, Jun 25, 2016, at 14:42, Lebod wrote:
> Thank you for the reply Francis,
>
> I have only 1 server {} with "example.com".
>
> I have one server block that listens on ports 80 and 443 to example.com
> and
> redirects to https://www.example.com like this:
>
> server {
> listen 80;
>
Hi,
On Fri, Jun 24, 2016, at 01:47, Zeal Vora wrote:
> Hi
>
> We have a Nginx Box which acts as a reverse proxy to backend
> applications.
>
> We only want to allow traffic on http://example.com which internally
> redirects to specific application. Other then that, every other URI
> should
> be
Hi,
On Mon, Jun 20, 2016, at 14:54, 二戒 wrote:
> sorry. I have found my forum can't show attachment now.
>
> blow is the nginx vhost config fles, where is the mistake?
>
> thank you.
>
> server
> {
> listen 80;
> server_name www.cnprint.org;
> index index.php index.html index.htm;
> root /home
Hi,
On Mon, Jun 20, 2016, at 14:20, 二戒 wrote:
> I think should this line "location ~* ^/bbs/attachment+\.php?$" has
> mistake, but I can't resolve it.
>
> location ~* ^/bbs/attachment+\.php?$
> {
> valid_referers none blocked *.cnprint.org server_names ~\.google\.
> ~\.baidu\. ~\.360\. ~\.bing\.;
Hi
On Thu, Jun 16, 2016, at 22:11, Edho Arief wrote:
> >
> > for /demo/ it prints "/demo/"
> > and
> > for /demo/hello/x it prints "/demo/hello"
> >
> > Which looks like their "auto base-path" is setting moving goalposts !!
>
Hi
On Thu, Jun 16, 2016, at 22:06, Ben wrote:
>
> >>
> >> If it helps, I'm using bramus router and my configured paths are as
> >> follows :
> >>
> >
> > Looks like the logic for getting base path is a bit interesting. Try
> > this for related line:
> >
> > fastcgi_param SCRIPT_NAME /dem
Hi
On Wed, Jun 15, 2016, at 02:28, Ben wrote:
> Hi,
>
> Based on scraps found in the NGINX docs, I have a semi-working config
> that looks as follows :
>
> #
> location /demo {
> allow 10.0.0.0/8;
> deny all;
> try_files $uri @pdemo;
> }
Hi,
On Mon, May 2, 2016, at 17:55, mayak wrote:
> hi all,
> i have simply broken my brain trying to execute a `cgi` script that
> requires no interpreter -- just execute the cgi binary with the query
> portion of the url, and it spits out html content.
> no matter what i do, i always end up with E
On Thu, Aug 27, 2015 at 12:52 AM, Etienne Champetier
wrote:
>
>
> 2015-08-26 17:36 GMT+02:00 Edho Arief :
>>
>> On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier
>> wrote:
>> > Hi,
>> >
>> > I have this setup
>> > browser -> s
On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier
wrote:
> Hi,
>
> I have this setup
> browser -> ssl proxy -> nginx
> browser to ssl proxy is https only
> ssl proxy to nginx is http only
>
> now i browse to "https://exemple.com/aaa";, where aaa is a directory,
> so nginx send back a 301 redire
On Tue, Aug 11, 2015 at 10:29 PM, Arun John (arujohn) wrote:
> Hi,
>
> Thanks for the suggestion. I tried using proxy_pass, but it didn¹t help
> much.
>
I think it would help if you explain the problem in more detail than
just "didn't help much".
___
n
On Thu, Jul 30, 2015 at 11:57 PM, Gregory Edigarov wrote:
> Hello,
>
> is that possible to tell nginx to stay inside the same location after
> rewrite rule is done?
>
> i.e. I have:
>
> location /njs/ {
> proxy_pass http://localhost:5501;
> ..
> }
>
> now, if i need to cut off /njs/ part,
On Thu, Jul 23, 2015 at 2:08 AM, sudharshanr wrote:
> I think I need to rephrase my question. Right now, my nginx.conf looks like
> this:
>
> location ~*/path1/{
> if (-f $document_root/error503.html) {
> return 503;
> }
> }
>
> error_page 503 ?arg1=$arg_queryparam1&arg2= from url>
>
> As you can
On Jul 22, 2015 11:43, "sudharshanr" wrote:
>
> I have a web server sitting behind Nginx. If there is an error, then I
want
> to fetch some information from the url and pass it on to a static file as
> parameters. I have configured Nginx to fetch the query parameters from the
> url using $arg_para
On Sat, Jul 4, 2015 at 2:48 PM, Maxim Dounin wrote:
> Hello!
>
> On Thu, Jun 25, 2015 at 06:16:42PM +0900, Edho Arief wrote:
>
>> I noticed that trac.nginx.org has https/SNI configured for the host
>> but no actual ssl configuration (how do you even do that):
>
> T
I noticed that trac.nginx.org has https/SNI configured for the host
but no actual ssl configuration (how do you even do that):
$ openssl s_client -connect trac.nginx.org:443 -servername trac.nginx.org
CONNECTED(0003)
140010415498912:error:14077410:SSL
routines:SSL23_GET_SERVER_HELLO:sslv3 aler
On Wed, Jun 24, 2015 at 3:44 PM, E.B. wrote:
> Thanks for your ongoing helps! I hope someone
> can advise further
>
>> >> You're probably looking for this
>> >>
>> >> fastcgi_param SCRIPT_FILENAME /another/different/path/anotehrscript.php;
>> >
>> > Excellent point! Thanks you!
>> > However, what
On Tue, Jun 23, 2015 at 5:32 AM, E.B. wrote:
>>
>> You're probably looking for this
>>
>> fastcgi_param SCRIPT_FILENAME /another/different/path/anotehrscript.php;
>
> Excellent point! Thanks you!
> However, what if the alias was NOT to a php file? Is using
> rewrite the only solution - alias not
On Mon, Jun 22, 2015 at 7:05 PM, E.B. wrote:
> Hi, I'm confused about the details of "alias" used as
> a kind of rewrite (which should be more efficient as
> I understand it, as long as its appropriately used).
>
> I found I can do this:
>
> location = /path/number/one.html {
> alias /some/other
On Wed, Mar 25, 2015 at 2:32 AM, Francis Daly wrote:
> On Tue, Mar 24, 2015 at 11:33:41AM -0400, Jonathan Vanasco wrote:
>
> Hi there,
>
>> if ($query_string){
>> return 301
>> https://$host$request_uri&source=server1 ;
>>
On Fri, Mar 13, 2015 at 8:01 PM, dominus.ceo wrote:
> Does anybody know what does "Undefined index: HTTP_X_AUTH_PORT " mean?
>
It means your php application is incorrectly written or you missed
some nginx configuration for that specific application. (it's php
error message)
_
On Mon, Mar 9, 2015 at 11:44 PM, Gena Makhomed wrote:
> On 08.03.2015 22:50, Francis Daly wrote:
>
>>> webpage http://wiki.nginx.org/Redmine has some security problems:
>>>
>>> 1. All redmine config files are available for anybody in internet,
>>> for example: https://redmine.example.com/config/da
On Tue, Jan 6, 2015 at 3:47 AM, Styopa Semenukha wrote:
> The hostname "domain1.com" is NOT matched by wildcard "*.domain1.com" (this
> only matches subdomains), so it gets served by the default virtual host. Since
> you don't have an explicit definiton of the default vhost, it's the first one
> (
not sure about your original problem but `curl -X HEAD` isn't a proper http
request:
```
This option only changes the actual word used in the HTTP request, it does
not alter the way curl behaves. So for example if you want to make a proper
HEAD request, using -X HEAD will not suffice. You need to
On Sat, Dec 13, 2014 at 9:00 AM, neubyr wrote:
>
> I was wondering if it's possible to have separate namespaces for '/test' and
> /test/'. For example:
>
>
> location /test {
> root /usr/share/nginx/test;
> }
>
> location /test/ {
>root
On Tue, Nov 25, 2014 at 9:48 PM, ManuelRighi wrote:
> Hi,
>
> drwxr-xr-x 24 root root ? 4096 Oct 26 14:07 /
> drwxr-xr-x 17 root root ? 4096 Nov 25 09:59 /var
> drwxr-xr-x 21 root root ? 900 Nov 25 13:48 /var/run
> drw-rw-rw- 2 www-data www-data ? 60 Nov 25 13:47 /var/r
On Wed, Nov 19, 2014 at 11:22 PM, biot023 wrote:
> Ah, will do, cheers -- I had a look through the NGINX variables, but it
> wasn't really clear which variable did what.
> I suppose something like:
>
> location / {
> return 301 https://$uri;
> }
>
> Wouldn't work?
>
generic redirect looks like
On Wed, Nov 19, 2014 at 9:16 PM, biot023 wrote:
> Hi -- we currently have a redirect rule in a location on our server to
> redirect all non-SSL traffic to SSL, like so:
>
> location / {
> return 301 https://$server_name$request_uri;
> }
>
> This works for almost all cases, but there is an edge c
On Sat, Nov 8, 2014 at 11:31 AM, B.R. wrote:
> Hello,
>
> Trying to rewrite an URI based on an argument, I cannot match it otherwise
> than by using rewrite.
>
> The problem is I fail to achieve a working recipe rewriting
> example.com/watch?v=123456
> to
> example.com/watch?vid=123456
>
> rewrite
On Thu, Oct 16, 2014 at 9:03 PM, igorb wrote:
> That does not work either. What works is try_files "" =404 together with an
> explicit alias as Francis Daly described in another post.
>
did you put it inside the aliased location block? That'd explain why
it doesn't work (as francis said, $documen
On Thu, Oct 16, 2014 at 8:25 PM, igorb wrote:
> I tried that, but it still does not work. The following config as before
> still gives 404 for localhost/x/test.html :
>
> server {
> listen 8080 default_server;
> root /usr/share/nginx/html;
> autoindex on;
>
> locati
On Thu, Oct 16, 2014 at 8:09 PM, igorb wrote:
> I tried to add explicit alias to the regexp location:
>
> server {
> listen 8080 default_server;
> root /usr/share/nginx/html;
> autoindex on;
>
> location /x/ {
> alias /test/;
> }
>
>
> On Fri, Sep 12, 2014 at 04:37:24AM -0400, antoniofernandez wrote:
>
> Hi there,
>
>> I have two index.php files :
>>
>> /public/index.php
>> /index.php
>>
>>
>> The content of /index.php file is :
>>
>> - content -
>> ./public/index.php
>> -
> }
>
> does not work :o(
>
>
try reading the documentation: http://nginx.org/r/location
>
> Le 16 août 2014 à 10:52, Edho Arief a écrit :
>
> >>
> > location ^~ /us/us/ {
> > rewrite ^/us(/us/.*) $1 permanent;
> > }
> >
>
On Sat, Aug 16, 2014 at 5:27 PM, Ronald Van Assche wrote:
> I want to redirect /us/us/directory/filename to the /us/directory/filename
> directory on my Nginx server.
>
> but this
>
> if ( $request_filename ~ /us/us/.+ ) {
> rewrite ^(.*) http://mysiteurlt/us/$1 permanent;
On Sat, Jul 19, 2014 at 11:51 PM, martyparish wrote:
> Unfortunately it did not. I was really hoping to do this with try_files
> instead of "if" and rewrite!
>
what error did you get
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailm
On Sat, Jul 19, 2014 at 11:34 PM, martyparish wrote:
>
> actually this part was wrong;
> if (!-f $site_folder) {
> rewrite ^/[^/]+/(.*) /$1;
> }
>
> needs to be:
>
> if (!-d /etc/nginx/html/production/$site_folder) {
> rewrite ^/[^/]+/(.*) /$1;
> }
>
> * changed -f to -d
> ** had to add root path
On Sun, Jul 7, 2013 at 6:30 PM, lennart wrote:
>
> Is there a way to do this with regex or variables? I've ~15 domains and it
> would be more convenient to have only one entry "to rule them all" ;-)
>
the regex way, which is supposedly slower:
server {
server_name ~^www\.(?.+)$;
listen 80; l
On Sun, Apr 7, 2013 at 12:34 AM, Typlo wrote:
>
> Hello,
> I would like to use the FastCGI cache feature of nginx for my web
> application. But I need to use it only for a set of URL.
>
> I would like to use it for the following locations:
>
> http://domain.com/index.php?act=detail&ID=[ANY ID HER
On Thu, Mar 7, 2013 at 10:11 PM, anthony kerz wrote:
> hi,
>
> i'm trying to build from source on an ubuntu system which has libpcre3
> installed:
>
> tony@quantal:~/Downloads/nginx-1.3.14$ dpkg -l | grep pcre
> ii libpcre3:i386 1:8.30-5ubuntu1 i386 Perl 5 Compatible Regular Expression
> Library -
55 matches
Mail list logo