PDA

View Full Version : ServerAlias


Alex1
26th May 2007, 21:43
hello, i need to know how setup a website able to be viewed both using http://www.domain.tld and http://1.2.3.4 where 1.2.3.4 is a dedicated ip for the domain.

till
27th May 2007, 10:47
ISPConfig has only namebased vhosts, not IP based.

Alex1
27th May 2007, 10:52
but why setting up ip as co-domain it doesn't work?

i.e.
domain ip is 1.2.3.4 in ispconfig
i want to setup 1.2.3.5 as dedicated ip so i put a co-domain 1.2.3.5 (1.2.3.5 is not used by ispconfig)
now ispconfig set
ServerAlias 1.2.3.5 into its apache configuration for the vhost, why it doesn't work?

till
27th May 2007, 10:56
Server aliases aare always domain names. ISPConfif does not support IP based vhosts! The only way you might try is to use some kind of redirect in the shared IP website to redirect requests to the correct hostname if someone used the IP accidently.