40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen 443 ssl;
|
|
|
|
server_name www.gamewheel.local;
|
|
|
|
root /srv/gamewheel.local/www;
|
|
index index.php;
|
|
|
|
access_log /var/log/nginx/www.gamewheel.local.access.log;
|
|
error_log /var/log/nginx/www.gamewheel.local.error.log;
|
|
|
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
|
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
|
ssl_session_timeout 5m;
|
|
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
|
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
|
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
|
|
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
|
|
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
|
|
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
|
|
|
|
add_header Access-Control-Allow-Origin '*';
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.*.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
fastcgi_pass 127.0.0.1:9001;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
}
|
|
}
|