Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Several Linux/Apache/Linksys questions

Status
Not open for further replies.

Newposter

Technical User
May 9, 2002
735
US
Just set up my first linux server with GUI, and I have several questions:

1) How do you tell how much hard drive space is left? All I can get for info is # of files and size taken. Need to know how much space left in each partition.

2) I am still trying to configure and transfer web sites from Windoze to linux. Not sure I'm setting everything up correctly. Looks like users' web directories are supposed to go under /var/ Is that mandatory, or can they go under /home/user/?

3) Is it possible to run 2 servers from one router? I currently forward port 80 from router to port 80 of Windows server. Can I set 80 to 80 forwarding to both machines, or must I use port 81 or another port for the 2nd server? If so, should I set Apache on the 2nd server to listen to port 81?

Last night I tried to view a web site that I transferred to linux, and first could not view it until I put site under var/ now I get a "connection refused" error trying to view the site through its own server's browser. Maybe the firewall permissions are set too strict? Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
1. "man df"
2. Apache sites can be based nearly anywhere on the filesystem. Take a look on the Apache online documentation ( for the DocumentRoot directive.
3. You can only forward a port in one direction. The router would have no idea how to differentiate for which server the packets are intended.

implied 4. "Connection refused" means that nothing responded on the IP address and port in question. Likely causes: pointing your browser to the wrong IP or port; or Apache's not being running at the time. Want the best answers? Ask the best questions: TANSTAAFL!
 
Also

3½. Apache can be running multiple 'virtual servers' at the same time and on the same port. Look at the apach docs for Virtual Server.
 
You need a box running Pirana or something similar. This intermediary box will be a load sharing system that will share port 80 requests among more than a single server.

Larger operations use RedHat Advanced Server for this task as it comes with load sharing tools.

Charles
 
Thanks. The other thing that I notice was that when I tried to "Add an Additional Computer" to my network router, the connection failed and it told me to reset the router to defaults (which of course means losing all my existing settings). This happened when I added my notebook, but I don't want to do this every time I add a PC. The linux box can browse the internet, activity shows on the router and I can ping it, so I do have a good network connection. Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
check Linksys support for firmware upgrade. I had repeated problems with Linksys and switched to Netgear. I am happier with them.
 
The Linksys router finally recognized the linux box when I booted up tonight.

Wouldn't it work to forward requests for http, FTP and mail to alternate ports, as long as those ports are defined on the server and are unused by other applications? Then it should be possible to run both a Windows and a linux server on the same router. Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Yes, different apps running on different ports can be forwarded to different servers.
 
The issue is not the ports, but how to split a particular protocol. For example, how do you tell you router you want some http traffic to go to port 80 and some to go to 8080? You could however, use one as a secure server. You could send https and ssh and so on to the secure server and the rest to the other server.
 
RhythmAce, couldn't I change my DNS records at my register to forward a domain to domain:8080, so that the request would hit my router as one for 8080, then the router would forward 8080 to the appropriate server? Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top