One easy newbie mistake to make is leaving out trailing slashes for location
and proxy_pass blocks. I'd expect the location block to look something like
this:
location /app/ {
proxy_pass http://tomcatdomain/application_name/;
}
Note the trailing slashes after /app/ and /application_name/.
Hi,
show your full config, usually there is no need to set variable like
$tomcatdomain,
proxy_pass http://tomcatdomain;
is enough.
br,
Aziz.
> On 22 Feb 2018, at 16:17, imrickysingh wrote:
>
> Hi guys,
>
> I am new to nginx and facing some problem with my setup.
>
> In my setup i have
Thanks Alot Francis Daly, actually i was trying to understand the working
of rewrite and location rules how they handle the query. you explain it
very well. Thanks again for sharing such useful and detailed explanation. i
really appreciate that. :)
On Tue, Apr 19, 2016 at 4:23 AM, Francis Daly
On Mon, Apr 18, 2016 at 06:37:59PM +0500, Muhammad Yousuf Khan wrote:
Hi there,
> Thanks alot Francis Daly :). the try_file option worked for me and location
> tip also worked but try_file seems more better approach.
I'm glad you got it working for you.
> Btw, can you please explain this paragr
Thanks alot Francis Daly :). the try_file option worked for me and location
tip also worked but try_file seems more better approach.
Btw, can you please explain this paragraph. actually i am really sorry for
this newbie type question. actually i have been working as ssytem admin for
last 5 years.
On Sat, Apr 16, 2016 at 12:22:46PM +0500, Muhammad Yousuf Khan wrote:
Hi there,
> location ~ \.php$ {
> location ~*
> \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|woff|woff2)$
>
Here is our nginx default configuration file.
server {
server_name www.mydomain.com;
return 301 $scheme://mydomain.com$request_uri;
}
server {
server_name mydomain.com;
#listen 80;
root /var/www/html/mydomain/public_html;
index index.php info.php;
access_log /var/log/nginx/mydomain/access.lo
On Fri, Apr 15, 2016 at 12:27:11PM +0500, Muhammad Yousuf Khan wrote:
Hi there,
> Sorry for the mistake in a's and b's i was typing that in general because
> the context was not the URL but the problem.
If you can show one specific url which does show the problem, then it
makes it much easier to
Hi All,
Thanks for your help. Ph. Gras and Francis for your support and advice i
really appreciate that.
Ph. Gras, i tried "break" but now it is showing 404.
Francis,
Sorry for the mistake in a's and b's i was typing that in general because
the context was not the URL but the problem.
>Do not
On Thu, Apr 14, 2016 at 07:03:19PM +0500, Muhammad Yousuf Khan wrote:
Hi there,
> there are multiple apache redirection rules that were working successfully.
> for example something like this
>
> Redirect 301 //bbb /a/bb.html
>
> Now i have converted this rule in nginx like this
Le 14 avr. 2016 à 16:03, Muhammad Yousuf Khan a écrit :
> Redirect 301 //bbb /a/bb.html
>
> Now i have converted this rule in nginx like this
>
> location // {
> rewrite ^(.*)$ //bb.html redirect;
> }
>
You should use break instead redirect :
http://n
Thanks Steve and Alt for the hint. you point out the correct problem. there
are two settings in wp-config.php which i change something like this and it
worked.
from this
define('WP_HOME','http://www.xxx.com');
define('WP_SITEURL','http://www.xxx.com');
to this
define('WP_HOME','http://xxx.com')
It sounds to me like wordpress believes that www is required and nginx
doesn't want it.
I'd try commenting out the redirect server{} block and add the
server_name to the xxx.com one and see what you end up with in your
browser, then have a look through the wordpress settings to see what
it's want
Hello,
Muhammad Yousuf Khan Wrote:
---
> I can access php files properly like info.php. to check whether php
> is
> working or not. however the problem part is wordpress.
>
> when i try to load my wordpress site chrome shows an error saying
> r
Thats working thanks!!
I set default_server in localhost because i want to show default page when
you go to http://1.2.3.4
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,253713,253719#msg-253719
___
nginx mailing list
nginx@nginx.org
http://
On Fri, Oct 3, 2014 at 12:39 AM, Adie Nurahmadie
wrote:
>
> On Fri, Oct 3, 2014 at 12:33 AM, Kurogane wrote:
>
>> No.
>>
>
> There is your problem, the config supposed to looks like this:
>
> server {
> listen 80 default_server;
> server_name localhost;
>
On Fri, Oct 3, 2014 at 12:33 AM, Kurogane wrote:
> No.
>
There is your problem, the config supposed to looks like this:
server {
listen 80 default_server;
server_name localhost;
root /home/nginx/default/public;
}
server {
listen 80;
No.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,253713,253715#msg-253715
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
On Fri, Oct 3, 2014 at 12:22 AM, Kurogane wrote:
> Hello All,
>
> I am facing some issue regarding nginx redirection i'm unable to fix it. I
> want to create redirect non www to www but always redirect me to
> default_server how i can fix this issue.
>
> This is what i have
>
> server {
>
Thank you Maxim. :)
Is there a way to skip the IF with try_files and still having a 301
footprint?
Something like:
try_files /beta/info/$arg_id/ =404;
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,240299,240302#msg-240302
___
nginx mailing l
Hello!
On Mon, Jun 24, 2013 at 08:58:29AM -0400, TECK wrote:
> Hello everyone,
>
> I'm currently using Nginx 1.4.1 on CentOS 6.4 64bits and trying to perform a
> redirect of this type:
> location /alpha {
> location ~ ^/alpha/script.+([\d]+)$ {
> return 301 /beta/info/$1/;
> }
>
21 matches
Mail list logo