Thanks for response, > Setup log rotation depending on size of logs or daily rotation. If I use log rotation would I still have access to all access data logs where I moved? >Instead of randomly restarting – do a config check and only restart if the config is valid (should also validate the log location) There is a scheduled script restarts server to close some program sockets oby lifeisjustabout - Nginx Mailing List - English
Thanks for the response. The reason why I want to implement this is because I have dedicated server and thanks to nginx everything is work perfectly so I don't need to check server everyday. I don't want to locate logs on ssd main (hardrive /var/log/nginx/) which is obviously smaller hard disk than my external sata hdd (/externalhdd/log/nginx/). I am afraid if something happens to external hard drby lifeisjustabout - Nginx Mailing List - English
Hi I would like to implement if condition on access and error log. Prior to nginx restart I want nginx to look for first log path location eg. /externalhdd/log/nginx/example.com_access.log, if log doesn't exist use second path which is /var/log/nginx/example.com_access.log I have given like my example. I guess I need some if conditions or something. server { listen 80; server_by lifeisjustabout - Nginx Mailing List - English
hi it is the solution for this question either you call jail wp-admin and wp-login php or any kind of php in wp-admin will not be allowed location /wp-admin { allow 1.1.1.1; #your home static ip address deny all; error_page 403 = @goawaywpadmin; } location @goawaywpadmin { return 404; } location ~ ^/(wp-login.php) { allow 1.1.1.1; #your home static ip addresby lifeisjustabout - How to...
Hello I have small pdf search site searches pdf over internet when somebody search URL look like www.mypdfsearchwebsite.com/pdf/nginx.html with (html extension) google index this address with html and without html version so there are duplicate record on google index each search lies without html www.mypdfsearchwebsite.com/pdf/nginx and with html www.mypdfsearchwebsite.com/pdf/nginx.html veby lifeisjustabout - Nginx Mailing List - English
hi i try to setup akamai cdn i upload all my pictures to CDN server and all pictures point out from my website to CDN everything allright but they let me put upto 3 days ttl time of images, when i go www.webpagetest.org the site always warning that because is not 30days the address something like http://www.cdntechnologies.com/adsa.34a/mypicture.png i want this picture expire time to be 30days onby lifeisjustabout - Nginx Mailing List - English
server { listen 80; server_name test.co.uk; rewrite ^ http://www.test.co.uk$request_uri permanent; }by lifeisjustabout - Nginx Mailing List - English
hi guys i solve this issue with php-fpm and APC my advice is never use spawn-fgci and use php-fpm with APC currently have 20 connection and 0.65 cpu load http://img146.imageshack.us/img146/7465/newstats.png Uploaded with ImageShack.usby lifeisjustabout - Nginx Mailing List - English
hi kaspars I tried to install APC and php-fpm but no luck i couldnt find any repo to do that i found some repo but they are fairly old and even try to install it says no package available either apc nor php-fpm do i need to use both apc and php-fpm in order to reduce cpu usage? php-fpm: i tried manual installation but no luck after rpm installation i try to start it couldnt find config fby lifeisjustabout - Nginx Mailing List - English
Hi i have a script called mysql, when 10 people comes site at the same time cpu load above 1.50, with apache 20-30 people no problem no more then 2 at the same time. i've tried to install APC via whm its been automaticlly installed but when i restart nginx every nginx process takes 2% or %3 for 4-5 people at the same time (good sign) the problem is after 30 second it goes white screen automaticllby lifeisjustabout - Nginx Mailing List - English
fast-cgi switches itself off after 5-10 min of restarting so i have to run manually then it won't swithces off is there any way to find out why its switches itself off after 5 min inital restartby lifeisjustabout - Php-fpm Mailing List - English
hi im trying to working out with nginx expcially i am facing many error after changing webserver from apache to nginx i solved most of error except this i am running search engine script and keyword suggesstion doesnt work only i.e actually english is ok but other then english dont work at all e.g russian,arabic,greek,chineese i get all this error message(with apache i dont get this error workingby lifeisjustabout - Nginx Mailing List - English
found thanks.by lifeisjustabout - Requests for Paid Services
Hi Jim, i will monitoring the program that you mentioned thanksby lifeisjustabout - Nginx Mailing List - English
Hi Maxim it works now i added this into nginx conf rewrite /(.*)(js\/)(.*)$ /$2$3$4 last; thanks for your helpby lifeisjustabout - Nginx Mailing List - English
hi i have java script document in /js/test.js when i try to access that file i am getting error www.domain.com/js/test.js 500 Internal Server Error nginx/0.8.53 error log showing me this 2011/02/06 15:12:44 11249#0: *704 rewrite or internal redirection cycle while processing "/lightbox$ 2011/02/06 15:13:33 11245#0: *791 rewrite or internal redirection cycle while pby lifeisjustabout - Nginx Mailing List - English
Hi, I have sites and connect fastcgi app :9000 sometimes fastcgi app closing unexceptly so my websites also down i have to start fastcgi app manually is there any possiblity that i can find out why fastcgi killing itself and if so, is there any possibility that i can add some command somewhere it will trigger to start fastcgi app again once its close thanks.by lifeisjustabout - Nginx Mailing List - English
i need a guy who has strong knowledge of nginx webserver with along php developer i moved my server from apache to nginx some of websites dont work i have 2 problem to be solved 1) there is redirection php script, after changing web server this redirection doesnt work what this script does if you are from australia and first visit www.google.com it ll redirect you => www.google.com.au if yby lifeisjustabout - Requests for Paid Services
Hi, Is there any command that i put in conf file to turnoff warning message of joomla. for instance in apache .htaccess if i add php_flag display_errors "0" it doesnt show me error message anymore how can i get rid of this problem thanks in advanceby lifeisjustabout - Nginx Mailing List - English
thanks its been fixedby lifeisjustabout - Nginx Mailing List - English
thanks Antonio its been fixedby lifeisjustabout - Nginx Mailing List - English
Hi Antonio, thanks for your answer i added your code into conf but still didnt help when i type something in textbox system try to autocomplate i think livesearch but when you put space after a word its getting error, when i see access log i am receiving this i try to search kylie i am typing kylie xx.xx.xx.xx - - [02/Feb/2011:16:58:37 +1100] "GET /index/livesearch&q=k&typeby lifeisjustabout - Nginx Mailing List - English
thanks Antonio if i could find to change & to ? i am going to solve my problem incorrect http://www.mysite.com/search/web&search=katy%20perry&type=web correct http://www.mysite.com/search/web?search=katy%20perry&type=web what should i add into my conf server { listen 81; server_name *.mysite.ws; access_log /var/log/mysite.access.log main; error_log /var/logby lifeisjustabout - Nginx Mailing List - English
what kind of expression that i need to write in conf file to convert & to ? www.mysite.com/search/web?search instead www.mysite.com/search/web&searchby lifeisjustabout - Nginx Mailing List - English
hi i've seen many example that answered this forum and they use RewriteCond but if i put that command i get error nginx 0.8.3 RewriteCond %{request_uri} !^index\.php if put my conf file it says : unknown directive "RewriteCond" in ...........by lifeisjustabout - Nginx Mailing List - English
i identify the error but still couldnt resolve nginx didnt replace space following nginx & apache ? nginx % apache +by lifeisjustabout - Nginx Mailing List - English
i think there is something wrong with the space "did you mean" also doesnt work properly it redirect me different address it redirect me which is not working mywebsite.com/search/web&search=katy%20perry&type=web working example is mywebsite.com/search/web?search=katy+perry&type=webby lifeisjustabout - Nginx Mailing List - English
http://img843.imageshack.us/img843/3512/showk.png Uploaded with ImageShack.us hi i just try to running my website on nginx i am really impressed the speed i have search engine script and working apache well i just made 81 port for nginx for testing purpose i found a .htaccess converter to nginx after this rewrite my site %90 works except if i type michael autocomplate works but if i put spacby lifeisjustabout - Nginx Mailing List - English