Pavlo Ponomarenko2011-02-25 21:29:57
Apache HTTP Server
Pavlo Ponomarenko, 2011-02-25 21:29:57

Apache on LAN

Hi guys. How to configure apache to work on a network that does not have access to the Internet?

Let's say apache2 is on a computer with ip (OpenSuse), such a virtual host is registered:

        ServerName  jet.lh
        ServerAlias *.jet.lh

        DocumentRoot #path

        ErrorLog  # error_log
        CustomLog # custom_log

And added an entry to /etc/hosts: jet.lh

Jet.lh opens in the browser.

Then, we take the second computer, ip (Win 7), we write to the hosts: jet.lh

At startup , it ping jet.lhpings, the ping is excellent.

But when opened in a browser (Chrome) jet.lh - "This web page is not available" (ERR_CONNECTION_TIMED_OUT).

Somehow there were no such problems with a public server, everything started with a half-kick. It seems that you need to set up a firewall, or add some kind of apache to Apache, but my knowledge of system administration was not enough. Help =)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
sHaggY_caT, 2011-02-25

1. if it's only a LAN, a firewall is not needed. OpenSUSE has GUI (and ncurses) yast, and on top of iptables is a suse-firewall wrapper, but you can also use iptables:
/sbin/service iptables stop
/sbin/service iptables save
/sbin/chkconfig iptables off
2. Check where Apache is bound:
netstat -atunp
3. Finally, we look at Apache's error_log

Puma Thailand, 2011-02-25

Check the firewall, the settings are list in Apache.
Go to the IP address from the second computer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question