Re: Multi-level virtualhost inherit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



            Hi,

Thanks for the tip. It seems to be a better solution for me : In Debian it seems that each virtualhosts are confined on a single file and included with the Include directive (with a path having a wildcard) on the main configuration file.

In my first dedicated server, each virtualhost were directly included in the main configuration files. Do you think that the difference in terms of performances at startup or whatever is important ?

    Thanks.

Le 06/12/2010 09:43, Mark Montague a écrit :
You can also do what you want outside of Apache HTTP Server: write a script that generates httpd.conf from one or more input files, and run this script (manually or automatically) before starting httpd. You can use M4, CPP, Perl, or many other tools to generate the configuration file, depending on your needs. This way you do not need to load any special module; but you should pick a tool that other people will also have who want to use your configuration.

--
  Mark Montague
  mark@xxxxxxxxxxx



On December 6, 2010 3:37 , FROIDURE Nicolas <froidure_nicolas@xxxxxxxx> wrote:
I want to stay on a "universal" Apache config. Now I know it's impossible without enabling a specific module. I'll deal with this restriction anyway.

    Thank you Jorge.

Le 05/12/2010 14:11, Jorge Schrauwen a écrit :
You may want to look at mod_macro, or mod_perl if you want really
complex setups.


~Jorge



On Sun, Dec 5, 2010 at 12:28 PM, Nicolas Froidure
<froidure_nicolas@xxxxxxxx>  wrote:
             Hello!

     Are there a way to make mutlti-level virtualhosts ?

I've many virtualhosts on my httpd.conf file. There are 3 "classes" of virtual hosts (static content, dynamic content with rewrite rules, others).

I would like to be able to define more than one base virtualhost for
reuse them in my other virtualhosts. Is it possible ?

     Thank you.
---
nfroidure


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See<URL:http://httpd.apache.org/userslist.html>  for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



--
Cordialement, Nicolas Froidure, gérant, Elitwork SARL.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux