Skip to content

Instantly share code, notes, and snippets.

@novalagung
Last active January 22, 2020 05:38

Revisions

  1. novalagung revised this gist Jan 22, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion nginx-selinux-webroot
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,7 @@ ls -lrtZ

    # then adjust the security context using chcon
    sudo chcon -v --user=system_u ride-dev
    sudo chcon -R -v --type=httpd_sys_content_t ride-dev/*
    sudo chcon -R -v --type=httpd_sys_content_t ride-dev/*

    semanage port -l | grep http
    semanage port -a -t http_port_t -p tcp 8085
  2. novalagung created this gist Jan 22, 2020.
    6 changes: 6 additions & 0 deletions nginx-selinux-webroot
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # list stuff with it's security context
    ls -lrtZ

    # then adjust the security context using chcon
    sudo chcon -v --user=system_u ride-dev
    sudo chcon -R -v --type=httpd_sys_content_t ride-dev/*