the .conf file in conf.d dir approach is good only when it doesn’t have any (possible) value that can change in a server reconfiguration (IP, name, $whatever)
template is there just to have a “config and forget” approach, without dealing with future conf changes that could break your services…
let’s say I have 20 webapps running, with 20 conf files: changing (for example) my IP (I repeat, this is an example) will need 20 checks, with template approach, 0…
it has been so for almost 20 years and it just works
I agree dynamic templates are useful, but @nas example does not have any dynamic part. This is a typical real world case, where the only “parameter” is the virtual host name. I still think a template is not useful for one Apache virtualhost.
As for dynamic template we need to add option to the owncloud and roundcube. And all ssl path so it is rather complicated. We have installed SIWAPP so vitrualhost is much differ than owncloud one.I wrote only way to make your own virtualhost, because i’v spent some time for investigation.
I would be interested by a list of all features needed here and provided by zentyal…apache is my hobby.
For example i looked today to provide the webdav support…none line of code is written but i did some searchs on the topic. i feel that i don’t need to patch a core rpm.
But for the virtualhosts its needed to do it…so before to waste time to code…a pre agreement is wanted
(It’s useful when you have only one Public IP on RED and you have at least 2 servers on ORANGE that use in the same time http or https (E-mail Server with Webmail and Web Hosting, …). It’s nice to do this from UI). - From here: My wishes list (or Letter to Santa) - #14 by GG_jr
Merry Christmas to all!
alefattorini
(Alessio Fattorini)
Split this topic
13
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 360 of /etc/httpd/conf/httpd.conf:
order takes one argument, ‘allow,deny’, ‘deny,allow’, or ‘mutual-failure’
My Host:
> <VirtualHost *:80>
> ServerAdmin hostmaster@xxxxxxxxxx.de
> ServerName www.xxxxxxxxxx.de
> DocumentRoot /home/nicky/pki2017/web
> <Directory /home/nicky/pki2017/web>
> #Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny **<------ Error in this Line**
> allow from all
> </Directory>
> ErrorLog /home/nicky/pki2017/web/xxxxxx.de-error.log
> LogLevel warn
> </VirtualHost>
After change Line 12 to Order allow
Starting httpd: Syntax error on line 12 of /etc/httpd/conf.d/webhost_xxxxxx.conf: unknown order
I need the host only to distribute files (Certificates etc…)
Please help me.
Then what is the next step?
Even this topic was discussed long time ago, for a long time of searching I still can’t find step from beginning to the end. I mean, how to setup web and how to surf it from other computer/device in same LAN. Not a webmin/Server Manager to control NethServer but a hosting/live website to public/LAN.
Hope you can guide step by step from start to successful end or just list a link that known was working. Such as how to setup virtual host and web in NethServer and how to surf from other computer in same LAN (just). For a time being NethServer version is up to v7.9.2009 where interface have a lot of changed and upgraded.
Hope I get it in detail and test it on my laptop before set to actual live sever.