Answer the question
In order to leave comments, you need to log in
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 192.168.1.3 (OpenSuse), such a virtual host is registered:
<VirtualHost 192.168.1.3>
ServerName jet.lh
ServerAlias *.jet.lh
DocumentRoot #path
ErrorLog # error_log
CustomLog # custom_log
</VirtualHost>
192.168.1.3 jet.lh
192.168.1.3 jet.lh
ping jet.lh
pings 192.168.1.3, the ping is excellent. Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question