/srv/irclogs.ubuntu.com/2020/10/14/#ubuntu-server.txt

=== zerosum3 is now known as zerosum
lordievaderGood morning06:04
=== tds0 is now known as tds
=== vlm_ is now known as vlm
computer2000Hi guys can anyone please advice on my issue here https://stackoverflow.com/questions/64351703/apache-virtual-hosts-on-ubuntu-20-04-vps11:01
coreycbicey: your neutron/nova/ceilometer point releases are now released for stein, train, and ussuri13:11
iceythanks coreycb!13:11
coreycbicey: also, down to 1 tempest failure on groovy-victoria (octavia)13:12
icey\o/13:12
=== tds6 is now known as tds
lordievadercomputer2000: IIRC vhost only work on hostnames/cnames, not on url paths.13:47
tewardcomputer2000: lordievader: VHosts only work at the hostname/cname/Host header level14:20
tewardso if you have six sites (a.com b.com c.com ...) on your system you have six VHost entries one for each hostname you want to match with the proper configuration for server name, and then depending on the Host header received from the browser/client accessing the site, APache'll serve the proper site configuration (VHost)14:21
lordievaderYeah, so what he is proposing won't work with  vhosts14:21
tewardwell... kinda14:33
tewardhe can link a URI to a specific docroot/project but not to a specific VHost14:33
tewardbut most CMSes don't want to behave that way14:33
tewardand want one singular hostname/vhost to a specific CMS14:33
tewardso no, what you're trying to do computer2000 won't work14:33
tewardit needs specific hostname matches in the Host header for that to work.14:34
computer2000teward: i "kind of" got it to work according to https://stackoverflow.com/questions/26706846/apache-virtual-host-without-domain-name14:34
tewardright, but that's not the same as configuring your CMSes to do that proper14:35
tewardbut you can't tie it to the VHost, you can only tie it to the locations underneatn the VHost14:35
tewardto tie each CMS/project to a specific VHost match requires DNS, CNAMEs, and Hostname matches to requests14:35
computer2000teward: so, how do you make multiple cms installs accessible on one server without having subdomains for each?14:41
tewardusually?14:41
tewardyou don't14:41
tewardthis said14:41
tewardyou *can* have subdomains for each and then have manual /etc/hosts entries on your local computer to make 'fake hostnames' for the server to match the Host header against so you can access each CMS14:41
teward... or the painful nasty evil way I do it is individual VHosts on individual ports and then http://ipaddress:port/ with different ports to access each CMS/endpoint14:42
computer2000:/14:43
computer2000thanks14:43
catphishwhat is the format of the cloudimg ".img" file?17:26
rfmcatphish, it's a QCOW2 (at least the focal-server-cloudimg-amd64.img I downloaded is)17:50
catphishrfm: thanks, i was a little confused whether it was diffeent from the disk-kvm.img17:52
=== tds2 is now known as tds
keithzgHmm from what I can tell the default dist-provided /etc/knockd.conf still gives the example command as `/sbin/iptables` in 20.04, but iptables isn't actually there anymore?21:19
sarnoldlrwxrwxrwx 1 root root 26 Jan 24  2020 /sbin/iptables -> /etc/alternatives/iptables21:23
sarnoldlrwxrwxrwx 1 root root 25 Jan 24  2020 /etc/alternatives/iptables -> /usr/sbin/iptables-legacy21:23
sarnoldthat's my focal laptop21:23
keithzgFair enough, sarnold! Looking closer I see my /etc/knockd.conf.dist might be an older lingering config. Obvious and simple fix anyways :)21:26
keithzgOther than that and systemd-resolved coming online and thus completely hosing dnsmasq and thus the entire network until I disabled it, upgrading the office router to 20.04 seems to have gone very smoothly :)21:27
keithzg(I do wonder why I didn't have the equivalent symlink in /sbin, but c'est la vie; I do now, heh)21:30
sdezielkeithzg: the /sbin/ -> /usr/sbin/ symlink is not created during do-release-upgrades21:53
sdezielwhich sucks and caused me a bunch of problems ;)21:53
sarnoldkeithzg: aha; you're back up though, right?22:05
keithzgsarnold: Yup yup, was back up pretty quickly in fact since a quick `lsof` showed who was hogging port 53, and this wasn't the first time I've had systemd-resolved show up uninvited so I wasn't too surprised :P22:47
sarnoldkeithzg: woot22:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!