Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Symfony Based (Console component + Autoloader) Apache virtualhost generator
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Application
library/Symfony/Component
README

README

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>
Something went wrong with that request. Please try again.