nginx - PHP website always redirecting -


मैं Nginx और PHP-FPM के साथ Ubuntu 14.04 चल रहा हूं।

मैं एक vhost (मैंने इसे अपने / etc / nginx / sites- सक्षम / डिफॉल्ट कॉन्फ़िग फ़ाइल में जोड़ लिया है)

  सर्वर {80; शामिल /etc/nginx/cloudflare-allow.conf; सभी से इनकार; Server_name testerij.star-servers.nl; Access_log / dev / null; Error_log / dev / null; स्थान / {root / usr / share / nginx / परीक्षण; सूचकांक index.php index.html index.htm; } स्थान ~ \ .php $ {try_files $ uri = 404; Fastcgi_split_path_info ^ (। + \। Php) (/.+) $; Fastcgi_pass यूनिक्स: /var/run/php5-fpm.sock; Fastcgi_index index.php; Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name; Fastcgi_buffer_size 128k; फास्टकसी_बफर 256 16k; Fastcgi_busy_buffers_size 256k; Fastcgi_temp_file_write_size 256k; शामिल हैं fastcgi_params; }}  

मेरी समस्या यह है कि यह vhost हमेशा दूसरे डोमेन (एक ही सर्वर पर) पर रीडायरेक्ट हो रहा है जब .php फ़ाइलों का उपयोग करते हुए। जब मैं एक .html फ़ाइल (index.html) बना देता हूं, ऐसा नहीं होता है, लेकिन index.php के साथ, ऐसा होता है।

मुझे कोई सुराग नहीं है, क्या आप मेरी सहायता कर सकते हैं?

फ़ाइल cloudflare-allow.conf:

आईपीवी 4

  अनुमति दें 199.27.128.0/21; 173.245.48.0/20 की अनुमति दें; 103.21.244.0/22 ​​को अनुमति दें; 103.22.200.0/22 ​​को अनुमति दें; 103.31.4.0/22 ​​को अनुमति दें; 141.101.64.0/18 को अनुमति दें; 108.162.192.0/18 को अनुमति दें; 190.93.240.0/20 को अनुमति दें; अनुमति 188.114.96.0/20; 197.234.240.0/22 ​​को अनुमति दें; 198.41.128.0/17 को अनुमति दें; अनुमति 162.158.0.0/15; 104.16.0.0/12 को अनुमति दें; # आईपीवी 6 की अनुमति 2400: सीबीडी :: / 32; 2606: 4700 :: / 32 की अनुमति दें; 2803: f800 :: / 32 को अनुमति दें; 2405: बी 500 :: / 32 की अनुमति दें; 2405: 8100 :: / 32 की अनुमति दें; # लोड बैलेंसियर आईपीवी 4 104.155.1.229 को अनुमति दें;  


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -