{"action":"created","comment":{"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments/72165852","id":72165852,"diff_hunk":"@@ -0,0 +1,137 @@\n+==================================================\n+Installing ModSecurity with Apache on Ubuntu 14.04\n+==================================================\n+\n+ModSecurity is an open source WAF (web application firewall) designed as a\n+module for Apache web servers. ModSecurity provides a flexible rule engine,\n+allowing users to write (or use third-party) rules for protecting websites\n+from attacks such as XSS, SQLi, CSRF, DDoS, and brute force login (as well\n+as a number of other exploits). This tutorial will walk through the basics\n+of installing and configuring ModSecurity for an Apache web server. This\n+tutorial assumes that Apache is already installed and running.\n+\n+Installing ModSecurity\n+~~~~~~~~~~~~~~~~~~~~~~\n+\n+Ensure that the system package sources are up to date:\n+\n+.. code::\n+\n+    # apt-get update\n+\n+Next, install ModSecurity:\n+\n+.. code::\n+\n+    # apt-get install libapache2-mod-security2\n+\n+This automatically installs and activate ModSecurity. In order to begin using\n+ModSecurity, a usable configuration file must be put into place. The ModSecurity\n+package provided for Ubuntu contains a default recommended config file that can\n+be used as a starting point:\n+\n+.. code::\n+\n+    # mv /etc/modsecurity/modsecurity.conf-recommended \\\n+        /etc/modsecurity/modsecurity.conf\n+\n+Once this is in place, reload Apache for the default ModSecurity config file to\n+take effect:\n+\n+.. code::\n+\n+    # service apache2 reload\n+\n+Configuring ModSecurity\n+~~~~~~~~~~~~~~~~~~~~~~~\n+\n+The default recommended config file provided for ModSecurity is a good starting\n+point, but has very few actual protective rules configured. In this tutorial the\n+OWASP Core Rule Set (CRS) is used to provide additional protection.\n+\n+Enabling CRS Rulesets\n+---------------------\n+\n+The Ubuntu package for ModSecurity recommends a separate package containing the","path":"source/dreamcompute/tutorials/how-to-install-modsecurity.rst","position":55,"original_position":55,"commit_id":"ec268ee65a4bb604a1275e0c619d7a490536edc4","original_commit_id":"ec268ee65a4bb604a1275e0c619d7a490536edc4","user":{"login":"cjdh","id":16023329,"avatar_url":"https://avatars.githubusercontent.com/u/16023329?v=3","gravatar_id":"","url":"https://api.github.com/users/cjdh","html_url":"https://github.com/cjdh","followers_url":"https://api.github.com/users/cjdh/followers","following_url":"https://api.github.com/users/cjdh/following{/other_user}","gists_url":"https://api.github.com/users/cjdh/gists{/gist_id}","starred_url":"https://api.github.com/users/cjdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjdh/subscriptions","organizations_url":"https://api.github.com/users/cjdh/orgs","repos_url":"https://api.github.com/users/cjdh/repos","events_url":"https://api.github.com/users/cjdh/events{/privacy}","received_events_url":"https://api.github.com/users/cjdh/received_events","type":"User","site_admin":false},"body":"(Remove \"our\")\r\nThe Ubuntu package for ModSecurity recommends a separate package containing the CRS rulesets, which can be used as an extra source of rules for the WAF.","created_at":"2016-07-25T23:46:11Z","updated_at":"2016-07-25T23:46:11Z","html_url":"https://github.com/dreamhost/dreamcloud-docs/pull/57#discussion_r72165852","pull_request_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments/72165852"},"html":{"href":"https://github.com/dreamhost/dreamcloud-docs/pull/57#discussion_r72165852"},"pull_request":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57","id":77368151,"html_url":"https://github.com/dreamhost/dreamcloud-docs/pull/57","diff_url":"https://github.com/dreamhost/dreamcloud-docs/pull/57.diff","patch_url":"https://github.com/dreamhost/dreamcloud-docs/pull/57.patch","issue_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/57","number":57,"state":"open","locked":false,"title":"Installing ModSecurity on Apache","user":{"login":"p0pr0ck5","id":4625425,"avatar_url":"https://avatars.githubusercontent.com/u/4625425?v=3","gravatar_id":"","url":"https://api.github.com/users/p0pr0ck5","html_url":"https://github.com/p0pr0ck5","followers_url":"https://api.github.com/users/p0pr0ck5/followers","following_url":"https://api.github.com/users/p0pr0ck5/following{/other_user}","gists_url":"https://api.github.com/users/p0pr0ck5/gists{/gist_id}","starred_url":"https://api.github.com/users/p0pr0ck5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0pr0ck5/subscriptions","organizations_url":"https://api.github.com/users/p0pr0ck5/orgs","repos_url":"https://api.github.com/users/p0pr0ck5/repos","events_url":"https://api.github.com/users/p0pr0ck5/events{/privacy}","received_events_url":"https://api.github.com/users/p0pr0ck5/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-13T21:52:10Z","updated_at":"2016-07-25T23:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f95450538f6166f7815513541600d1ef2f98094","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57/commits","review_comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57/comments","review_comment_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/57/comments","statuses_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/ec268ee65a4bb604a1275e0c619d7a490536edc4","head":{"label":"p0pr0ck5:modsec_apache","ref":"modsec_apache","sha":"ec268ee65a4bb604a1275e0c619d7a490536edc4","user":{"login":"p0pr0ck5","id":4625425,"avatar_url":"https://avatars.githubusercontent.com/u/4625425?v=3","gravatar_id":"","url":"https://api.github.com/users/p0pr0ck5","html_url":"https://github.com/p0pr0ck5","followers_url":"https://api.github.com/users/p0pr0ck5/followers","following_url":"https://api.github.com/users/p0pr0ck5/following{/other_user}","gists_url":"https://api.github.com/users/p0pr0ck5/gists{/gist_id}","starred_url":"https://api.github.com/users/p0pr0ck5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0pr0ck5/subscriptions","organizations_url":"https://api.github.com/users/p0pr0ck5/orgs","repos_url":"https://api.github.com/users/p0pr0ck5/repos","events_url":"https://api.github.com/users/p0pr0ck5/events{/privacy}","received_events_url":"https://api.github.com/users/p0pr0ck5/received_events","type":"User","site_admin":false},"repo":{"id":62673056,"name":"dreamcloud-docs","full_name":"p0pr0ck5/dreamcloud-docs","owner":{"login":"p0pr0ck5","id":4625425,"avatar_url":"https://avatars.githubusercontent.com/u/4625425?v=3","gravatar_id":"","url":"https://api.github.com/users/p0pr0ck5","html_url":"https://github.com/p0pr0ck5","followers_url":"https://api.github.com/users/p0pr0ck5/followers","following_url":"https://api.github.com/users/p0pr0ck5/following{/other_user}","gists_url":"https://api.github.com/users/p0pr0ck5/gists{/gist_id}","starred_url":"https://api.github.com/users/p0pr0ck5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0pr0ck5/subscriptions","organizations_url":"https://api.github.com/users/p0pr0ck5/orgs","repos_url":"https://api.github.com/users/p0pr0ck5/repos","events_url":"https://api.github.com/users/p0pr0ck5/events{/privacy}","received_events_url":"https://api.github.com/users/p0pr0ck5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/p0pr0ck5/dreamcloud-docs","description":"Documentation for users of all DreamHost Cloud products (DreamCompute, DreamObjects, etc). Aimed at developers who wish to learn how to use DreamHost Cloud standard APIs (based on OpenStack) to automate common tasks.","fork":true,"url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs","forks_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/forks","keys_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/teams","hooks_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/hooks","issue_events_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/issues/events{/number}","events_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/events","assignees_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/assignees{/user}","branches_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/branches{/branch}","tags_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/tags","blobs_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/languages","stargazers_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/stargazers","contributors_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/contributors","subscribers_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/subscribers","subscription_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/subscription","commits_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/contents/{+path}","compare_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/merges","archive_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/downloads","issues_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/issues{/number}","pulls_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/labels{/name}","releases_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/releases{/id}","deployments_url":"https://api.github.com/repos/p0pr0ck5/dreamcloud-docs/deployments","created_at":"2016-07-05T22:12:05Z","updated_at":"2016-07-05T22:12:06Z","pushed_at":"2016-07-25T22:50:56Z","git_url":"git://github.com/p0pr0ck5/dreamcloud-docs.git","ssh_url":"git@github.com:p0pr0ck5/dreamcloud-docs.git","clone_url":"https://github.com/p0pr0ck5/dreamcloud-docs.git","svn_url":"https://github.com/p0pr0ck5/dreamcloud-docs","homepage":"https://www.dreamhost.com/cloud","size":30432,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dreamhost:master","ref":"master","sha":"b5d17e1b8d06bdf5b45453007d8b3dfa54a77031","user":{"login":"dreamhost","id":1339138,"avatar_url":"https://avatars.githubusercontent.com/u/1339138?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamhost","html_url":"https://github.com/dreamhost","followers_url":"https://api.github.com/users/dreamhost/followers","following_url":"https://api.github.com/users/dreamhost/following{/other_user}","gists_url":"https://api.github.com/users/dreamhost/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamhost/subscriptions","organizations_url":"https://api.github.com/users/dreamhost/orgs","repos_url":"https://api.github.com/users/dreamhost/repos","events_url":"https://api.github.com/users/dreamhost/events{/privacy}","received_events_url":"https://api.github.com/users/dreamhost/received_events","type":"Organization","site_admin":false},"repo":{"id":41562041,"name":"dreamcloud-docs","full_name":"dreamhost/dreamcloud-docs","owner":{"login":"dreamhost","id":1339138,"avatar_url":"https://avatars.githubusercontent.com/u/1339138?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamhost","html_url":"https://github.com/dreamhost","followers_url":"https://api.github.com/users/dreamhost/followers","following_url":"https://api.github.com/users/dreamhost/following{/other_user}","gists_url":"https://api.github.com/users/dreamhost/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamhost/subscriptions","organizations_url":"https://api.github.com/users/dreamhost/orgs","repos_url":"https://api.github.com/users/dreamhost/repos","events_url":"https://api.github.com/users/dreamhost/events{/privacy}","received_events_url":"https://api.github.com/users/dreamhost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dreamhost/dreamcloud-docs","description":"Documentation for users of all DreamHost Cloud products (DreamCompute, DreamObjects, etc). Aimed at developers who wish to learn how to use DreamHost Cloud standard APIs (based on OpenStack) to automate common tasks.","fork":false,"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs","forks_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/forks","keys_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/teams","hooks_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/hooks","issue_events_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/events{/number}","events_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/events","assignees_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/assignees{/user}","branches_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/branches{/branch}","tags_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/tags","blobs_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/languages","stargazers_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/stargazers","contributors_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/contributors","subscribers_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/subscribers","subscription_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/subscription","commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/contents/{+path}","compare_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/merges","archive_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/downloads","issues_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues{/number}","pulls_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/labels{/name}","releases_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/releases{/id}","deployments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/deployments","created_at":"2015-08-28T18:11:40Z","updated_at":"2016-07-13T19:30:29Z","pushed_at":"2016-07-25T22:50:56Z","git_url":"git://github.com/dreamhost/dreamcloud-docs.git","ssh_url":"git@github.com:dreamhost/dreamcloud-docs.git","clone_url":"https://github.com/dreamhost/dreamcloud-docs.git","svn_url":"https://github.com/dreamhost/dreamcloud-docs","homepage":"https://www.dreamhost.com/cloud","size":30926,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57"},"html":{"href":"https://github.com/dreamhost/dreamcloud-docs/pull/57"},"issue":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/57"},"comments":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/ec268ee65a4bb604a1275e0c619d7a490536edc4"}}}}
{"actor":{"display_login":"cjdh"}}