Results 1 to 3 of 3
  1. #1

    Wordpress page with redirect loop error

    Hello Experts,

    I installed NGINX and Apache in my Ubuntu Server which Nginx is front end proxy. After that, I install Wordpress on the server block with domain name But can not reach the index page as it appeared redirect loop notification on the browser. In other hand, I create a info.php file put at the root folder this server block and other manual created html files still read as normal and also can log in to admin page and go through all the function tabs of admin dashboard.

    Followings are my configuration file:

    1.File: /etc/nginx/sites-available/
    server {
    listen 80;

    root /var/www/;
    index index.php index.html index.htm;


    location / {
    try_files $uri $uri/ /index.php;
    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /var/www/;
    location ~ \.php$ {

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $host;

    location ~ /\.ht {
    deny all;

    2.File /etc/nginx/nginx.conf:
    user www-data; #change to the same user apache runs as
    worker_processes 1; #change to the number of your CPUs/Cores
    worker_rlimit_nofile 8192;

    error_log /var/log/nginx/error.log;
    pid /var/run/;

    events {
    worker_connections 1024;
    use epoll;
    accept_mutex off;

    http {
    server_names_hash_bucket_size 64;
    types_hash_max_size 2048;
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    access_log /var/log/nginx/access.log;
    sendfile on;
    tcp_nopush on;
    keepalive_timeout 65;

    # reverse proxy options
    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;

    # gzip compression options
    gzip on;
    gzip_http_version 1.0;
    gzip_comp_level 6;
    gzip_min_length 0;
    gzip_buffers 16 8k;
    gzip_proxied any;
    gzip_types text/plain text/css text/xml text/javascript application/xml application/xml+rss application/javascript application/json;
    gzip_disable "MSIE [1-6]\.";
    gzip_vary on;

    # include virtual hosts configuration
    include /etc/nginx/virtual.d/*.conf;
    include /etc/nginx/sites-enabled/*;

    3.file /etc/apache2/ports.conf

    4.File /etc/apache2/sites-available/

    ServerAdmin [email protected]
    DocumentRoot /var/www/
    <Directory />
    Options FollowSymLinks
    AllowOverride All
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/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/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from ::1/128


    Could anyone please help me on this issue.

    Thanks and regards,

  2. #2
    Join Date
    May 2013
    what is the content of .htaccess in docroot of your domain? If wp-admin and phpindo is working, php configuration should be fine.

  3. #3
    I also concerned about .htaccess file so I deleted it but the problem still remain the same.

Similar Threads

  1. Help! Website redirect loop error
    By andyglasgow88 in forum Web Hosting
    Replies: 40
    Last Post: 04-03-2013, 04:50 PM
  2. My website has a redirect loop error.
    By andyglasgow88 in forum Managed Hosting and Services
    Replies: 8
    Last Post: 04-03-2013, 01:24 PM
  3. Replies: 5
    Last Post: 10-09-2011, 10:06 AM
  4. 404 error page redirect?
    By I, Brian in forum Web Design and Content
    Replies: 4
    Last Post: 06-22-2005, 03:25 PM
  5. New guy question about error page redirect
    By lexington in forum Programming Discussion
    Replies: 10
    Last Post: 12-16-2004, 10:00 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts