Tags » Nginx

Broken files when using Virtualbox synced folders and Nginx

In case if you noticed that static files that are served via nginx arrive broken somehow – check if you have the sendfile directive turned off… 12 more words


AWS CloudWatchにカスタムメトリックスを登録する


AWS のサービス(特に EC2)を監視するには

  • aws マネージドサービスにデフォルトでついてくる CloudWatch を利用(aws おまかせ)
  • カスタムメトリックスを CloudWatch に送信し、CloudWatch を利用(エージェントだけ自前実装)
  • new relic のような ASP サービスを利用(エージェントだけ自前インストール)
  • Zabbix などの監視システムを構築(サーバ、クライアントの両方を自分で面倒を見る)




EC2 インスタンス(OS は amazon Linux)からカスタムメトリックスを CloudWatch に送信する。 466 more words


nginx default template

server {
        server_name domain.com;
        return 301 $scheme://www.domain.com$request_uri;

server {
        listen   80;
        server_name www.domain.com;

        root /var/www;
        index index.php index.html index.htm;

        location / {
            try_files $uri $uri/ /index.php$is_args$args;

        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
            expires 1y;
            log_not_found off;

        # pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
        location ~ \.php$ {
            try_files $uri /index.php =404;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;

How To Install an SSL Certificate from a Commercial Certificate Authority


This tutorial will show you how to acquire and install an SSL certificate from a trusted, commercial Certificate Authority (CA). SSL certificates allow web servers to encrypt their traffic, and also offer a mechanism to validate server identities to their visitors. 3,141 more words


Understanding and Implementing FastCGI Proxying in Nginx


Nginx has become one of the most flexible and powerful web server solutions available. However, in terms of design, it is first and foremost a proxy server. 5,368 more words


[Nginx | PHP-FPM] Wordpress HTTP error when uploading files

Very first time after installed WordPress on my VPS, I can only upload file <2MB due to the setting of /etc/php.ini. After modified /etc/php.ini… 54 more words

Install OwnCloud 7 with Nginx and PHP-FPM on an Ubuntu VPS

OwnCloud is a web based application that provides services such as file storage, management and sharing. Using OwnCloud you can sync and share your files, calendar, contacts and much more. 19 more words