Last active
March 19, 2019 02:45
-
-
Save Jirido/082e59cdefb1d76001b34ba1af94004d to your computer and use it in GitHub Desktop.
pdz.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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