Skip to content
Newer
Older
100644 53 lines (31 sloc) 1.36 KB
08fd079 @videlalvaro first commit
authored
1 # Enable Sites #
2
3 ## About ##
4
5 Manage apache2 virtual hosts in Mac ala Ubuntu:
6
7 $ ./es.sh enable mysite
8 - Copying the sites_available/mysite.conf file
9 - Checking mysite.conf syntax
10 Syntax OK
11 - Restarting Apache2
12
13 ## Usage ##
14
15 Clone this repository and give executing permission to the `es.sh` file.
16
17 - Put your vhosts files in a folder called "sites_available"
18 - Create a folder called "sites_enabled"
19 - Add this line to your apache httpd.conf below the vhosts entry:
20
21 Include /Users/mrhyde/liip/sites_enabled/
22
23 - Create the file `sites_available/mysite.conf` and setup your vhost there.
24
25 To enable a site run:
26
27 ./es.sh enable mysite
28
29 To disable a site run:
30
31 ./es.sh disable mysite
32
33 ## Configuration ##
34
35 Modify the following scripts variables to match your setup:
36
37 APACHE_CTL=/opt/local/apache2/bin/apachectl
38 SITES_AVAILABLE_DIR=sites_available
39 SITES_ENABLED_DIR=sites_enabled
40
41 ## Extra ##
42
43 If you don't want to be messing around with the `/etc/hosts` file do yourself a favor and install [Ghost](http://thechangelog.com/post/434045062/ghost-means-never-having-to-touch-etc-hosts-again)
44
45 # NOTES #
46
47 Only tested with apache2 installed using Mac Ports. This is a very poor's man solution to this problem. Feel free to improve it or to point me to a better one.
48
49 This is my first Bash project so it might make you cry if you are a serious Bash user.
50
51 ## License ##
52
53 See: LICENSE.md
Something went wrong with that request. Please try again.