[luau] Apache question
Instead of fussing around with NIS, I wuz hoping someone knew how to reconfig Apache to read a passwd file not in /etc? Ideally I'd like to rsync over SSH, a passwd file from my NFS box (trying to migrate away from NFS now) so that I can have apache export the /public_html directories for my users. So basically I'm looking for a config item that will tell apache to look in a different location for the passwd file so that it can do a lookup of the user's home directory. So far the apache documentation is less than helpful, or I'm just not searching for the correct criteria. The hassle is that we've got /home broken up into separate partitions (i.e. /home/1 /home/2, etc) Otherwise if everyone was in a single /home directory this would be trivial. /brian chee University of Hawaii ICS Dept Advanced Network Computing Lab 1680 East West Road, POST rm 311 Honolulu, HI 96822 808-956-5797 voice, 877-284-1934 fax
Re: [luau] Apache question
On Thu, Jan 15, 2004 at 11:43:04AM -1000, Brian Chee wrote: Instead of fussing around with NIS, I wuz hoping someone knew how to reconfig Apache to read a passwd file not in /etc? Ideally I'd like to rsync over SSH, a passwd file from my NFS box (trying to migrate away from NFS now) so that I can have apache export the /public_html directories for my users. That does not seem necessary. So basically I'm looking for a config item that will tell apache to look in a different location for the passwd file so that it can do a lookup of the user's home directory. So far the apache documentation is less than helpful, or I'm just not searching for the correct criteria. The hassle is that we've got /home broken up into separate partitions (i.e. /home/1 /home/2, etc) Otherwise if everyone was in a single /home directory this would be trivial. I can think of several kludges, but the easiest approach would probably be overloading your UserDir directive with the paths. -Vince
[luau] Apache question
I am trying to set-up a Linux workstation as a intranet web server on a NT network, but I cannot figure out how to make the web server accessible through a virtual host name. Apache is installed and is accessible by entering in the IP address as the URL, but I would like to make it accessible by typing in a name rather than numbers. How do I go about doing this? Do I need Samba installed for this? TIA, Rodney
Re: [luau] Apache question
Rodney Kanno wrote: I am trying to set-up a Linux workstation as a intranet web server on a NT network, but I cannot figure out how to make the web server accessible through a virtual host name. Actually, for future reference virtual isn't correct in this context. Apache is installed and is accessible by entering in the IP address as the URL, but I would like to make it accessible by typing in a name rather than numbers. Okay, you've got two options. 1) Add an entry to every machine's %SystemRoot%\System32\Drivers\etc\hosts file for your webserver. It has the same format as /etc/hosts on linux boxes. for example: 221.222.223.224 mywebserver You might want to do this if your intranet is small. 2) Run a nameserver that all your clients are configured to use and then just create a zone for your intranet, and query outside nameservers for all other requests (and cache them for performance). You might want to do this if you have a larger intranet. Once you've got it working, then add ServerName mywebserver (or whatever) to your apache configuration file. Do I need Samba installed for this? No. Samba handles matters dealing with Netbios. This is a matter dealing with hostnames. --Ray
Re: [luau] Apache question
- Original Message - From: Ray Strode [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 3:37 PM Subject: Re: [luau] Apache question 1) Add an entry to every machine's %SystemRoot%\System32\Drivers\etc\hosts file for your webserver. It has the same format as /etc/hosts on linux boxes. for example: 221.222.223.224 mywebserver You might want to do this if your intranet is small. Once you've got it working, then add ServerName mywebserver (or whatever) to your apache configuration file. Cool! That was easy...Thanks! Rodney
Re: [luau] Apache question
One more question.the network is behind a router...so will the linux webserver be accessible from outside the network (this is not desireable)? Does the webserver have an outside accessible IP, or does your router NAT a single internet connection? If the latter, then probably not, unless you explicitly configured it otherwise. Best way to find out though, is to just check. The hostname (mywebserver or whatever) will not resolve outside your net for sure. --Ray