nginx wordpress trop de redirections

Mon environnement serveur est linux + nginx + apache + mysql. Et il y a un problème après l’installation de wordpress. Je peux accéder au backend, mais le frontend a toujours des erreurs comme ci-dessous:

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects. 

Je me tourne vers Firefox et l’erreur comme ci-dessous:

 301 Moved Permanently 

réponse:

 Reload the page to get source for: http://www.sjdtec.com/ 

J’essaie beaucoup de réécriture d’url dans ma configuration nginx, mais ne fonctionne pas, voici ma config pour nginx et apache:

Nginx

 server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default_server ipv6only=on; ## listen for ipv6 root /var/www/sjdtec; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name www.sjdtec.com; location / { #rewrite ^index\.php$ last; try_files $uri $uri/ /index.php?$args; #if (!-e $request_filename) { # rewrite ^(.+)/$ /index.php?q=$1 last; #} } location /doc/ { alias /usr/share/doc/; autoindex on; allow 127.0.0.1; allow ::1; deny all; } location ~ \.php$ { proxy_pass http://127.0.0.1:8080; } location ~* \.(jpg|jpeg|gif|png|bmp|swf)$ { access_log off; expires 30d; } location ~* \.(js|css)$ { access_log off; expires 1d; } error_page 404 /index.php; location ~ /\.ht { deny all; } 

Apache

  ServerAdmin webmaster@localhost ServerName www.sjdtec.com DocumentRoot /var/www/sjdtec  Options FollowSymLinks AllowOverride None   Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/  AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all  ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/"  Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128  

Êtes-vous sûr que nginx réécrit et non WordPress? Par exemple, si option_name home et / ou siturl est incorrect dans la table de wp_options, vous pouvez également obtenir des redirections.