forked from twinbit/symfony-apache-virtualhost-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
35 lines (28 loc) · 1.14 KB
/
README
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
26
27
28
29
30
31
32
33
34
35
Usage:
host:create [-a|--alias[="..."]] [-e|--email[="..."]] [-p|--port[="..."]] [-u|--user[="..."]] [-ap|--apachepath[="..."]] domain ip [path]
Arguments:
domain Application domain
ip Apache host ip
path Filesytem path (default: /tmp)
Options:
--alias (-a) Apache domain Alias
--email (-e) Apache administrator email
--port (-p) Apache host port (default: 80)
--user (-u) File system (apache) user/group (default: www-data)
--apachepath (-ap) Apache sites path (default: /etc/apache2/sites-available)
Example:
paolo ~/webapps/twinbit/scripts/CliVirtualhost $ ./virtualhost host:create test.com 127.0.0.1 -u paolo
Created: /tmp/test.com/web (owner: paolo)
Created: /tmp/test.com/etc/logrotate.d (owner: paolo)
Created: /tmp/test.com/logs (owner: paolo)
<VirtualHost 127.0.0.1:80>
ServerName test.com
ServerAlias www.test.com
DocumentRoot /tmp/test.com/web
ErrorLog /tmp/test.com/logs/error.log
CustomLog /tmp/test.com/logs/access.log combined
<Directory "/tmp/test.com/web">
AllowOverride All
Options FollowSymLinks
</Directory>
</VirtualHost>