Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
apache
Commits
155cdac9
Commit
155cdac9
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Optionally run PHP FPM over a socket
parent
42708320
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/etc-apache2-conf-available-php5-fpm
+0
-10
0 additions, 10 deletions
templates/etc-apache2-conf-available-php5-fpm
templates/etc-apache2-sites-available-default
+2
-0
2 additions, 0 deletions
templates/etc-apache2-sites-available-default
with
2 additions
and
10 deletions
templates/etc-apache2-conf-available-php5-fpm
deleted
100644 → 0
+
0
−
10
View file @
42708320
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Include /etc/apache2/{{ apache_conf_dir }}/global-deny.conf
</Directory>
</IfModule>
This diff is collapsed.
Click to expand it.
templates/etc-apache2-sites-available-default
+
2
−
0
View file @
155cdac9
...
...
@@ -3,11 +3,13 @@
ServerAdmin {{apache_server_admin}}
{% if not php_fpm_socket|default(false) %}
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www{{apache_server_default_root}}/$1
ProxyTimeout 900
<Proxy fcgi://127.0.0.1:9000>
ProxySet connectiontimeout=5 timeout=900 retry=3
</Proxy>
{% endif %}
DocumentRoot /var/www{{apache_server_default_root}}
<Directory />
...
...
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