How to setup a Redhat web server to host my own webpages with a Cisco 877 DSL Router?

Posted on 2008-10-24
Medium Priority
Last Modified: 2013-12-14
I would like to host my own jsp.php pages on my Redhat Linux server.
I recently subscribed a static ip address from my ISP
I have a Cisco 877 Cisco DSL Router.
What do I need to do next? Can any expert help?
Question by:dovob
  • 3
  • 3
LVL 29

Assisted Solution

fosiul01 earned 1200 total points
ID: 22798593
Hi, i never worked with Cisco router,

but Basic is : you need to forward port 80 from router to your webserver.
in router there should be some options to forward port

thats it.
now if you install your redhat as server then it should configured as web server

Now if you can do port forward
then if you need any help to setup apache let me   know, i would be help you.

Accepted Solution

yurisk earned 800 total points
ID: 22800223
In cisco you should do portforwarding of port 80 from outside interface to internal
IP of the server , when you are connected by telnet to the cisco, issue
router#conf t
Router(config)# ip nat inside source static tcp <put here internal IP of server>  80 interface <name of outside interface usu something like Dialer0.Dialer1> 80
Router(config)#  exit
#write memory
This will open access from outside to port 80 of your server using the legal static IP

Author Comment

ID: 22802230

Am I right to assume that after I forward the port 80 from router to the web server. Anyone on the internet will be able to see my webpage?

Any special configuration I need to set on the Apache server? Where do I set my dns, ip address, hostname etc so that Web user only need to type my domain name  instead of my ip address to come to my website.

I'm also worried about security issue. Any advice on what I can do on the server before I connect it online?
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.


Author Comment

ID: 22802236
Hi yurisk

I am trying to configure my Cisco DSL Router using the IOS command line.
When I login the first time,  I was asked to login with the default username and password cisco which will expire after i finish my session. I was then ask to change my username and password using the following command
'username  <myuser> privilege 15 secret 0 <mypassword>'
So I enter the command
"enable" to enable the privilege commands and enter the command above.

However I got the error "Invaild input detected at '^' marker.
The '^' was pointing to the word 'username'.

Seems like my IOS do not recognise this command.
Is there anything I need to set to enable this command?
LVL 29

Assisted Solution

fosiul01 earned 1200 total points
ID: 22802919
yes, after port forwarding, every one would e abl to view you web page by typig
but for that you ned to setup dns, A, MX for mail.

who is responsible for our dns managemet ??
if you by you domain by your self, then you should have domain managemet tools, fro their you can set you

A record to your IP : for www

But if  you are responsible for our own Dns , then you need to create dns Record, , in Dns you wll have to define, your A, Mx, Ns record

let me   now if you need more explanation

Author Comment

ID: 22802980

I am responsibile for my own DNS Where and how do I create and define my own A, Mx, Ns records?
Could you please elaborate?
LVL 29

Assisted Solution

fosiul01 earned 1200 total points
ID: 22805486
then you need to configured named.conf for Dns server.
will have to create zone file for your website
in the zone file, you need to mention A, MX,
check this one :

Primary name server.
also this one :

it should help you.
Or you will have to post another question about configuring name server in linux.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question