Re: Problem in using Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Asim Munawar wrote:
> I am using Fedora Core 6 on Pentium Mobile laptop...
> My Apache version is
>
> [root@ecgrid ~]# apachectl -v
> Server version: Apache/2.2.3
> Server built:   Sep 11 2006 09:43:18
>
> I added the line
> Listen MY_STATIC_INTERNET_IP:80      to http.conf but its giving the
> same problem...
>
>       please suggest something elase....
>
>  thanks
> Asim
You say you have an internet Static IP, does that mean you are running
on a modem with a software firewall and that you really DO have a static
IP, or do you use a firewall router on which you have setup port
forwarding for port 80. That is does your NIC bind to the public IP, or
does it bind to a static LAN IP which you have forwarded port 80 from
outside?

If you can telnet to apache from the internet then apache is answering
on the LAN _and_ internet NICs then you are almost there

If you used the following _from the internet_ and received the homepage
then all is well with the apache setup
telnet your_internet_IP 80
GET / HTTP/1.1
User-Agent: firefox
Host: yourservers_fully_qualified_domain_name
[enter][enter]

However if when you do this, you get a default page of some kind, maybe
even an error then apache needs setting up to serve that FQDN, perhaps
you need a servername directive in the vhosts section if you are serving
more than one site.

If you get nothing, "host not found", then you need to add a public A
record for that FQDN pointing at your internet IP.

So more details about the error are needed, what does the apache error
log say, what is the error you get when trying from the internet? Have
you set up a public DNS record, or can you add a hosts entry on the
machine you are connecting FROM
YOUR_PUBLIC_IP   fully_qualified_domain_name
so that even without DNS you know that your servername is matched to the
correct IP address for that machine.

Rather than have us suggest an endless stream of options, why not give
us a bit more info?

>
>
>
> */Krist van Besien <krist.vanbesien@xxxxxxxxx>/* wrote:
>
>     On 3/12/07, Asim Munawar wrote:
>     > Dear All
>     > I am new to apache... I have actually installed apache, php and
>     > postgres to run a wiki web page. my web server have two network
>     cards. one
>     > is connected to the internet with static IP and the other is
>     connected to
>     > the LAN. now the apache homepage is only visible from the LAN
>     while it gives
>     > error when you access it from the internet. I turned off all the
>     firewalls
>     > but the same problem. Please note that i am able to ssh or
>     telnet to the web
>     > server over the internet but the apache page and my wiki gives
>     error on the
>     > internet..
>     >
>     > I think that somehow the Ethernet card on LAN is being treated
>     like the
>     > default network by apache... how to change these settings...
>     please help
>
>     By default Apache will listen to all interfaces. So you might have
>     another problem.
>
>     First tellm us a bit more about your setup: What OS are your running
>     Apache on, what version of apache are you using?
>
>     Krist
>
>     -- 
>     krist.vanbesien@xxxxxxxxx
>     Bremgarten b. Bern, Switzerland
>     --
>     A: It reverses the normal flow of conversation.
>     Q: What's wrong with top-posting?
>     A: Top-posting.
>     Q: What's the biggest scourge on plain text email discussions?
>
>     ---------------------------------------------------------------------
>     The official User-To-User support forum of the Apache HTTP Server
>     Project.
>     See for more info.
>     To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>     " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>     For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
> for great tips from Yahoo! Answers
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
> users. 

-- 
Matthew Farey



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux