Differences
This shows you the differences between two versions of the page.
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/09/28 22:12] billdozor [User Based] |
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 43: | Line 51: | ||
Configuring the Apache Web Server with a non standard port and allowing port access with selinux. | Configuring the Apache Web Server with a non standard port and allowing port access with selinux. | ||
- | **NOTE**: "man semanage-port" | + | |
+ | * Tip: To see current port labels< | ||
- | ---- | ||
- | ===== Change HTTPD' | + | __**Change HTTPD' |
Change httpd port | Change httpd port | ||
Line 71: | 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 ===== | + | |
View http ports SELinux allows | View http ports SELinux allows | ||
Line 134: | Line 141: | ||
/ | / | ||
<code bash> | <code bash> | ||
- | <RequireAll> | + | <Directory "/ |
- | | + | |
- | Require not host notmyserver.local | + | # Blacklist " |
- | </ | + | |
+ | Require all granted | ||
+ | | ||
+ | </ | ||
+ | |||
+ | </ | ||
</ | </ | ||
- | * 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 " |
+ | * Must be inside of a < | ||
===== User Based ===== | ===== User Based ===== | ||