[16:11] <lotuspsychje> TJ-: lordievader knows a few things about libvirt
[16:12] <lotuspsychje> maybe link him the bug?
[19:02] <cet77> Hi. Long time since i've been on IRC. But i seem to remember that people were helpful here.. :) I have a question about apache2 on an ubuntu setup.
[19:03] <cet77> I have a wordpress site set up on an apache server, and it works from the local machine, but i would love to have it work from other machines on my local network too. But it seems to not being able to connect.
[19:03] <cet77> Does anyone have experience in that area? :)
[19:04] <cet77> I tried setting up a virtual host, but i failed, and ended up not being able to connect from my local machine again.. I managed to revert to the point where i can see the site on the local machine, but can't figure out how to get other computers to connect.
[19:12] <coke> its probably Wordpress that does a redirect 
[19:13] <coke> probably want to use curl -I http://... to see what is going on 
[19:17] <cet77> okay, i'll have a look just curl -I and then the adress i use? can i use the ip?
[19:18] <cet77> can i just paste the output here? It's just 7 lines
[19:19] <cet77> what am i looking for btw?
[19:19] <cet77> uh. I'll have to go.. I'll be back tomorro
[19:19] <cet77> w
[19:23] <coke> always use pastebin 
[19:23] <coke> you are looking for 302 or 200 http code 
[19:54] <cet77> @coke It shows a http/1.1 200 OK message
[19:55] <coke> And without -l you see the raw version of the WordPress page?
[19:56] <cet77> yeah, it seems like it.
[19:56] <cet77> a lot of html and css code
[19:57] <cet77> i'll be back in 5 mins... just need to restart my computer.
[20:01] <cet77> @coke, back again.
[20:02] <coke> What does the curl show on the other machine you try to connect from?
[20:03] <cet77> mm... it's a windows 10 machine... i don't know.
[20:03] <cet77> maybe i can try with termux on my android phone..
[20:03] <coke> Did you use the ip or a name?
[20:04] <coke> What happens if try to open the page on windows? Can’t connect at all?
[20:05] <cet77> I used the name on my server, but the ip on the android, and it gives me HTTP/1.1 301 Moved Permanently
[20:05] <cet77> i don't have access to the windows computer right now as they've gone to bed.. xD
[20:05] <cet77> I'm just trying to make a last effort before i go too.. :)
[20:06] <cet77> when I use the name on my android it tells me that it failed to connect to localhost port 80, connection refused.
[20:07] <coke> LAN names are a mess
[20:07] <cet77> but it can se it when i use the ip, says it's apache/2.4.46 on an ubun tu, and that there is an x-redirect-by: wordpress.
[20:07] <coke> Between operating systems
[20:07] <cet77> yup, i believe'ya..
[20:07] <cet77> xD
[20:08] <coke> Yea WordPress redirects to the name and the other machines don’t know the name.. something like that
[20:08] <cet77> but when I used the ip curl on termux definitely sees something. it also gives the location which is http://localhost/
[20:08] <coke> Local host is always the name of your local Maschine
[20:09] <cet77> okay. But when i curl'ed with the ip, at least that's what it told me.
[20:10] <cet77> What's that X-Redirect-By: wordpress doing?
[20:13] <coke> Telling your browser to look elsewhere
[20:13] <coke> You can try to change the name of your WordPress to the ip but I think WordPress support is off topic here
[20:15] <coke> WordPress wants to point your browser to the name it knows itself as. if you search for under another name (but the right ip and port) it tries to correct that
[20:19] <cet77> ah... hmm. okay... 
[20:19] <cet77> I'll try that..
[20:24] <coke> WordPress is usually overkill and people don’t realize they now have to take care of software running on the net for ever. I recommend static site generators for small sites that only one person takes care of.
[20:25] <cet77> mm... might be, but we have 4 servers running on wp at the moment... It's just that i wanted a local server that we could experiment with. We are two people working on keeping them up.
[20:26] <cet77> I tried changing the name to the ip address like this https://192.168.0.122
[20:26] <cet77> but it didn't do anything i'm afraid..
[20:27] <jrwren> well certainly that https isn't going to work unless you've setup certificates.
[20:27] <cet77> doesn't work with http either... just tried.. xD
[20:28] <cet77> yeah, i figured that out too... :) have no certificates.. that's much is for sure..
[20:31] <cet77> argh... i seem to have changed the dang servername to something that did not work at all... xD now i can't get back in again.
[20:32] <cet77> is there a config file somewhere?
[20:40] <coke> https://wordpress.org/support/article/editing-wp-config-php/#wp_siteurl
[20:40] <cet77> thx. :)
[20:40] <coke> But if it’s empty it’s probably better to start fresh
[20:49] <cet77> wel..... it's not empty, but i messed everything up good... so i'm probably gonne start over again.. :) Thanks for the help, i'm off to bed.