Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
apache
Commits
2ba2287b
Commit
2ba2287b
authored
6 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Config for Apache less than 2.4 removed
parent
db94cbae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/localhost.conf
+4
-41
4 additions, 41 deletions
files/localhost.conf
tasks/main.yml
+8
-3
8 additions, 3 deletions
tasks/main.yml
with
12 additions
and
44 deletions
files/localhost.conf
+
4
−
41
View file @
2ba2287b
...
...
@@ -2,58 +2,21 @@
# localhost virtual host for server-status and other things for munin stats
<
VirtualHost
127
.
0
.
0
.
1
:
80
>
ServerName
localhost
<
IfModule
mod_
status
.
c
>
<
IfModule
status
_module
>
<
Location
/
server
-
status
>
Require
host
localhost
127
.
0
.
0
.
1
::
1
SetHandler
server
-
status
<
IfModule
mod_version
.
c
>
<
IfVersion
<
2
.
4
>
Order
allow
,
deny
Deny
from
all
Allow
from
localhost
127
.
0
.
0
.
1
::
1
</
IfVersion
>
<
IfVersion
>=
2
.
4
>
Require
host
localhost
127
.
0
.
0
.
1
::
1
</
IfVersion
>
</
IfModule
>
<
IfModule
!
mod_version
.
c
>
<
IfModule
!
mod_authz_core
.
c
>
Order
allow
,
deny
Deny
from
all
Allow
from
localhost
127
.
0
.
0
.
1
::
1
</
IfModule
>
<
IfModule
mod_authz_core
.
c
>
Require
host
localhost
127
.
0
.
0
.
1
::
1
</
IfModule
>
</
IfModule
>
</
Location
>
</
IfModule
>
DocumentRoot
"/var/www/localhost"
<
Directory
"/var/www/localhost"
>
Require
host
localhost
127
.
0
.
0
.
1
::
1
Options
+
Indexes
+
SymlinksIfOwnerMatch
-
MultiViews
-
Includes
-
ExecCGI
AllowOverride
AuthConfig
Indexes
FileInfo
Limit
<
IfModule
php7_module
>
php_admin_value
doc_root
/
var
/
www
/
localhost
php_admin_value
open_basedir
/
var
/
www
/
localhost
/:/
tmp
/:/
usr
/
share
/
php
/
</
IfModule
>
<
IfModule
mod_version
.
c
>
<
IfVersion
<
2
.
4
>
Order
allow
,
deny
Deny
from
all
Allow
from
localhost
127
.
0
.
0
.
1
::
1
</
IfVersion
>
<
IfVersion
>=
2
.
4
>
Require
host
localhost
127
.
0
.
0
.
1
::
1
</
IfVersion
>
</
IfModule
>
<
IfModule
!
mod_version
.
c
>
<
IfModule
!
mod_authz_core
.
c
>
Order
allow
,
deny
Deny
from
all
Allow
from
localhost
127
.
0
.
0
.
1
::
1
</
IfModule
>
<
IfModule
mod_authz_core
.
c
>
Require
host
localhost
127
.
0
.
0
.
1
::
1
</
IfModule
>
</
IfModule
>
</
Directory
>
</
VirtualHost
>
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
8
−
3
View file @
2ba2287b
...
...
@@ -10,8 +10,13 @@
-
lynx
register
:
apache_packages
# TODO
#- name: Apache modules disabled
-
name
:
Apache conf disabled
command
:
"
a2dismod
{{
item
}}"
args
:
removes
:
/etc/apache2/conf-enabled/{{ item }}
with_items
:
-
serve-cgi-bin.conf
register
:
apache_conf
-
name
:
Apache modules enabled
apache2_module
:
...
...
@@ -70,4 +75,4 @@
msg
:
"
{{
apache2ctl_configtest.stdout
}}"
when
:
'
"Syntax
OK"
not
in
apache2ctl_configtest.stdout'
when
:
apache_packages.changed or apache_modules.changed or apache_ssl.changed or apache_localhost.changed
when
:
apache_packages.changed or
apache_conf.changed or
apache_modules.changed or apache_ssl.changed or apache_localhost.changed
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment