Web Server Redirect

Discussion in 'ISPConfig 3 Priority Support' started by conductive, Nov 5, 2018.

  1. conductive

    conductive Member HowtoForge Supporter

    I am on ISPconfig 3.12 running NGINX on Debian9

    Every time I attempt to go to https://mydomain.com I end up at https://mydomain2.com. All other hosted domains respond properly.

    =================================================================

    ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mydomain.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44399
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;mydomain.com. IN A

    ;; ANSWER SECTION:
    mydomain.com. 17 IN A xx.xx.xx.42

    ;; AUTHORITY SECTION:
    mydomain.com. 81563 IN NS dns4.name-services.com.
    mydomain.com. 81563 IN NS dns3.name-services.com.
    mydomain.com. 81563 IN NS dns2.name-services.com.
    mydomain.com. 81563 IN NS dns5.name-services.com.
    mydomain.com. 81563 IN NS dns1.name-services.com.

    ;; ADDITIONAL SECTION:
    dns1.name-services.com. 484 IN A 98.124.243.1

    ;; Query time: 73 msec
    ;; SERVER: 66.51.206.100#53(66.51.206.100)
    ;; WHEN: Mon Nov 5 09:45:09 2018
    ;; MSG SIZE rcvd: 173

    ==================================================================

    ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mydomain2.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48553
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;mydomain2.com. IN A

    ;; ANSWER SECTION:
    mydomain2.com. 1800 IN A xx.xx.xx.43

    ;; AUTHORITY SECTION:
    mydomain2.com. 81733 IN NS dns5.name-services.com.
    mydomain2.com. 81733 IN NS dns3.name-services.com.
    mydomain2.com. 81733 IN NS dns4.name-services.com.
    mydomain2.com. 81733 IN NS dns2.name-services.com.
    mydomain2.com. 81733 IN NS dns1.name-services.com.

    ;; ADDITIONAL SECTION:
    dns1.name-services.com. 219 IN A 98.124.243.1

    ;; Query time: 86 msec
    ;; SERVER: 66.51.206.100#53(66.51.206.100)
    ;; WHEN: Mon Nov 5 09:49:33 2018
    ;; MSG SIZE rcvd: 172

    ========================================================

    What could be redirecting these pages?

    Thanks for your help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you have SSL enabled for the domain and added a valid SSL cert?
     
  3. conductive

    conductive Member HowtoForge Supporter

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    How is that domain configured? is it a separate website in ispconfig, or an alias domain of another domain, did you setup any redirects and is there a cms installed in that site?
     
  5. conductive

    conductive Member HowtoForge Supporter

    It is a standalone server. server1.mydomain.com. mydomain.com is configured the exact same way as mydomain1.com, mydomain2.com, mydomain3.com. All have working LE encryption and the only redirects are the little checkboxs to force https. It seemed to start when messing abound with wordpress but I have deleted both them through apps and have since cleaned out ../web so there is nothing there. The other domains with word press are working fine. It started when I was trying to migrate mydomain.com to mydomain2.com. All other migrations mydomain3, mydomain4, mydomain5, ect all from mydomain.com worked fine.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try another browser? It might be that your browser has cached the old redirect.
     
    conductive likes this.
  7. conductive

    conductive Member HowtoForge Supporter

    You are a genius. I tried a different computer and did not get a redirect. Not sure how but I did get a default wordpress page and there is nothing on the server.
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If wordpress site, have you changed in Wordpress settings the site URL?
     
  9. conductive

    conductive Member HowtoForge Supporter

    Thanks for the reply.
    Maybe/Probably. I was attempting to use backupbuddy and it appears that something got messed up and/or over written when I attempted a migrate from mydomain.com to mydomain2.com. Not sure what messed up and why it is still giving me grief but the backup worked fine on other domains...........mydomain3,..mydomain4...ect. I started over several times and kept getting the same result.
     

Share This Page