github.io/assets/apprentice/wordpress/apache.conf

22 lines
423 B
ApacheConf
Raw Normal View History

2022-08-08 14:44:56 +00:00
<VirtualHost yowpdomain.example.com:443>
2022-08-18 13:39:55 +00:00
AddType text/html .php
DirectoryIndex index.php
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php-fpm/www.sock"
</FilesMatch>
2022-08-08 14:44:56 +00:00
# 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>