Fedora Linux Support Community & Resources Center
  #1  
Old 29th January 2010, 09:29 PM
antonyna Offline
Registered User
 
Join Date: Apr 2009
Location: Coventry
Posts: 48
linuxfedorafirefox
local web server (httpd)

Dear all,
this is my first time I try to set a local web server.
I have turned on HTTPD service.
I have created an account in dyndns.com.

I have created an index.html file in /var/www/html/mywebsite

I have enabled the DDNS option on my router:
Hostname: mysite.dyndns.com
Email address: Null
User: myusername
Pass: Mypass
Enable Wildcard: Yes.

Also I added in the conf.httpd file the lines:
DocumentRoot "/var/www/mysitenamel"
ServerName mysite.something.com

But every time i try to browse my site I see the interface from router...

Any ideas pls!!??
Reply With Quote
  #2  
Old 29th January 2010, 09:41 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Depends on your ISP.

It sounds like your router is a NAT, and it doesn't forward port 80.

This can happen because a number of NAT routers are configured via a web
interface. If the NAT is using the port for that, then no- you will not be able
to access your web server.
Reply With Quote
  #3  
Old 30th January 2010, 12:16 AM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Did you point port 80 to your internal IP with in your router ?
Also place index.html in /var/www/html

BASIC SETTING for http.conf
Listen 80
DocumentRoot "/var/www/html"
ServerName www.XXXXXX.com:80
DirectoryIndex index.shtml index.htm index.html index.php
Reply With Quote
  #4  
Old 30th January 2010, 02:09 AM
antonyna Offline
Registered User
 
Join Date: Apr 2009
Location: Coventry
Posts: 48
linuxfedorafirefox
guys,
I did everything you posted.
In router settings I can find only NAT setting with two optionsMZ, Multiple...
How I can understand if it is only NAT??

Thanks for your help mates!

---------- Post added at 03:09 AM CST ---------- Previous post was at 03:07 AM CST ----------

The router is: huawei echolife hg520b.
Reply With Quote
  #5  
Old 30th January 2010, 04:17 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
What is the IP number of the server?
If it is 192.168.x.x it it is almost certainly behind a NAT. There are other
possibilities too but most NATs use these.
Reply With Quote
  #6  
Old 31st January 2010, 08:35 PM
antonyna Offline
Registered User
 
Join Date: Apr 2009
Location: Coventry
Posts: 48
linuxfedorafirefox
192XX is the IP that I enter from my terminal.
I use my public IP(www.whatismyip.com) to browse my website...But I see my router interface. :-s
Now I have changed the router with a D-Link... I will do the changes and I will post the results.
Thanks for your help!
Reply With Quote
  #7  
Old 31st January 2010, 08:50 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
That is not necessarily a permanent IP number.

You may be getting that from your ISP via a DHCP request.

And your ISP may still be blocking port 80.

You need to explain your network better.

Your host is connectedt to a D-link. fine.
What is your D-link connected to?
What are the terms of service from your ISP?
Reply With Quote
  #8  
Old 31st January 2010, 10:39 PM
antonyna Offline
Registered User
 
Join Date: Apr 2009
Location: Coventry
Posts: 48
linuxfedorafirefox
yeap I know it is permanent!
nothing special : My PC is connected to the router and then it is connected to the internet.
If my ISP was blocking 80 port then I didn't be able to access even router interface, is that right???
Reply With Quote
  #9  
Old 31st January 2010, 11:37 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Quote:
Originally Posted by antonyna View Post
yeap I know it is permanent!
nothing special : My PC is connected to the router and then it is connected to the internet.
If my ISP was blocking 80 port then I didn't be able to access even router interface, is that right???
No. you always must be able to reach the router interface, otherwise replies
to your local requests would never work.

If the router is yours, you will have to login to the router and configure it
to forward port 80 to your server.
Reply With Quote
Reply

Tags
httpd, local, server, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /us Kingtu Servers & Networking 2 5th April 2007 12:54 AM
httpd server under FC6 pinenut Servers & Networking 2 1st January 2007 04:09 PM
vi /usr/local/apache2/conf/httpd.conf tidy_boy Servers & Networking 3 1st May 2006 12:09 AM
Information request on local server backup solutions for FC2 server ivillages Using Fedora 0 26th June 2005 05:35 PM


Current GMT-time: 03:20 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat