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/10/08 17:57] billdozor |
linux_wiki:network_services_overview_apache_web_server [2018/04/07 22:52] billdozor [Host Based] |
||
---|---|---|---|
Line 132: | Line 132: | ||
Allow access through the firewall | Allow access through the firewall | ||
<code bash> | <code bash> | ||
+ | # Standard http/https ports | ||
firewall-cmd --permanent --add-service=http | firewall-cmd --permanent --add-service=http | ||
firewall-cmd --permanent --add-service=https | firewall-cmd --permanent --add-service=https | ||
+ | firewall-cmd --reload | ||
+ | |||
+ | # Non-standard port example | ||
+ | firewall-cmd --permanent --add-port=8282/ | ||
firewall-cmd --reload | firewall-cmd --reload | ||
</ | </ | ||
Line 141: | Line 146: | ||
/ | / | ||
<code bash> | <code bash> | ||
- | <RequireAll> | + | <Directory "/ |
- | | + | |
- | Require not host notmyserver.local | + | |
- | </ | + | < |
+ | 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 ===== | ||