Skip to content

jakuza/symfony-apache-virtualhost-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

Symfony Based (Console component + Autoloader) Apache virtualhost generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%