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