Bitcoin Forum
May 03, 2024, 02:29:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Setting up a pool, need help [Linux] (PAID WORK)  (Read 221 times)
pnbamania (OP)
Full Member
***
Offline Offline

Activity: 267
Merit: 100


View Profile
October 01, 2017, 06:07:41 PM
Last edit: October 01, 2017, 11:52:46 PM by pnbamania
 #1

Why does this Nginx config result in “rewrite or internal redirection cycle”
I cannot figure out why this error is happening: "rewrite or internal redirection cycle while internally redirecting to "/index.html"" in nginx.conf

Code:
user www-data; worker_processes auto; pid /run/nginx.pid; 

events { worker_connections 768; # multi_accept on; }

 http {

 sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off;

 # server_names_hash_bucket_size 64; # server_name_in_redirect off;

 include /etc/nginx/mime.types; default_type application/octet-stream;

 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE #ssl_prefer_server_ciphers on;

 access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;

 gzip on; gzip_disable "msie6";

 upstream api { server 127.0.0.1:8080; }

 server { listen 0.0.0.0:80; root /open-ethereum-pool/www/dist; index index.html index.htm;

 server_name localhost;

 location /api { proxy_pass http://api; }

 location / { try_files $uri $uri/ /index.html; }

 }

}

Website shows: 500 Internal Server Error

nginx/1.10.3 (Ubuntu)

▌▌   Anonymous and Untraceable     ›› ››   DeepOnion  ‹‹ ‹‹     TOR INTEGRATED & SECURED    ▌▌
▬▬▬▬▬▬▬▬▬     ANN  Whitepaper  FACEBOOK  Twitter  Youtube  Forum     ▬▬▬▬▬▬▬▬▬
▌▌   ••  JOIN AIRDROP 🚀  ••  |||   Download DeepOnion   |||   ✅ Verified with DeepVault    ▌▌
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714746549
Hero Member
*
Offline Offline

Posts: 1714746549

View Profile Personal Message (Offline)

Ignore
1714746549
Reply with quote  #2

1714746549
Report to moderator
1714746549
Hero Member
*
Offline Offline

Posts: 1714746549

View Profile Personal Message (Offline)

Ignore
1714746549
Reply with quote  #2

1714746549
Report to moderator
1714746549
Hero Member
*
Offline Offline

Posts: 1714746549

View Profile Personal Message (Offline)

Ignore
1714746549
Reply with quote  #2

1714746549
Report to moderator
Casy
Member
**
Offline Offline

Activity: 149
Merit: 22

🔴🔵 FoxMixer.com 🔵🔴


View Profile WWW
October 01, 2017, 06:57:30 PM
 #2

Just a guess of some possibilities:

Your index file is not at the root path.
Nginx doesn't have sufficient rights to access the file.
The index file itself contains any kind of redirects.

pnbamania (OP)
Full Member
***
Offline Offline

Activity: 267
Merit: 100


View Profile
October 01, 2017, 07:14:20 PM
 #3

Just a guess of some possibilities:

Your index file is not at the root path.
Nginx doesn't have sufficient rights to access the file.
The index file itself contains any kind of redirects.

it was Nginx doesn't have sufficient rights to access the file, I fixed that now I am still having issues with

"Stats API Temporarily Down
Usually it's just a temporal issue and mining is not affected."

If anyone knows please help.

▌▌   Anonymous and Untraceable     ›› ››   DeepOnion  ‹‹ ‹‹     TOR INTEGRATED & SECURED    ▌▌
▬▬▬▬▬▬▬▬▬     ANN  Whitepaper  FACEBOOK  Twitter  Youtube  Forum     ▬▬▬▬▬▬▬▬▬
▌▌   ••  JOIN AIRDROP 🚀  ••  |||   Download DeepOnion   |||   ✅ Verified with DeepVault    ▌▌
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!