MythicSalt/states/cowboy_website/cowboybuilder.org.uk.conf

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-05-11 14:21:11 +01:00
<VirtualHost *:80>
ServerName www.cowboybuilder.org.uk
ServerAlias cowboybuilder.org.uk
ErrorLog /var/log/apache2/cowboybuilder-error.log
CustomLog /var/log/apache2/cowboybuilder-access.log combined
RemoteIPProxyProtocol On
DocumentRoot /usr/share/wordpress
Alias /wp-content /var/lib/wordpress/wp-content-cowboybuilder
<Directory /var/lib/wordpress/wp-content-cowboybuilder>
Order deny,allow
Allow from all
Require all granted
</Directory>
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Directory>
</VirtualHost>