<VirtualHost *:80>
ServerName mytower.xyz
ServerAlias alegrium2.mytower.xyz
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html_mytower_xyz
#LogLevel info ssl:warn
#LogLevel trace8
ErrorLog ${APACHE_LOG_DIR}/mytower_xyz_error.log
CustomLog ${APACHE_LOG_DIR}/mytower_xyz_access.log combined
#Include conf-available/serve-cgi-bin.conf
# Copy from /etc/apache/conf-available/php5.6-fpm.conf
<IfModule !mod_php5.c>
<IfModule proxy_fcgi_module>
# Enable http authorization headers
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
RewriteEngine On
RewriteRule ^/(.*)$ /index.php?shorten_id=$1 [PT,QSA]
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html_mytower_xyz/$1
#ProxyPassMatch ^/(status|ping)$ fcgi://127.0.0.1:9000/$1
#ProxyPassMatch ^/(.*)$ fcgi://127.0.0.1:9000/var/www/html_mytower_xyz/index.php/$1
<FilesMatch ".+\.phps$">
Require all denied
</FilesMatch>
# Deny access to files without filename (e.g. '.php')
<FilesMatch "^\.ph(p[3457]?|t|tml|ps)$">
Require all denied
</FilesMatch>
</IfModule>
</IfModule>
</VirtualHost>
Created
December 16, 2016 04:20
-
-
Save si294r/83f5f9faffc3bb0a45701db63012d335 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment