nginx unix domain socket error
I use fedora 17, and when I setup nginx with uwsgi using unix domain socket, when I place the socket in a directory with proper permission it’s ok, but when I place the socket in the /tmp it will...
View Articlestrange lines in nginx log
I’m running nginx 1.2.6 behind amazon elb. Periodically I see the following lines in nginx access.log: 10.28.135.252 - - [14/Jan/2013:14:20:07 +0000] "-" 400 0 "-" "-" "-" 10.28.135.252 - -...
View Articlenginx / mod_passenger on linode instance with oom messages – where to look next?
I am running an Ubuntu Server that is starting to have problems. It’s very lightly used but am confused to why it is now having memory issues. I’ve included some of the output from syslog and free -m....
View ArticleCannot execute PHP file from domain name
Server run on Amazon Linux AMI** (similary to redhat) I follow the installation from Install PHP-FPM, Nginx, & MySQL on EC2 with Amazon Linux AMI It’s work properly if I call directly from server...
View ArticleHttpGeoipModule $geoip_country_code is blank
In nginx.conf: http { geoip_country /etc/nginx/GeoIP.dat; ... } If I do: server{ ... location / { add_header X-Geo $geoip_country_code; add_header X-Geo3 $geoip_country_code3; add_header X-IP...
View ArticleDoes nginx cache (copy) my images?
I’m using http public cache all over an images website to allow clients and anyone between the clients and my server (eg: cloudflare, isp, etc) to cache HTML, assets (js/css/icons), and images (the...
View Articlecannot restart php5-fpm
I’ve made some changes in the .ini files and wanted to restart php5-fpm. /etc/init.d/php5-fpm restart Jan 20 14:25:48.171577 [ERROR] bind() for address ‘/var/lib/php5-fpm/apps.sock’ failed: Address...
View ArticleServing static directory on subdomain with assets
I have a html presentation which I would like to serve on a subdomain on my server. It just consists of some static html files and some assets (the Github is here). I’m trying to write an nginx config...
View ArticleNginx rewrite rule “^/([a-z0-9]{32})\.png$” not working (used to work on Apache)
I have these rewrite rules (I tried both with no avail): location ~* "^/([a-z0-9]{32})\.png$" { rewrite ^ /index.php?page=log&id=$1 last; } and location ~* "/(?<hash>[a-z0-9]{32})\.png" {...
View ArticleHow do you restart php-fpm?
I need to reload my php.ini and there’s nothing in the help dialog about restarting it. Asked by Galen Assuming you have the appropriate RC scripts in place, /etc/init.d/php-fpm restart or restart...
View Article
More Pages to Explore .....