Welcome! Log In Create A New Profile

Advanced

Re: Domains not working as expected with nginx

Ian Hobson
July 09, 2022 06:24AM
Hi Jason,

This sounds to me like a wordpress problem.

Within the wordpress database, you will find a ???-options table, where
??? is a prefix for the site.

The first two entries in that table are the "siteurl" and "home" urls.
If these are wrong, you will find your website redirects as you observed.

Just edit the option_value field with phpMyAdmin or similar.

Regards

Ian

On 09/07/2022 00:14, Jason Crews wrote:
> I'm not sure what I've got misconfigured here, I would appreciate
> anyone who could point me in the right direction.
> Site structure:
>
> maindomain.com -> mediawiki -> works
> sub.maindomain.com -> basic php website -> works
> secondarydomain.com -> wordpress -> goes to sub.maindomain.com
>
> I've posted all of the config files on reddit:
> https://www.reddit.com/r/nginx/comments/vtuha9/domains_not_going_where_expected/
>
> Not sure what's going one, any help would be appreciated.
>
> Jason Crews
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org

--
Ian Hobson
Tel (+66) 626 544 695
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Domains not working as expected with nginx

the1gofer July 08, 2022 01:16PM

Re: Domains not working as expected with nginx

Francis Daly July 08, 2022 02:08PM

Re: Domains not working as expected with nginx

the1gofer July 08, 2022 03:56PM

Re: Domains not working as expected with nginx

Francis Daly July 08, 2022 07:52PM

Re: Domains not working as expected with nginx

Ian Hobson July 09, 2022 06:24AM

Re: Domains not working as expected with nginx

the1gofer July 11, 2022 10:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready