server { listen 80; listen 443 ssl; server_name pipedot.org; root /var/pipecode/www; index index.php index.html; autoindex on; client_max_body_size 50M; ssl_certificate /etc/ssl/pipedot.crt; ssl_certificate_key /etc/ssl/pipedot.key; ssl_session_timeout 5m; location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php.sock; fastcgi_index index.php; include fastcgi_params; } location ~* \.(png|jpg|ico)$ { expires 30d; } error_log /var/log/error.log error; access_log /var/log/access.log; }