PDA

View Full Version : Static IPs and IP based sites


ajw_doc
17th June 2008, 13:49
Hi,

I see ispconfig kinda supports static ips but was wondering if there was something I can change to let it do it properly.

I can manually edit /etc/httpd/conf/vshost/Vshosts_ispconfig.conf and edit the file:

How it is setup


NameVirtualHost 12.345.678.90:80
<VirtualHost 12.345.678.90:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>


my change


NameVirtualHost 12.345.678.90:80
<VirtualHost 12.345.678.90:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /path/to/domainwanted
</VirtualHost>


No this obviously gets overwritten when any dns changed are made in the admin panel.

It seems a little odd that you can add multiple ips, set a site to one ip but not allow it to have proper IP based support. There must be a way to edit the file that makes the change to Vshosts ? Maybe not.

If not is there going to be support for it?

Thanks,

doc

till
17th June 2008, 19:24
ISPConfig does not support IP based virtual hosts.

ajw_doc
17th June 2008, 20:22
Wow that's a helpful reply.

I'm aware it doesn't support it fully at the moment. It does to an extent otherwise it wouldn't be able to support SSL certs.

My question was is there a way to hack around in the file that submits that change? Can someone tell me which file it is.

till
18th June 2008, 10:48
It does to an extent otherwise it wouldn't be able to support SSL certs.

Not really. The SSL sites are also just name based vhosts. The only difference is that apache acts like a IP based vhost for ssl sites when there is no default vhost for this IP.

Can someone tell me which file it is.

/root/ispconfig/scripts/lib/config.lib.php