linux_wiki:network_services_overview_apache_web_server

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:network_services_overview_apache_web_server [2016/10/06 21:11]
billdozor [SELinux: Configure Non Standard Port]
linux_wiki:network_services_overview_apache_web_server [2018/04/07 16:59]
billdozor [Host Based]
Line 12: Line 12:
   * Configure the service for basic operation   * Configure the service for basic operation
   * Configure host-based and user-based security for the service   * Configure host-based and user-based security for the service
 +
 +----
 +
 +====== Lab Setup ======
 +
 +The following virtual machines will be used:
 +  * server1.example.com (192.168.1.150) -> Perform all connectivity tests from here
 +  * server2.example.com (192.168.1.151) -> Install Apache Web Server here
  
 ---- ----
Line 46: Line 54:
   * Tip: To see current port labels<code bash>semanage port -l | grep http</code>   * Tip: To see current port labels<code bash>semanage port -l | grep http</code>
  
----- 
  
 __**Change HTTPD's Port**__ __**Change HTTPD's Port**__
Line 72: Line 79:
   * Should see permission denied to make socket 8282   * Should see permission denied to make socket 8282
  
----- +\\
 __**SELinux: Configure Non Standard Port**__ __**SELinux: Configure Non Standard Port**__
  
Line 135: Line 141:
 /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf
 <code bash> <code bash>
-<RequireAll+<Directory "/var/www/html"
-  Require host myserver.local +   
-  Require not host notmyserver.local +  # Blacklist "evilserver.local" 
-</RequireAll>+  <RequireAll> 
 +    Require all granted 
 +    Require not host evilserver.local 
 +  </RequireAll
 +   
 +</Directory>
 </code> </code>
-  * The above will allow access from myserver.local, but deny notmyserver.local from accessing the web server+  * The above will allow access from all hosts except "evilserver.local
 +  * Must be inside of a <Directory> context. 
 ===== User Based ===== ===== User Based =====
  
  • linux_wiki/network_services_overview_apache_web_server.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)