Link to home
Start Free TrialLog in
Avatar of xRalf
xRalf

asked on

Setting Apache to be visible on the Internet

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
Avatar of philetaylor
philetaylor

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
Avatar of xRalf

ASKER

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.
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
Avatar of xRalf

ASKER

>> 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?


ASKER CERTIFIED SOLUTION
Avatar of philetaylor
philetaylor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xRalf

ASKER

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.
Avatar of xRalf

ASKER

Thank you for troubleshooting. I mistyped my IP address in port forwarding.