А в конфигах вот такое безобразие:
upstream
gamestockgfx.com{
server unix:/home/deployer/gsg/current/tmp/gamestockgfx.socket fail_timeout=0;
}
server {
listen 80 default;
server_name
gamestockgfx.com;
root /home/deployer/gsg/current/public;
access_log /home/deployer/gsg/current/log/nginx.access.log;
error_log /home/deployer/gsg/current/log/nginx.error.log;
rewrite_log on;
location / {
auth_basic "Restricted";
auth_basic_user_file /home/deployer/gsg/current/public/.htpasswd;
proxy_pass http://**.com;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
# if the request is for a static resource, nginx should serve it directly
# and add a far future expires header to it, making the browser
# cache the resource and navigate faster over the website
location ~ ^/(system|assets|spree)/ {
root /home/deployer/gsg/current/public;
expires max;
break;