22 lines
423 B
ApacheConf
22 lines
423 B
ApacheConf
<VirtualHost yowpdomain.example.com:443>
|
|
AddType text/html .php
|
|
DirectoryIndex index.php
|
|
|
|
<FilesMatch \.php$>
|
|
SetHandler "proxy:unix:/run/php-fpm/www.sock"
|
|
</FilesMatch>
|
|
|
|
# Dotfiles
|
|
<FilesMatch "^\.">
|
|
Deny from all
|
|
</FilesMatch>
|
|
# Dotdirs
|
|
<DirectoryMatch "^\.|\/\.">
|
|
Deny from all
|
|
</DirectoryMatch>
|
|
|
|
<Location /xmlrpc.php>
|
|
Allow 127.0.0.1
|
|
Deny from all
|
|
</Location>
|
|
</VirtualHost> |