Any apache gurus on the list,
I've been doing some site development, and rather than have to tweak all the addresses, I added 127.0.0.2 sitename to the /etc/hosts file and defined 127.0.0.2 as a virtual host. I don't know why, but I feel that's a bad thing to do: is it?
MJR
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Looks fine, if a little devious. 127.0.0.2 is a perfectly valid LB address, so I can't see why you shouldn't. Only slightly odd thing is that in theory you should probably ifconfig up an lo:0 alias for 0.0.2, but it seems to work without.
Paul
On Mon, Feb 21, 2000 at 03:55:29PM +0000, MJ Ray wrote:
Any apache gurus on the list,
I've been doing some site development, and rather than have to tweak all the addresses, I added 127.0.0.2 sitename to the /etc/hosts file and defined 127.0.0.2 as a virtual host. I don't know why, but I feel that's a bad thing to do: is it?
MJR
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
MJ Ray wrote:
Any apache gurus on the list,
I've been doing some site development, and rather than have to tweak all the addresses, I added 127.0.0.2 sitename to the /etc/hosts file and defined 127.0.0.2 as a virtual host. I don't know why, but I feel that's a bad thing to do: is it?O
On the contrary, it is the reccommended way of doing various loopback thingies when you want to keep life simple.
However, to get an apache virtual server you do not actually need distinct addresses. You can have as many names as you like on the one address (just don't use 127.0.0.1) and put the new names both in the VirtualServer and the ServerName lines.
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
S'funny, but I've been doing the same thing for a while..
I have about half a dozen loopback interfaces setup so I can continue working on PHP web sites, etc whilst travelling.
Useful also for holding a functional mirror of the php.net web site.
Gareth
MJ Ray wrote:
Any apache gurus on the list,
I've been doing some site development, and rather than have to tweak all the addresses, I added 127.0.0.2 sitename to the /etc/hosts file and defined 127.0.0.2 as a virtual host. I don't know why, but I feel that's a bad thing to do: is it?
MJR
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]