Solved

Setting Apache to be visible on the Internet

Posted on 2011-03-22
7
377 Views
Last Modified: 2012-05-11
Hello,

could you help me with Apache2 configuration (on Ubuntu 10.04) to be visible on my public IP address? I'd like to know what to set and in which configuration files.

thank you
0
Comment
Question by:xRalf
  • 4
  • 3
7 Comments
 
LVL 4

Expert Comment

by:philetaylor
ID: 35192824
The apache2 configuration files are stored in /etc/apache2

The default installation (sudo apt-get install apache2) should listen on all IP addresses and serve pages from /var/www

The Ubuntu help site will give you more information for specific configuration options:

https://help.ubuntu.com/10.04/serverguide/C/httpd.html

Cheers

Phil
0
 
LVL 6

Author Comment

by:xRalf
ID: 35192926
My apache web server is working localy, but I need to be visible globally.
Please cite some particilar section related to my problem from the link you sent.
0
 
LVL 4

Expert Comment

by:philetaylor
ID: 35193151
The link I sent deals with basic configuration of Apache including how to set which IP addresses the server is listening on.

I would need more information to be able to accurately answer your question.

Does your server currently have a public IP address or an unconnected (10.x.x.x, 192.168.x.x, 172.16.x.x) address?

If it is unconnected then you must first create some sort of network address translation on your router to route http (port 80) requests to your Ubuntu server.

If the server has a public address then you will need to ensure that any firewall (including any software firewall running on the Ubuntu server) is allowing requests from the Internet to port 80.

Cheers

Phil
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 6

Author Comment

by:xRalf
ID: 35193456
>> I would need more information to be able to accurately answer your question.

That is not the problem. I will describe the details you need to know.

>> Does your server currently have a public IP address or an unconnected (10.x.x.x, 192.168.x.x, 172.16.x.x) address?

I don't know how to set it. I have public IP but don't know where to write it in configuration files.

>> If it is unconnected then you must first create some sort of network address translation on your router to route http (port 80) requests to your Ubuntu server.

This is already done in my router in port forwarding.

>> If the server has a public address then you will need to ensure that any firewall (including any software firewall running on the Ubuntu server) is allowing requests from the Internet to port 80.

I think that I don't use any software firewall but now can I find out if there is one blocking port 80?


0
 
LVL 4

Accepted Solution

by:
philetaylor earned 500 total points
ID: 35193525
If your router is using port forwarding then you should not need to enter the public IP within the Ubuntu server (the router will handle translating requests to the private (unconnected) address of the server.

I assume that the Ubuntu server can successfully access the Internet? try something like "ping www.google.com" if this is successful then outbound connections are working ok (which is half of the battle!)

Unless you have installed another software firewall on your Ubuntu server then the default is an iptables based one called ufw. This is disabled by default but if you have enabled it, then you will need to specifically allow access to port 80 using something like:

"sudo ufw insert 1 allow 80"

Cheers

Phil
0
 
LVL 6

Author Comment

by:xRalf
ID: 35196186
The ufw firewall is probably disabled.
$ sudo ufw status verbose
Status: inactive

I need that my webserver is working from the address that writes me whatismyip.com . So others can use it.
0
 
LVL 6

Author Closing Comment

by:xRalf
ID: 35432015
Thank you for troubleshooting. I mistyped my IP address in port forwarding.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven set up 2 142
PHP Upload using Uploadify 4 92
LAMP problem identifier tool ? 9 116
Apache 2.2 on Windows 2008 32 75
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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