P
P
Petr Volkhanov2014-02-20 11:38:55
Apache HTTP Server
Petr Volkhanov, 2014-02-20 11:38:55

The site works on localhost, but it does not open from the Internet. Why?

Installed Ubuntu 13.10, raised LAMP. If I go to localhost in a browser, the site opens without problems... I have an external IP. But in the browser, I can't access my external IP, not the website address. What have I done wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergeygarnov, 2014-02-20
@eprivalov

if the computer is connected to the network through a router, then it is necessary to do port forwarding, and so, there can be a lot of options

M
maxaon, 2014-02-20
@maxaon

First - configuring apache to listen on the external interface (or all). If virtual hosts are used, then you need to change NameVirtualHostto *:80or the required external IP. You also need to change the virtual host definition to <VirtualHost *:80>.
It may also be worth looking at the values ​​of BindAddress, Listen.
If another way - see
the manual Secondly - port forwarding from the router.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question