Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

Reverse proxy not working

Hello,After days of trying I still can't get it work.I want to set Nginx as reverse proxy in the front of Apache. Everything is working fine except PHP. Depending on the settings Nginx can't find the...

View Article


access log ONLY for a specific agent string???

Cant figure out how to do this.I want my access log to only log entries that come from an agent containing the string "wordone wordtwo wordthree" etcAnyway to do this?

View Article


Re: access log ONLY for a specific agent string???

Ive played around with this:if ($http_user_agent ~* (bot) ) {set $crawler 'yes';}location / {if ($crawler = 'yes') {access_log /var/log/bots.log;access_log on;}}Just doesnt work. :(Nothing appears in...

View Article

Re: access log ONLY for a specific agent string???

Got it working!Was a location block problem.I deleted the location / blockand move this partif ($crawler = 'yes') {access_log /var/log/bots.log;access_log on;to my fastcgi processing block

View Article

Re: Nginx 1.4.x vs 1.2.x

Anyone?I see there are two different changelogs.http://nginx.org/en/CHANGES-1.2http://nginx.org/en/CHANGESWhy? Why aren't the 1.2.x versions listed in the main changelog?

View Article


assistance with converting some htaccess rules using [P] mod_proxy

i am working with post affiliate pro and part of their script allows replication of a website. this is accomplished with a few rules in htaccess, i am having some difficulty converting them to work...

View Article

Re: How to get the hostname by perl?

I know this is a year old thread but just to help someone in the future as it is not documented clearly:There is a $r->variable(name) functionSo just do this$r->variable(host)Basically any...

View Article

about ngnix conf

i have two config file, how to combine these.i tried to do this, but seems not work well. the /edit is not correct for me.first is```log_format www.xxx.com '$remote_addr - $remote_user [$time_local]...

View Article


NGINX with Microcaching

Can someone please explain to me what NGINX with Microcaching is and how it could help speed up my website?My server has NGINX, FastCGI, Memcached, and Cloudflare.How do I install it or configure it?...

View Article


Sending mail through C language Nginx

Hello friends;Nginx configuration done on the e-mail. How do I send e-mail out of Nginx in C programming language.C and 25 port data is sent to be enough?I'd love you show me the way.Sample Nginx STMP...

View Article

Nginx variable scope

Hello, All !I am wondering, if it is possible to limit visibility of a variable in Nginx ? For example if some variable was set inside "server" block, it is visible only within this "server" and not...

View Article

How can I catch empty AND undefined server name?

Hello, everyone.I want to catch all invalid server name (empty AND undefined server name) to prevent invalid access.But I confuse whether my configuration is exactly right.I read two documents.1....

View Article

DSFHGF

DFSGFHGDJ

View Article


HTTPS return

Hi!I'm having problem with Nginx SSL return. My Nginx server have certificate, which is signed for www.example.com, but not for example.com. I can't make, that my Nginx server return web page proper....

View Article

How can I send data continuously without blocking

Hello,I want to send data continuously in a long loop, and I don't want to block the worker's primary event loop with my own loop logic. How can I do it?This is my handler function:/* Handler function...

View Article


how to take directory access control with nginx conf

hi, i'm using linux. there are some domains there, such as the follow:/home/wwwroot/aaa.com/home/wwwroot/bbb.com/home/wwwroot/ccc.comFILE1:...

View Article

how store settings of dynamic locations in database?

Hello!I have php-app. It is generate links.I want every link had different limits. But i have many links and dont want make reload every time (app can generate 10 links per minute). I see store...

View Article


Nginx limit_conn in IF statement?

How to make possible something like this?location /download/ {limit_conn addr 2;if ($arg_C) {limit_conn addr 1;}}Gives me an error:Restarting nginx: nginx: [emerg] "limit_conn" directive is not allowed...

View Article

Re: how store settings of dynamic locations in database?

Hello, please describe more your problem, I am unable to understand where is the problem. If you generate links via PHP so then write it in database.Or build 1 link with multiple args and in nginx...

View Article

converse rea sverige

CONVERSE

View Article
Browsing all 4759 articles
Browse latest View live