zeromusta
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: website.com/blog redirects to 127.0.0.1/blogI’m just going to keep padding this out until someone knows what I’m talking about.
I commented out the ServerName variable in http2.conf in hope of finding the proper way of fixing this.
I have discovered that it points to your hostname… kinda. I’m not even sure what I’m talking about. I managed to change my linux hostname to: (cat /etc/hosts) (i’m using dhcp, but the router always gives this computer the same ip, and the 80 port is forwarded to it)
127.0.0.1 neon.mysite.com localhost.localdomain localhost neon
which should set up my hostname properly according to a few sites I have found. (I just chose neon as a name for my computer)
When I now run these commands, I get these results:
uname -n = neon.mysite.com
hostname -a = localhost.localdomain localhost neon
hostname -s = neon
hostname -d = mysite.com
hostname -f = neon.mysite.com
hostname = neon.mysite.comBut, when I goto https://mysite.com/blog, it redirects me to https://neon.mysite.com/blog, which it can not find.
Any ideas? Thanks.
Forum: Fixing WordPress
In reply to: website.com/blog redirects to 127.0.0.1/blogAnswering my own questions here. I have discovered that for some reason it is throwing me back to whatever my httpd2.conf “ServerName” variable is. It was originally commented out, and was set to “localhost”. When I uncommented it, and changed it to “website.com” it now redirects anything (192.168.0.52/blog) to website.com/blog instead of 127.0.0.1/blog.
This still doesn’t sound right to me, but it works at least. If someone knows what the problem is could they still reply and help out. Thanks.
Forum: Fixing WordPress
In reply to: from inside (localhost) and outside.Having the same problem… I think.