LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2005, 10:55 PM   #1
Amd619
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
Unhappy Setting up a Webserver using linux redhat 8.0


Hi..i want to use linux redhat 8.0 to act as a webserver to host a free intranet applicaton .The Apache Web Server have being installed and working fine.

I have a win xp system currently..Both the linux n win xp system is connected to a linksys router.What must i do so that the win xp system can view the application at the linux system using a normal web browser wihin the local area network?
 
Old 03-08-2005, 01:18 AM   #2
SubCreations
LQ Newbie
 
Registered: Dec 2004
Location: Palm City, FL. USA
Distribution: Red Hat, Fedora 2
Posts: 3

Rep: Reputation: 0
Smile

This might help...

If you log in as root on you Linux box and type ifconfig, you should get something similar to :

eth0 Link encap:Ethernet HWaddr 00:07:E9:09:C6:4F
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107644 errors:0 dropped:0 overruns:0 frame:0
TX packets:60608 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:87898221 (83.8 Mb) TX bytes:7546980 (7.1 Mb)
Interrupt:11 Base address:0xa800 Memory:f7c00000-f7c20000

In my case, it means that my IP address is 192.168.0.101.

If you put an index.html in the /var/www/html on your Linux Box, then typing the following on your Windows box:

192.168.0.101 should load the home page from your Linux box into the browser in Windows.

Likewise, 192.168.0.101/myfile.html will display whatever you have in /var/www/html/myfile.html.

And you can create additional directories:

192.168.0.101/my_directory/myfile.html would load /var/www/html/my_directory/myfile.html

There is probably some way to tell your Windows box that your Linux Box has a name so you wouldn't need to keep typing the numbers, but I don't know how. Maybe someone else can let us all know.

I encourage you to learn about how you can put Perl scripts in the cgi-bin directory and perhaps serve database applications using MySQL. The Sams Perl book is good for beginners also MySQL and Perl for the Web, CGI.pm and the Perl Cookbook will blow you away with the stuff you can do.

Generating Web Pages dynamically is too cool to overlook!

You can also install Apache, Perl and MySQL on your Windows Box very easily.

Good Luck
 
Old 03-08-2005, 08:59 AM   #3
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
If you have a static ip on the Linux box, the easiest way I know is to edit: C:\WINDOWS\system32\drivers\etc\hosts

Code:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
192.168.0.101 MyLinuxBox
Now on your Windows system you would just have to type:
http://MyLinuxBox
And the site would pull up.
 
Old 03-11-2005, 10:08 PM   #4
RanDrake10
Member
 
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
While your playing around with your hosts file try this site http://www.mvps.org/winhelp2002/hosts.htm
This will make surfing the net a lot more enjoyable, this file works for win and linux. Just copy info from current hosts file to top of new file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up secure apache2 webserver https access on suse linux 9.2 svanati SUSE / openSUSE 4 12-21-2004 08:07 PM
Setting up a webserver with Mandrake Linux 10.1 MercuryRaz0r Linux - Networking 18 10-26-2004 02:19 AM
Setting up remote Linux webserver Ben Sytko Linux - Newbie 6 02-19-2004 02:21 PM
Help > Setting Up RedHat 8.0 Box As Webserver JaYcEeXP Linux - Software 4 06-28-2003 10:59 AM
Help > Setting Up RedHat 8.0 Box As Webserver JaYcEeXP Linux - Newbie 1 03-13-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration