Hi, I have a server with 2 interfaces, one for lan, one for wan. In ispconfig I have wan address as main ip, and lan address within ip list. I configure sites with the wan address. I have some site that should be available form wan and lan. Ispconfig writes the apache conf for virtual host using IP : port, I need something like * : port Any hints? Thanks
This is currently not possible in ISPConfig. Maybe you can add these vhosts manually. In ISPConfig 3, vhosts with "*" are implemented already, but it is currently in alpha state.
I tried to add * in IP List and then in site config, it accept the setup but doesn't work, I should investigate. Please may you tell how to add manually? thanks.
You can add any vhost definitions manually at the end of the apache2.conf file, ISPConfig will not overwrite them there.
I was also thinking that a workaround could be to have dns to reply with lan ip for that web site instead of the wan ip. Because the server act also as dns server for that ip, bind could be instructed to reply different way for queries from localhost... but it seems hard to mantain that.
Thanks falko, the link is very good and is what I was talking about. Do you have any hint on how to have a "view" for all isp config sites that uses the internal ip? The problem is that ispconfig manages the dns too so manually edit named.conf is equivalent to manually edit apache.conf and I'm looking a way to hack the "*" virtual host problem Thanks guys
I'm trying to edit named.conf to include "views" for internal domains. Accordind to the howto you have linked it is nice to write those thinks within the file named.conf.local but I noticed that named.conf does not include named.conf.local. May you tell me where to include that file?
Falko, thanks anyway for the reply, I know HOW to include the file, I was asking WHERE to include the file. Bottom of named.conf should be ok.