server {
listen 443;
server_name www.vkgame.asia vkgame.asia;
root /data/app/www.vkgame.com;
index index.php;
location ~ /\. {
deny all;
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
##fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_read_timeout 300;
#fastcgi_send_timeout 300;
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
#include fastcgi.conf;
}
ssl on;
ssl_certificate /etc/nginx/ssl/vkgame-asia.pem;
ssl_certificate_key /etc/nginx/ssl/vkgame-asia.key;
}
server{
listen 80;
server_name www.vkgame.asia vkgame.asia;
rewrite ^/(.*)$ https://www.vkgame.asia/$1 permanent;
}