Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions native/advertise/README

This file was deleted.

23 changes: 23 additions & 0 deletions native/advertise/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Using mod_advertise

The source can be build with an installed version of httpd-2.4.x, please make
sure it's configured with `--enable-advertise` flag.

```bash
sh buildconf
./configure --with-apache=apache_installation_directory
make
```

The `mod_advertise.so` needs to be copied to `apache_installation_directory/modules`

Configuration use something like the following in httpd.conf:

```
LoadModule advertise_module modules/mod_advertise.so
ServerAdvertise on
AdvertiseGroup 232.0.0.2
AdvertiseFrequency 30
```

Note: default port is 23364.
25 changes: 0 additions & 25 deletions native/selinux/README

This file was deleted.

37 changes: 37 additions & 0 deletions native/selinux/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SELinux policies

To compile policies run `make -f /usr/share/selinux/devel/Makefile`

To install policies run `semodule -i mod_cluster.pp`

To remove them run `semodule -r mod_cluster`

In order to be able to listen and advertise on the default port execute

```bash
semanage port -a -t http_port_t -p udp 23364
semanage port -a -t http_port_t -p tcp 6666
```

To revert the previous run

```bash
semanage port -d -t http_port_t -p udp 23364
semanage port -d -t http_port_t -p tcp 6666
```

For the shared memory tables

```bash
MemManagerFile /var/cache/mod_cluster
mkdir /var/cache/mod_cluster
chcon -v --type=httpd_cache_t /var/cache/mod_cluster
chcon -v --user=system_u /var/cache/mod_cluster
```

Note that the permissions should follow the notice you find in error_log:
```
+++
[Wed Jun 13 09:35:59 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
+++
```