I am trying to set up an Intel NUC with Fedora 34 as my new stable local web development environment.
My environment on mac OS x gets destroyed by system updates, even homebrew currently throws a lot of errors since last system update.
wanted is this:
- NAS with folder "sites" with a lot of web-projects in it, each in its own subfolder (checked, working)
- fedora system with apache, mariadb, php, ... (lamp) (checked, working)
- sites/subfolder should be served by address subfolder.sites.test
- would be nice if this worked from other computers within LAN, too
On my Mac is just needed to put two lines in dnsmasq.conf and resolve.conf to make this magic happen. virtualhost entry with wildcard serves all.
This is the Mac config:
virtualhost-definition in httpd.conf or similiar:
<VirtualHost *:80>
ServerName sites.test
ServerAlias *.test
VirtualDocumentRoot "/Volumes/webroot/sites/%1/web"
UseCanonicalName Off
</VirtualHost>
in /etc/resolver/test:
nameserver 127.0.0.1
in /usr/local/etc/dnsmasq.conf (through homebrew):
address=/.test/127.0.0.1
On Fedora (and other actual distros) there are things like NetworkManager and systemd-resolved which make things much more complicated.
I read a lot of samples all over the Internet and tried them, without luck.
How to configure this with NetworkManager, systemd-resolved, dnsmaq etc. on Fedora?
This article had the closest match, but still it does not work (or I am missing something?) article: enter link description here
How can I make this work?