Skip to content

Instantly share code, notes, and snippets.

@robertstaddon
Created February 20, 2017 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertstaddon/7ea6d4134b0397f7fc7810679dc1d69a to your computer and use it in GitHub Desktop.
Save robertstaddon/7ea6d4134b0397f7fc7810679dc1d69a to your computer and use it in GitHub Desktop.
<Directory /var/www/vhosts/primarydomain.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment