Skip to content

Instantly share code, notes, and snippets.

@Jirido
Last active March 19, 2019 02:34
Show Gist options
  • Save Jirido/78ca71b1a30a340e5d6a1871603a06a7 to your computer and use it in GitHub Desktop.
Save Jirido/78ca71b1a30a340e5d6a1871603a06a7 to your computer and use it in GitHub Desktop.
pdz.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName paradiz.tk
ServerAlias www.paradiz.tk
DocumentRoot /var/www/wowi
<Directory "/var/www/wowi">
#Options +Indexes +FollowSymLinks +ExecCGI +Includes +MultiViews
Options None
allow from all
Require all granted
</Directory>
<IfModule mod_fastcgi.c>
AddHandler wowi .php
Action wowi /wowi
Alias /wowi /usr/lib/cgi-bin/wowi
FastCgiExternalServer /usr/lib/cgi-bin/wowi -socket /var/run/wowi.sock -pass-header Authorization -idle-timeout 3600
<Directory "/usr/lib/cgi-bin">
Require all granted
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler wowi
</FilesMatch>
</IfModule>
#then i tried to get it going with..
#ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/var/run/wowi.sock|fcgi://localhost/var/www/wowi"
# now thou by looking in httpd reference manual it looks like this would be right...
<FilesMatch "\.php$">
# Note: The only part that varies is /path/to/app.sock
SetHandler "proxy:unix:/var/run/wowi.sock|fcgi://localhost/"
</FilesMatch>
# Define a matching worker.
# The part that is matched to the SetHandler is the part that
# follows the pipe. If you need to distinguish, "localhost; can
# be anything unique.
<Proxy "fcgi://localhost/" enablereuse=on max=10>
</Proxy>
#SSLCertificateFile /etc/letsencrypt/live/merimade.tk/fullchain.pem
#SSLCertificateKeyFile /etc/letsencrypt/live/merimade.tk/privkey.pem
#Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment