FS#4064 - Apache new configuration proposal

Attached to Project: Arch Linux
Opened by Lorenzo Villani (TheArbiter) - Sunday, 26 February 2006, 16:59 GMT
Last edited by Alexander Baldeck (kth5) - Tuesday, 17 April 2007, 17:10 GMT
Task Type Feature Request
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I suggest to change the default apache2 configuration files layout to the new shiny gentoo-based conf style.

Gentoo-based confs are modular and easy to edit and maitain.
I've made several modifications to the original Gentoo-confs and i've created an updated /etc/rc.d/httpd initscript.
With these config files httpd can also be controlled from /etc/conf.d/httpd file for startup options and more.

Attached to this bugreport you can find my configuration files.
This is only a proposal but I would feel happy if used. ;-)
This task depends upon

Closed by  Alexander Baldeck (kth5)
Tuesday, 17 April 2007, 17:10 GMT
Reason for closing:  Won't implement
Comment by Alexander Baldeck (kth5) - Sunday, 26 February 2006, 18:06 GMT
i do see a point behind using subfolders for virtual hosts but not for apache_modules as apache needs to be restarted anyway when the list of modules changes.

in any case, the vhosts.d is still a bit inconsequent. it should rather be sites-available which then get symlinked to sites-enabled. just not naming a file .conf to disable it, can get to be quite a hassle.
Comment by Lorenzo Villani (TheArbiter) - Sunday, 26 February 2006, 18:15 GMT
uhm... like debian?
Comment by Alexander Baldeck (kth5) - Sunday, 26 February 2006, 18:44 GMT
nope, like i do on my arch box. maybe debian does it in a similar way, i wouldn't know. :)
Comment by Lorenzo Villani (TheArbiter) - Monday, 27 February 2006, 14:44 GMT
heh, anyway i found this method consistent and highly useable since all vhosts and modules are enabled/disabled using IfDefine directive and -D(efine) command line parameter passed to apachectl (via /etc/conf.d/httpd in HTTPD_OPTS).
For example you can enable the PHP5 module by simply adding -D PHP5 to HTTPD_OPTS or -D MY_VHOST to enable your VHOST.

I repeat this is only a proposal of porting gentoo-syle config to arch.
I think that this method is even better than the actual one ;-)

(PS: Sorry for my bad english ^^')
Comment by Alexander Baldeck (kth5) - Monday, 27 February 2006, 15:19 GMT
i understand now how your suggestion is supposed to work and must admit it would be a nice default. nevertheless this can be easily implemented by hand if someone reallsy wants this complication. yes, complication when there is only one host like for 127.0.0.1 only which i think is the average in the arch community.

oh well, assigned the request to the maintainer. let's see how Judd decides. :-)
Comment by Roman Kyrylych (Romashka) - Monday, 27 February 2006, 16:30 GMT
IMHO the DEFAULT Apache config should stay as it is now.
If someone wants to implement it Gentoo-like way - he can do this, but default should remain as they are now. There are few ways to deal with vhosts and other config settings, and each has it's own advantages and disadvantages. So let's not make things complicated by default. IMHO defaults should be simple.
Comment by Lorenzo Villani (TheArbiter) - Monday, 27 February 2006, 17:00 GMT
Umh.... what about to create a new package (maybe called apache-gentoobased-conf) then? :)
Comment by Alexander Baldeck (kth5) - Monday, 27 February 2006, 17:04 GMT
@Lorenzo
god save the queen! :D

as JGC and i more or less explained already, this kind of config can easily be created by hand without having pacman break things on upgrades. i do not believe there's a need for another package for apache just for the sake of a different configuration style nor a apache-config-* like thing.

i am waiting for Judd's decision about this.

Comment by Lorenzo Villani (TheArbiter) - Monday, 27 February 2006, 17:14 GMT
ghghgh ok, i'll stop to impose my decisions ;-)

Loading...