jestro / wordpress-capistrano

Automate your wordpress deploys with capistrano and git

This URL has Read+Write access

wordpress-capistrano / config / vhost.conf.erb
77279198 » jnewland 2008-11-24 apache, ssh keys, etc 1 <%#if you make any changes to this file in your repository, run cap apache:configure to apply %>
2 <VirtualHost *:80>
3 ServerName <%= domain %>
4 <% server_aliases_array.each do |a| %>
5 ServerAlias <%= "#{a}" %>
6 <% end %>
7 DocumentRoot <%= "#{current_path}/wordpress" %>
8
9 <Directory <%= "#{current_path}/wordpress" %>>
10 Options FollowSymLinks
11 AllowOverride None
12 Order allow,deny
13 Allow from all
14 </Directory>
15
16 RewriteEngine On
17
18 # Prevent access to .svn directories
19 RewriteRule ^(.*/)?\.svn/ - [F,L]
20 ErrorDocument 403 "Access Forbidden"
21 # Prevent access to .git directories
22 RewriteRule ^(.*/)?\.git/ - [F,L]
23 ErrorDocument 403 "Access Forbidden"
24
25 </VirtualHost>