Reputation
1,415
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 8 17
Newest
 Deputy
Impact
~19k people reached

17h
comment Why this nginx rewrite rule add trailing slash?
A url always starts with / so $1 will also with the config in the question.
Apr
23
comment Handle redirects on proxied server
I want to stay'em on website.com - what does this mean? Generally the question isn't clear.
Apr
23
comment nginx log when specific referrer is present
Why do that at all instead of just greping the log for bad referers?
Apr
22
comment Installing SSL certificate on nginx server
In fact I expected at least to redirect the http:// site to https:// but even that is not the case are you connecting to this server at all? The http->https redirect you have rewrite ^/(.*) https://www.***.co.uk/$1 permanent; would capture all requests. Though that's not the best way to do it. Note that all your location blocks are in the wrong server block, if your intention is to be https only.
Apr
22
comment nginx Access Control Origin Header is configured but doesn't work
Deliberately or otherwise, you are not helping. The curl response (is it the response to the url in the code block directly above it? it's not clear) does not match the config in the question, also doesn't match the error message in the block above it. Please ensure the config in the question matches what you are using (e.g. - restart nginx if you haven't already done so) - show your full nginx config if you're removed some of it, and show the full response headers if you removed some of that too.
Apr
21
comment Mobile Redirect exeption on NGINX
They are simply examples to counter Forget that "mobile site" nonsense - If it's nonsense - why do you think sites with significant traffic still do that? This isn't a request for a debate - rather a prompt to consider the possibility (gasp) that advice doesn't apply to all situations (arguably it shouldn't apply to most situations).
Apr
21
comment How to set auth_basic for one file in NGINX?
Once a location block is matched - no other location block is used. Given that it should be clear that wp-login.php will never be processed as a php file with the config in the question.
Apr
21
revised Robots file behaviour
reword for inexperienced readers
Apr
21
comment Mobile Redirect exeption on NGINX
.= That said, @jonathanmaderer you are better off not doing that and handling redirects in your app IMO (or not redirecting at all and using the cookie/detection logic to return the desktop/mobile version on the same url).
Apr
21
comment Error: upstream prematurely closed connection while reading response header from upstream
If your question/problem is code - especially code you've written - SF is the wrong site to be asking for help on.
Apr
21
answered nginx Access Control Origin Header is configured but doesn't work
Apr
21
comment Mobile Redirect exeption on NGINX
@AndréDaniel rather inappropriate/uninformed advice. Why do you think for example https://mobile.twitter.com is a thing? Or that stack exchange (a site that is primarily text) does not use a responsive layout? Relying on responsive layouts can lead to mobile users downloading more assets than a desktop user, exacerbating the problem of mobile latency + download speeds (for the majority of users) being far from optimal.
Apr
21
comment after ngnix restart,something get wrong?
Failed opening required '1024M' - Read the error message. Php is trying to require a file named 1024M. Which probably indicates your php.ini file is a mess.
Apr
20
comment What kind of server would I need to host a large number of websites for my clients?
Number of sites doesn't really matter - traffic/concurrent users do. You could be fine with almost any dedicated server. Who knows though, and wrong question to ask here.
Apr
20
comment My website pages does goes live on my DNS
Start by reading up on cache headers, browser cache, and http conditional validation requests (http response code 304).
Apr
17
comment Apache http to https redirection
If you're on shared hosting, this site probably isn't for you.
Apr
12
comment What is the minimal init.d script for Ubuntu?
@kasperd amazing, thanks for clarifying.
Apr
12
revised What is the minimal init.d script for Ubuntu?
Use a code block for code. Much better than your other link-only answers.
Apr
12
comment What is the minimal init.d script for Ubuntu?
echo $'Execute start!' - Is that a typo..? There's no reason to turn strings into variables.
Apr
12
suggested approved edit on What is the minimal init.d script for Ubuntu?