Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Symfony Based (Console component + Autoloader) Apache virtualhost generator

Notifications You must be signed in to change notification settings

twinbit/symfony-apache-virtualhost-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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