Add localhost IP to vhost

jocker

Verified User
Joined
Oct 1, 2007
Messages
56
When we need to use a reverse proxy, the vhost should be listening on 127.0.0.1

Do you think default virtual_hosts2.conf could be configured this way by default instead of overriding them ?

<VirtualHost 127.0.0.1:|PORT_80| |IP|:|PORT_80| |MULTI_IP|>

Thanks
 
Of course I already use custom templates but templates are often updated and you don't get the last changes if you have already define a custom. That's why it's always better to use a default template.

This simply add : 127.0.0.1:|PORT_80| breaks nothing on a default template and can be useful for others. It makes this template more generic

That's why I guess it could be added by default. It's just a suggestion ;)
 
If you don't like to use custom templates, I guess you can go another way and leave the IP of virtual hosts in Apache unchanged, instead make Apache to listen to another port, something like 88, and then block connections to it from Internet with a firewall.

Port you can change in directadmin.conf, and /etc/httpd/conf/httpd.conf should be updated relatively to this.
 
zEitEr : you're right, there are several solutions and as I said, it already works for me. My feedback was only to make a DA template more generic. Nothing more :)
 
Back
Top