SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


redhathttpd
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
redhathttpd [2014/03/17 21:45]
sjoerd [Firewall]
redhathttpd [2014/03/17 21:46] (current)
sjoerd [Firewall]
Line 39: Line 39:
 If your firewall is enabled and you cannot access the webserver from a different computer, but can from the localhost port 80 is probably blocked. Open it by editing /​etc/​sysconfig/​iptables:​ If your firewall is enabled and you cannot access the webserver from a different computer, but can from the localhost port 80 is probably blocked. Open it by editing /​etc/​sysconfig/​iptables:​
 <​code>​ <​code>​
-vim /​etc/​sysconfig/​iptables+vim /​etc/​sysconfig/​iptables
 </​code>​ </​code>​
 Now append the following rule to open port 80: Now append the following rule to open port 80:
Line 48: Line 48:
 Now save the file and restart iptables: Now save the file and restart iptables:
 <​code>​ <​code>​
-# /​etc/​init.d/​iptables restart+service ​iptables restart
 </​code>​ </​code>​
  
 {{tag>​linux redhat apache}} {{tag>​linux redhat apache}}
redhathttpd.txt ยท Last modified: 2014/03/17 21:46 by sjoerd