On Sat, 2023-08-26 at 20:29 +0200, Franta Hanzlík via users wrote:
> I suppose I will create four configuration files for each Virtualhost 
> in the /etc/httpd/conf.d/ directory (eg srv1_intranet.mydom_ssl.conf, 
> srv2_intranet.mydom.conf, srv3_www.mydom_ssl.conf, srv4_www.mydom.conf).
> But how best to proceed?

That's generally how such things are done, one file in conf.d per
thing.

> IMO if I leave zoneminder/mrtg/apcupsd/geoip/roundcubemail as they are,
> in /etc/http/conf.d/, they will apply in all VirtualHost - which I
> don't want.

Are you sure?  You can always do some tests, mock up some examples and
see what happens.  

I've only got Squirrel Mail installed on my LAN as an extra through
Apache, and I can see that any virtual host domain with /webmail
tacked on the end of it goes into the local Squirrel Mail site (the
same one on each virtual host).

It'll depend how they're written.  If they're similarly constructed as
the virtual host configurations, they only apply to themselves.

You could put virtual host parameters into them.  You could shift them
out of conf.d and have a specific virtual host include them into
itself.  You could forbid the path within your virtual hosts.

> And if I put each one in its VirtualHost and delete the original in
> /etc/httpd/conf.d/, it reappears there when its RPM package will be
> updated.

Unfortunately that's down to how those packages are written.  

 * They may realise there's custom config files and leave yours alone
   adding some conf.rpmnew files for you to compare new against old and
   update your own conf files.
 * They may do nothing if there's an existing .conf file.
 * They may move your config files to conf.rpmold and implement their
   new conf files.
 * They may simply bulldoze through existing config files and replace
   them.

If you feel it's going to do something along the lines of the last two
things, you'd want to keep back-up files ready to reimplement after any
updates.

I've generally found that Apache's conf.d/conf files didn't get stomped
on by updates.

-- 
 
uname -rsvp
Linux 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to