Skip to content

Commit

Permalink
added directory listing in vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Jegouzo committed Jan 10, 2013
1 parent 2d3cfec commit 1744dfe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions virtualhost.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash

# TODO:
# force add trailing slash at the end of the path

hostsFile=/private/etc/hosts
apacheFile=/etc/apache2/extra/httpd-vhosts.conf

Expand All @@ -27,6 +24,7 @@ sudo -s <<EOF
<Directory "$path/$domain/">
Allow From All
AllowOverride All
Options Indexes FollowSymLinks MultiViews
</Directory>
<VirtualHost *:80>
ServerName "$domain"
Expand Down

0 comments on commit 1744dfe

Please sign in to comment.