Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:24:22+00:00 2026-06-10T22:24:22+00:00

After setting apache2 to listen on port 3000 and server php files(wordpress) hitting blog.mysite.com:3000

  • 0

After setting apache2 to listen on port 3000 and server php files(wordpress) hitting blog.mysite.com:3000 loads my wordpress install no problem. Then I set up nginx listening on port 80 as a proxy to apache. This is working fine, my only issue is that when users hit blog.mysite.com, its get redirected to blog.mysite.com:3000 instead and this is not the desired behavior. Looked online for a few solutions involving adding some php code to my wp-config.php but didnt worked. Any help with this?

EDIT:

server {
        listen       80 default_server;
        server_name  appsrd.devmbs.com;
        root /home/ubuntu/projecs/APPS-RD;
        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   /home/ubuntu/projects/APPS-RD;
            index  index.html index.htm index.php;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ \.php$ {
        proxy_pass   http://127.0.0.1:3000;
        proxy_buffering on;
        proxy_buffers 12 12k;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_redirect  http://appsrd.devmbs.com:3000   http://appsrd.devmbs.com;

        }
}

EDIT:

/wp-admin is being displayed but the root of the site, is ging in a redirected loop.

127.0.0.1 – – [03/Sep/2012:12:29:25 +0000] “GET /index.php HTTP/1.0” 301 529 “http://appsrd.devmbs.com/wp-admin/options-general.php” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1”

This request is getting fired like 12 to 15 times.

EDIT:

Weirdest thing, I deleted the database and went into http://www.mysite.com, and the redirect loop was gone, I got a msg that wordpress couldn’t find a DB which was supposed to happens. Then I created a new database, ran the wordpress install and the same arises. The admin works fine but the site page gets redirect loop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:24:23+00:00Added an answer on June 10, 2026 at 10:24 pm

    Issue was that in the wordpress setting I had wrong Address so it was adding :3000 at the end of the url. Since the title of this question no longer represent my current issue I will close it and create a new question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After upgrading my PHP to 5.4.3 (WAMP server 2.2), my web app made in
After extracting and saving the ant files into an opt/ directory and setting the
After setting db to some arbitrary value, i am not able to perform any
I have a weird problem where after setting nocheck on a foreign constraint and
How to enumerate items of Spark List component after setting dataProvider property? I mean
I am currently building a measurement unit convertion app for Windows Phone. After setting
I recently installed Trac on windows for the first time. After setting everything up
i have problems with a really basic thing. setting properties after instantiation a UIViewController-
I'm having issues properly setting up my Hibernate configuration. After trying to extend the
After setting up Apache virtual hosts with hostnames server1 and server2, how would I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.