Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream production {
- server unix:///tmp/production.babeeplay.com.socket;
- }
- server {
- listen 80 default_server;
- server_name www.playfulbee.com;
- root /home/app/websites/playfulbee_blog/;
- index index.php index.html index.htm;
- listen 443 ssl;
- ssl_certificate /etc/ssl/certs/www.playfulbee.com.pem;
- ssl_certificate_key /etc/ssl/private/www.playfulbee.com.key;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- if ($scheme = http) {
- return 301 https://$server_name$request_uri;
- }
- location /blog/ {
- try_files $uri $uri/ /blog/index.php?q=$uri&$args;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location / {
- proxy_pass $server_name:8001;
- proxy_set_header X-Forwarded-Host $server_name;
- proxy_set_header X-Real-IP $remote_addr;
- add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
- uwsgi_pass production;
- include uwsgi_params;
- }
- # location / {
- # uwsgi_pass production;
- # include uwsgi_params;
- # }
- location /site_media/ {
- autoindex off;
- alias /home/app/websites/production.babeeplay.com/site_media/;
- }
- }
- server {
- server_name beta.playfulbee.com;
- rewrite ^ http://www.playfulbee.com$request_uri? permanent;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement