Join the community today
Become a Member

Xenforo Other sites redirect back to XF site after disk resize

Discussion in 'Forum software usage' started by CarpCharacin, Jun 7, 2017.

  1. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    OK, I did that, and now both domains are just showing the centmin mod test page.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    so you found the specific setting causing it, but need to fix it and set to to domain vhosts and change from using redirect to $server_name to try using your www domain instead of $server_name and ensure dns A record is set for those other domains
     
    • Informative Informative x 1
  3. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    The DNS A records are set. So I should just edit the vhosts to use the domain name instead of $server_name?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup
     
    • Like Like x 1
  5. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    Last edited: Jun 10, 2017
  6. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    So how do I get it to redirect without redirecting the other sites as well?
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    uncomment the previously commented out 302 redirects and see
     
  8. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    Still showing the test page.
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    check dns and curl header for each of your 3 domains
    Code (Text):
    dig +short A www.domain.com
    dig +short A domain.com
    curl -Is www.domain.com
    curl -I www.domain.com
     
  10. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    The DNS A records for all 3 domains point to the IP of the VPS.
    This is the curl header for www.utahfishkeepers.us:
    Code (Text):
    HTTP/1.1 301 Moved Permanently
    Date: Sun, 11 Jun 2017 04:23:46 GMT
    Content-Type: text/html
    Content-Length: 178
    Connection: keep-alive
    Location: https://www.utahfishkeepers.us/
    Server: nginx centminmod
    X-Powered-By: centminmod
    

    This is the curl header for non-www utahfishkeepers.us, it is the same for the other two domains:
    Code (Text):
    HTTP/1.1 302 Moved Temporarily
    Date: Sun, 11 Jun 2017 04:26:46 GMT
    Content-Type: text/html
    Content-Length: 154
    Connection: keep-alive
    Location: https://www.utahfishkeepers.us/
    Server: nginx centminmod
    X-Powered-By: centminmod
    
     
    Last edited: Jun 11, 2017
  11. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    same as in location field points to wrong domain = https://www.utahfishkeepers.us/ ?
     
  12. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    Yes, the location field points to www.utahfishkeepers.us for the other two domains, but the other two sites are working.

    Edit: It looks like the non-www utahfishkeepers.us domain is redirecting to the www domain now.
     
    Last edited: Jun 11, 2017
  13. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    So should I just leave it, since the sites are working, but it is still showing the wrong domain in the curl headers?
     
  14. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    so it's working in browser but curl has incorrect 302 redirect ? that's a strange one indeed!
     
  15. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    Yeah, the other sites are working in the browser, but curl has https://www.utahfishkeepers.us as the 302 redirect.
     
  16. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    strange indeed
     
  17. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    Now they are both redirecting back to utahfishkeepers.us :(
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    dns and/or nginx vhosts don't just redirect themselves automatically

    what changes have you made to your server since ?
     
  19. CarpCharacin

    CarpCharacin Member

    213
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    12:41 PM
    1.13.0
    MariaDB 10
    I updated the centmin mod code, PHP and nginx.
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5